mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Fix OpenChat 3.5 tokenizer (#1347)
This commit is contained in:

committed by
GitHub

parent
992a788da1
commit
f49bf6a81d
@ -181,7 +181,9 @@ impl Args {
|
|||||||
Some(config) => std::path::PathBuf::from(config),
|
Some(config) => std::path::PathBuf::from(config),
|
||||||
None => {
|
None => {
|
||||||
let api = hf_hub::api::sync::Api::new()?;
|
let api = hf_hub::api::sync::Api::new()?;
|
||||||
let repo = if self.which.is_mistral() {
|
let repo = if self.which.is_open_chat() {
|
||||||
|
"openchat/openchat_3.5"
|
||||||
|
} else if self.which.is_mistral() {
|
||||||
"mistralai/Mistral-7B-v0.1"
|
"mistralai/Mistral-7B-v0.1"
|
||||||
} else {
|
} else {
|
||||||
"hf-internal-testing/llama-tokenizer"
|
"hf-internal-testing/llama-tokenizer"
|
||||||
|
Reference in New Issue
Block a user