Skip to content

Commit

Permalink
fix(llama): use ggml_type to build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax committed Mar 14, 2023
1 parent 142c1b7 commit 12b9851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama-rs/src/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl LlamaModel {
};
}

fn ggml_type_sizef(x: u32) -> f64 {
fn ggml_type_sizef(x: ggml_raw::ggml_type) -> f64 {
(unsafe { ggml_raw::ggml_type_sizef(x) }) as f64
}

Expand Down

0 comments on commit 12b9851

Please sign in to comment.