common : only load backends when required#22290
Conversation
1952e4b to
f2d4b06
Compare
|
The |
|
Hm, I don't see where we would call |
Damn, checking. I don’t use AI often (for llama.cpp!). Kimi is this bad ? 🤣 |
9027fd9 to
37ac5d5
Compare
|
The last call was missing... |
|
@ggerganov maybe I can take this PR as an opportunity to remove |
Yes, let's do that. |
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
37ac5d5 to
b967482
Compare
|
I finally have updated |
* common : only load backends when required Signed-off-by: Adrien Gallouët <angt@huggingface.co> * llama : call ggml_backend_load_all() directly from llama_backend_init() Signed-off-by: Adrien Gallouët <angt@huggingface.co> * Add ggml_backend_load_all() where llama_backend_init() is not used Signed-off-by: Adrien Gallouët <angt@huggingface.co> --------- Signed-off-by: Adrien Gallouët <angt@huggingface.co>
|
I think it’s just because of some missing calls it’s hard to track all of them |
|
#22752 should fix both issues (and others) |
* common : only load backends when required Signed-off-by: Adrien Gallouët <angt@huggingface.co> * llama : call ggml_backend_load_all() directly from llama_backend_init() Signed-off-by: Adrien Gallouët <angt@huggingface.co> * Add ggml_backend_load_all() where llama_backend_init() is not used Signed-off-by: Adrien Gallouët <angt@huggingface.co> --------- Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* common : only load backends when required Signed-off-by: Adrien Gallouët <angt@huggingface.co> * llama : call ggml_backend_load_all() directly from llama_backend_init() Signed-off-by: Adrien Gallouët <angt@huggingface.co> * Add ggml_backend_load_all() where llama_backend_init() is not used Signed-off-by: Adrien Gallouët <angt@huggingface.co> --------- Signed-off-by: Adrien Gallouët <angt@huggingface.co>
Overview
Only load backends when required.
Additional information
This fixe the following issues: #20186, #21708 and maybe others.
Requirements