We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c42e1fe commit 34625abCopy full SHA for 34625ab
1 file changed
candle-examples/examples/gemma4/main.rs
@@ -258,7 +258,12 @@ fn main() -> Result<()> {
258
.split(',')
259
.map(std::path::PathBuf::from)
260
.collect::<Vec<_>>(),
261
- None => candle_examples::hub_load_safetensors(&repo, "model.safetensors.index.json")?,
+ None => {
262
+ match candle_examples::hub_load_safetensors(&repo, "model.safetensors.index.json") {
263
+ Ok(files) => files,
264
+ Err(_) => vec![repo.get("model.safetensors")?],
265
+ }
266
267
};
268
println!("retrieved the files in {:?}", start.elapsed());
269
let tokenizer = Tokenizer::from_file(tokenizer_filename).map_err(E::msg)?;
0 commit comments