We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 021899d commit aec5efdCopy full SHA for aec5efd
router/src/main.rs
@@ -217,6 +217,7 @@ async fn main() -> Result<()> {
217
} else {
218
0
219
};
220
+ let max_input_length = config.max_position_embeddings - position_offset;
221
222
let tokenization_workers = args
223
.tokenization_workers
@@ -226,7 +227,7 @@ async fn main() -> Result<()> {
226
227
let tokenization = Tokenization::new(
228
tokenization_workers,
229
tokenizer,
- config.max_position_embeddings,
230
+ max_input_length,
231
position_offset,
232
);
233
0 commit comments