Skip to content

Commit

Permalink
Fix model version argument conflicting with clap version argument (
Browse files Browse the repository at this point in the history
  • Loading branch information
DrChat authored Sep 11, 2024
1 parent 877996b commit f2a56b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama-burn/examples/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct Config {
/// The Llama 3 model version.
#[cfg(feature = "llama3")]
#[arg(long, default_value = "llama-3.1-8b-instruct")]
version: Llama3,
model_version: Llama3,
}

#[cfg(feature = "llama3")]
Expand Down Expand Up @@ -116,7 +116,7 @@ pub fn chat<B: Backend>(args: Config, device: Device<B>) {
#[cfg(feature = "llama3")]
{
// Llama-3-8B-Instruct or Llama-3.1-8B-Instruct
let mut llama = match args.version {
let mut llama = match args.model_version {
Llama3::V3Instruct => {
LlamaConfig::llama3_8b_pretrained::<B>(args.max_seq_len, &device).unwrap()
}
Expand Down

0 comments on commit f2a56b4

Please sign in to comment.