mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-09 23:24:35 +00:00
fix: reset -ngl to 0 when GPU is not used and reformat code
This commit is contained in:
parent
b44187e3af
commit
2fbc0c8da3
4 changed files with 12 additions and 6 deletions
|
@ -350,7 +350,6 @@ float device_inp_embd_delay(struct llama_model * model, enum ggml_type src0t, in
|
|||
return 0.0f;
|
||||
}
|
||||
|
||||
size_t QK_K = 0;
|
||||
switch (src0t) {
|
||||
case GGML_TYPE_F32: {
|
||||
matrix_B = malloc(embd_size * sizeof(float));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue