Fix OpenChat 3.5 tokenizer (#1347)

This commit is contained in:
Lucas de Ávila Martins
2023-11-19 15:48:04 -03:00
committed by GitHub
parent 992a788da1
commit f49bf6a81d

View File

@ -181,7 +181,9 @@ impl Args {
Some(config) => std::path::PathBuf::from(config),
None => {
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"
} else {
"hf-internal-testing/llama-tokenizer"