fix: enable default tokenizer truncation (#2537)

This commit is contained in:
HugoCasa
2023-11-01 14:45:24 +01:00
committed by GitHub
parent 6c47358c78
commit 480a9465a5
-2
View File
@@ -162,8 +162,6 @@ impl ModelInstance {
Tokenizer::from_file(tokenizer_filename)
.map_err(Error::msg)?
.with_padding(None)
.with_truncation(None)
.map_err(Error::msg)?
.to_owned(),
);