Commit 02082f1
authored
clip: Fix llama-llava-clip-quantize-cli quantization error under CUDA backend (ggml-org#12566)
* [Fix] Compiling clip-quantize-cli and running it in a CUDA environment will cause ggml_fp16_to_fp32 to report an error when trying to access video memory. You need to switch to the CPU backend to run quantize.
After the fix, it will automatically run in the CPU backend and will no longer be bound to CUDA.
* [Fix]Roll back the signature and implementation of clip_model_load, and change the call in clip_model_quantize to clip_init.1 parent df4d20c commit 02082f1
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2989 | 2989 | | |
2990 | 2990 | | |
2991 | 2991 | | |
2992 | | - | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
2993 | 2996 | | |
2994 | 2997 | | |
2995 | 2998 | | |
| |||
0 commit comments