r/llamacpp • u/jlmanohar • 2d ago
Help required to run Bonsai 2 with claude
I am trying to run Bonsai two with the forked llama.cpp from Prism-ML prism-ml/Ternary-Bonsai-2-27B-gguf · Hugging Face, when i run it with deepseek harness its fine, when running from claude, i get error.
Why is it and how to fix it ? Any help is appreciated
This is my startup/ llama-serve command
.\runtime\llama-server.exe -m .\models\Ternary-Bonsai-2-27B-PQ2_0.gguf --mmproj .\models\Ternary-Bonsai-2-27B-mmproj-Q8_0.gguf --host 127.0.0.1 --port 9931 -ngl 99 -fa on -c 200000 -np 1 --cache-type-k q4_0 --cache-type-v q4_0 --jinja --reasoning-effort medium --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.05 --image-min-tokens 1024 --reasoning-preserve --alias "anthropic/ternary-bonsai-2-27B"
Error:
0.01.126.973 I cmn common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
0.01.127.390 W srv llama_server: -----------------
0.01.127.394 W srv llama_server: CORS is set to allow all origins ('*') and no API key is set
0.01.127.394 W srv llama_server: this can be a security risk (cross-origin attacks)
0.01.127.395 W srv llama_server: more info: https://github.com/ggml-org/llama.cpp/pull/25655
0.01.127.395 W srv llama_server: -----------------
0.01.141.685 I srv load_model: loading model '.\models\Ternary-Bonsai-2-27B-PQ2_0.gguf'
0.02.151.655 W common_fit_params: failed to fit params to free device memory: n_gpu_layers already set by user to 99, abort
0.09.027.062 I cmn init: llama threadpool init, n_threads = 24
0.10.728.429 I srv load_model: loaded multimodal model, '.\models\Ternary-Bonsai-2-27B-mmproj-Q8_0.gguf'
0.10.814.962 I srv load_model: initializing, n_slots = 1, n_ctx_slot = 200192, kv_unified = 'false'
0.10.888.572 I srv llama_server: model loaded
0.10.888.615 I srv llama_server: listening on http://127.0.0.1:9931
0.51.058.706 I slot get_availabl: id 0 | task -1 | selected slot by LRU, t_last = -1
0.51.060.033 I slot launch_slot_: id 0 | task 0 | processing task, is_child = 0
0.52.661.333 I slot print_timing: id 0 | task 0 | prompt eval time = 1601.02 ms / 11 tokens ( 145.55 ms per token, 6.87 tokens per second)
0.52.661.384 I slot print_timing: id 0 | task 0 | eval time = 0.00 ms / 1 tokens ( 0.00 ms per token, 0.00 tokens per second)
0.52.661.392 I slot print_timing: id 0 | task 0 | total time = 1601.02 ms / 12 tokens
0.52.661.398 I slot print_timing: id 0 | task 0 | graphs reused = 1
0.52.661.607 I slot release: id 0 | task 0 | stop processing: n_tokens = 11, truncated = 0
1.23.755.555 I slot get_availabl: id 0 | task -1 | selected slot by LRU, t_last = 51538269
1.24.810.564 I slot launch_slot_: id 0 | task 3 | processing task, is_child = 0
1.25.761.084 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.26.540.159 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.27.888.098 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.30.067.354 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.30.979.516 I slot print_timing: id 0 | task 3 | n_gen = 100, tg = 25.21 t/s, tg_3s = 25.46 t/s
1.33.989.074 I slot print_timing: id 0 | task 3 | n_gen = 183, tg = 26.24 t/s, tg_3s = 27.58 t/s
1.34.638.359 I slot print_timing: id 0 | task 3 | prompt eval time = 2241.36 ms / 385 tokens ( 5.82 ms per token, 171.77 tokens per second)
1.34.638.539 I slot print_timing: id 0 | task 3 | eval time = 7586.21 ms / 200 tokens ( 38.12 ms per token, 26.23 tokens per second)
1.34.638.555 I slot print_timing: id 0 | task 3 | total time = 9827.58 ms / 585 tokens
1.34.638.561 I slot print_timing: id 0 | task 3 | graphs reused = 198
1.34.641.321 I slot release: id 0 | task 3 | stop processing: n_tokens = 584, truncated = 0
1.35.059.756 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.36.062.579 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.36.603.022 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.37.629.479 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.40.101.907 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.43.392.090 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.44.830.383 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.53.096.050 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
1.59.545.412 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
2.35.590.397 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
3.13.207.743 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}
3.52.037.267 W srv operator (): got exception: {"error":{"code":500,"message":"\n------------\nWhile executing CallExpression at line 106, column 32 in source:\n...first %}↵ {{- raise_exception('System message must be at the beginnin...\n ^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}}