summaryrefslogtreecommitdiff
path: root/candle-core/examples/llama/weights.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-core/examples/llama/weights.rs')
-rw-r--r--candle-core/examples/llama/weights.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-core/examples/llama/weights.rs b/candle-core/examples/llama/weights.rs
index cc3fccd4..c3364cef 100644
--- a/candle-core/examples/llama/weights.rs
+++ b/candle-core/examples/llama/weights.rs
@@ -105,7 +105,7 @@ impl Llama {
) -> Result<Self> {
let handles: Vec<_> = filenames
.iter()
- .map(candle::safetensors::MmapedFile::new)
+ .map(|f| unsafe { candle::safetensors::MmapedFile::new(f) })
.collect::<Result<Vec<_>>>()?;
let tensors: Vec<_> = handles
.iter()