mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 11:56:45 +00:00
Support safetensors weights in llama2.c inference. (#317)
This commit is contained in:
@ -104,7 +104,7 @@ impl TransformerWeights {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn var_builder(&self, cfg: &Config, device: &Device) -> Result<VarBuilder> {
|
||||
pub fn var_builder(&self, cfg: &Config, device: &Device) -> Result<VarBuilder<'static>> {
|
||||
let mut ws = std::collections::HashMap::new();
|
||||
let mut insert = |name: &str, t: Tensor| {
|
||||
ws.insert(name.to_string(), t);
|
||||
|
Reference in New Issue
Block a user