mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
Fmt.
This commit is contained in:
parent
211b9681e6
commit
46ca08a831
@ -373,8 +373,8 @@ fn prepare_input(
|
|||||||
if truncate < encoding.len() {
|
if truncate < encoding.len() {
|
||||||
encoding.truncate(truncate, 0, TruncationDirection::Left);
|
encoding.truncate(truncate, 0, TruncationDirection::Left);
|
||||||
inputs = tokenizer
|
inputs = tokenizer
|
||||||
.decode(encoding.get_ids(), false)
|
.decode(encoding.get_ids(), false)
|
||||||
.map_err(|err| ValidationError::Tokenizer(err.to_string()))?;
|
.map_err(|err| ValidationError::Tokenizer(err.to_string()))?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user