mirror of
https://github.com/huggingface/candle.git
synced 2025-06-20 04:00:28 +00:00
Support for mistral-nemo. (#2396)
This commit is contained in:
@ -149,6 +149,10 @@ enum Which {
|
||||
Mistral7bInstructV02,
|
||||
#[value(name = "7b-maths-v0.1")]
|
||||
Mathstral7bV01,
|
||||
#[value(name = "nemo-2407")]
|
||||
MistralNemo2407,
|
||||
#[value(name = "nemo-instruct-2407")]
|
||||
MistralNemoInstruct2407,
|
||||
}
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
@ -263,13 +267,16 @@ fn main() -> Result<()> {
|
||||
}
|
||||
"lmz/candle-mistral".to_string()
|
||||
} else {
|
||||
match args.which {
|
||||
Which::Mistral7bV01 => "mistralai/Mistral-7B-v0.1".to_string(),
|
||||
Which::Mistral7bV02 => "mistralai/Mistral-7B-v0.2".to_string(),
|
||||
Which::Mistral7bInstructV01 => "mistralai/Mistral-7B-Instruct-v0.1".to_string(),
|
||||
Which::Mistral7bInstructV02 => "mistralai/Mistral-7B-Instruct-v0.2".to_string(),
|
||||
Which::Mathstral7bV01 => "mistralai/mathstral-7B-v0.1".to_string(),
|
||||
}
|
||||
let name = match args.which {
|
||||
Which::Mistral7bV01 => "mistralai/Mistral-7B-v0.1",
|
||||
Which::Mistral7bV02 => "mistralai/Mistral-7B-v0.2",
|
||||
Which::Mistral7bInstructV01 => "mistralai/Mistral-7B-Instruct-v0.1",
|
||||
Which::Mistral7bInstructV02 => "mistralai/Mistral-7B-Instruct-v0.2",
|
||||
Which::Mathstral7bV01 => "mistralai/mathstral-7B-v0.1",
|
||||
Which::MistralNemo2407 => "mistralai/Mistral-Nemo-Base-2407",
|
||||
Which::MistralNemoInstruct2407 => "mistralai/Mistral-Nemo-Instruct-2407",
|
||||
};
|
||||
name.to_string()
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user