Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Jan 6, 2025
1 parent 4b63a7a commit a7baf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokenizers/src/models/backtracking_bpe/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl<'de> Visitor<'de> for BacktrackingBpeVisitor {
}
};
builder = builder.vocab_and_merges(vocab, merges);
Ok(builder.build().map_err(Error::custom)?)
Ok(builder.build().map_err(|e| Error::custom(format!("Error building the backtraciing BPE {:?}", e)))?)
} else {
Err(Error::custom("Missing vocab/merges"))
}
Expand Down

0 comments on commit a7baf1b

Please sign in to comment.