Skip to content

Commit

Permalink
Pin the revision used for phi-v2 + make it the default. (#1572)
Browse files Browse the repository at this point in the history
* Pin the revision used for phi-v2 + make it the default.

* Tweak the custom-ops build.
  • Loading branch information
LaurentMazare authored Jan 12, 2024
1 parent 4191518 commit 6242276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 0 additions & 6 deletions candle-examples/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,5 @@ fn main() -> Result<()> {
bindings.write(kdir.rust_target).unwrap()
}
}
#[cfg(not(feature = "cuda"))]
{
for kdir in KERNEL_DIRS.iter() {
let _file = std::fs::File::create(kdir.rust_target)?;
}
}
Ok(())
}
7 changes: 3 additions & 4 deletions candle-examples/examples/phi/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct Args {
#[arg(long)]
model_id: Option<String>,

#[arg(long, default_value = "1.5")]
#[arg(long, default_value = "2")]
model: WhichModel,

#[arg(long)]
Expand Down Expand Up @@ -247,9 +247,8 @@ fn main() -> Result<()> {
match args.model {
WhichModel::V1 => "refs/pr/2".to_string(),
WhichModel::V1_5 => "refs/pr/18".to_string(),
WhichModel::V2 | WhichModel::PuffinPhiV2 | WhichModel::PhiHermes => {
"main".to_string()
}
WhichModel::V2 => "834565c23f9b28b96ccbeabe614dd906b6db551a".to_string(),
WhichModel::PuffinPhiV2 | WhichModel::PhiHermes => "main".to_string(),
}
}
}
Expand Down

0 comments on commit 6242276

Please sign in to comment.