Request: Build Compatible llama.cpp Runtime for Spark-X2.5-4B-GGUF (Windows, CUDA)

#2
by KiberAndy - opened

Please provide a prebuilt llama.cpp binary with CUDA support for Windows that can run this GGUF (Spark-X2.5-4B). Standard builds don't work. If one exists, give a link; if not, please build it.

lyang01 changed discussion status to closed
SparkLLM org

Which llama.cpp version/build are you using? Could you also share the error message you’re getting?

Which llama.cpp version/build are you using? Could you also share the error message you’re getting?

[LM Studio]
I even downloaded a fairly recent version - b10834 from here: https://github.com/ggml-org/llama.cpp/releases

Still the error:
Failed to load model.
error loading model: unknown model architecture: 'spark2_5'

More detailed logs:

2026-09-07 20:58:40 [DEBUG]
0.00.034.483 I srv init: The UI is disabled
0.00.034.488 I srv init: Use --ui/--no-ui (or deprecated --webui/--no-webui) to enable/disable
2026-09-07 20:58:40 [DEBUG]
0.00.049.271 I srv load_model: loading model 'G:\Ai\LM\lmstudio-community\Spark-X2.5-4B\Spark-X2.5-4B.gguf'
2026-09-07 20:58:40 [DEBUG]
0.00.132.121 E llama_model_load: error loading model: unknown model architecture: 'spark2_5'
0.00.132.131 E llama_model_load_from_file_impl: failed to load model
0.00.132.158 E common_fit_params: encountered an error while trying to fit params to free device memory: error loading model: unknown model architecture: 'spark2_5'
2026-09-07 20:58:40 [DEBUG]
0.00.215.145 E llama_model_load: error loading model: unknown model architecture: 'spark2_5'
0.00.215.155 E llama_model_load_from_file_impl: failed to load model
0.00.215.156 LMSTUDIO_STARTUP_ERROR:{"schemaVersion":1,"code":"model_load_failed","message":"error loading model: unknown model architecture: 'spark2_5'"}
E cmn common_init_: failed to load model 'G:\Ai\LM\lmstudio-community\Spark-X2.5-4B\Spark-X2.5-4B.gguf'
0.00.215.164 E srv load_model: failed to load model, 'G:\Ai\LM\lmstudio-community\Spark-X2.5-4B\Spark-X2.5-4B.gguf': error loading model: unknown model architecture: 'spark2_5'
0.00.215.187 I srv operator(): operator(): cleaning up before exit...
2026-09-07 20:58:40 [DEBUG]
0.00.215.846 E srv llama_server: exiting due to model loading error

I managed to compile it for CUDA. The model is recognized and loads specifically onto the GPU, as I wanted. The problem is solved.

Can you open the Discussion to everyone, and may I share my compiled archive here?

lyang01 changed discussion status to open
SparkLLM org

Thank you so much, @KiberAndy ! Really appreciate your support!

Prebuild the Compatible llama.cpp Runtime (CUDA, Windows)
https://mega.nz/file/HIJRgLZQ#NRu566nhEKbhCCTmTjKKm0Lghbf-8Qjlh4IEj6jqz3c

Would you care to elaborate whether you applied any patches to make llama.cpp recognize the model type, or did you just pull the latest code from github main/master? I need to custom-build for a different architecture.

Would you care to elaborate whether you applied any patches to make llama.cpp recognize the model type, or did you just pull the latest code from github main/master? I need to custom-build for a different architecture.

No patches. I simply cloned it following the instructions here: https://huggingface.co/XHToken/Spark-X2.5-4B-GGUF
But the commands were different:

cmake -S . -B build-cuda `
-G "Visual Studio 17 2022" `
-A x64 `
-T "cuda=C:\Users\User\scoop\apps\cuda\current" `
-DGGML_CUDA=ON `
-DGGML_NATIVE=OFF `
-DGGML_CCACHE=OFF `
-DLLAMA_BUILD_TESTS=OFF `
-DLLAMA_BUILD_EXAMPLES=ON
cmake --build build-cuda --config Release --target llama-server --parallel 8

Sign up or log in to comment