mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 02:16:37 +00:00
MPT fixes. (#1117)
* MPT fixes. * Another couple fixes. * Another shape fix.
This commit is contained in:
@ -215,7 +215,7 @@ fn main() -> Result<()> {
|
||||
let config = Config::replit_code_v1_5_3b();
|
||||
let device = candle_examples::device(args.cpu)?;
|
||||
let vb = unsafe { VarBuilder::from_mmaped_safetensors(&[filename], DType::F32, &device)? };
|
||||
let model = Model::new(&config, vb)?;
|
||||
let model = Model::new(&config, vb.pp("transformer"))?;
|
||||
println!("loaded the model in {:?}", start.elapsed());
|
||||
|
||||
let mut pipeline = TextGeneration::new(
|
||||
|
Reference in New Issue
Block a user