mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 10:26:33 +00:00
ChatGLM custom tokenizer. (#1687)
This commit is contained in:
@ -235,7 +235,9 @@ fn main() -> Result<()> {
|
|||||||
));
|
));
|
||||||
let tokenizer_filename = match args.tokenizer_file {
|
let tokenizer_filename = match args.tokenizer_file {
|
||||||
Some(file) => std::path::PathBuf::from(file),
|
Some(file) => std::path::PathBuf::from(file),
|
||||||
None => repo.get("tokenizer.json")?,
|
None => api
|
||||||
|
.model("lmz/candle-chatglm".to_string())
|
||||||
|
.get("chatglm-tokenizer.json")?,
|
||||||
};
|
};
|
||||||
let filenames = match args.weight_files {
|
let filenames = match args.weight_files {
|
||||||
Some(files) => files
|
Some(files) => files
|
||||||
|
Reference in New Issue
Block a user