Generates gibberish and repeats itself in the middle of thinking and token generation

#19
by rbtasd - opened

Looks like model is broken or something.
it generates random text and repeats that until the token-windows is filled. An image of the situation in OpenCode is attached below.

Command:

llama-server -m "path-to\Ternary-Bonsai-27B-Q2_0.gguf" --temp 0.7 --top-p 0.95 --top-k 20 -ngl 99
I used other commands too, but no difference.

Sample: opencode

Snipaste_2026-07-16_12-30-43

Llama.cpp chat interface

Snipaste_2026-07-16_12-35-29

Windows 11
Prism llama.cpp fork
Rtx 3080 ti

I've tried it, so far there's no looping, but there are syntax hallucinations while coding.
Screenshot 2026-07-16 234931

Screenshot 2026-07-17 000829

RTX 5060 Ti, windows 11, prism llama.cpp fork,

@echo off
.\build-prism\llama-server.exe ^
-m "models\ternary-bonsai-27b\Ternary-Bonsai-27B-Q2_0.gguf" ^
--mmproj "models\ternary-bonsai-27b\Ternary-Bonsai-27B-mmproj-BF16.gguf" ^
--alias "ternary-bonsai-27b" ^
--models-max 1 ^
--models-autoload ^
--no-mmap ^
--mlock ^
-np 1 ^
--no-mmproj-offload ^
-ngl 99 ^
--flash-attn on ^
--fit-ctx 8192 ^
--image-min-tokens 1024 ^
-ctk q8_0 ^
-ctv q8_0 ^
--cache-ram 2048 ^
--ctx-checkpoints 8 ^
-t 6 ^
--ubatch-size 1024 ^
--reasoning-budget 2048 ^
--temp 0.7 ^
--top-p 0.95 ^
--top-k 20 ^
--repeat-penalty 1.15

pause

.\build-prism\llama-server.exe ^
-m "models\ternary-bonsai-27b\Ternary-Bonsai-27B-Q2_0.gguf" ^
--mmproj "models\ternary-bonsai-27b\Ternary-Bonsai-27B-mmproj-BF16.gguf" ^
--alias "ternary-bonsai-27b" ^
--models-max 1 ^
--models-autoload ^
--no-mmap ^
--mlock ^
-np 1 ^
--no-mmproj-offload ^
-ngl 99 ^
--flash-attn on ^
--fit-ctx 8192 ^
--image-min-tokens 1024 ^
-ctk q8_0 ^
-ctv q8_0 ^
--cache-ram 2048 ^
--ctx-checkpoints 8 ^
-t 6 ^
--ubatch-size 1024 ^
--reasoning-budget 2048 ^
--temp 0.7 ^
--top-p 0.95 ^
--top-k 20 ^
--repeat-penalty 1.15

I tried with you're command, still the same problem. It's weird, because I don't have this problem with any other models like vanilla Qwen-35b, Gemma12b end a lot more

Yeah, I'm a bit confused as well. Since we're supposed to be using the same model and parameters, I would have expected similar results.
I'm not an expert on CUDA or llama.cpp internals, so this is really just me being curious and trying to compare our setups as closely as possible.

I'm using the official PrismML release prism-b9591-62061f9, specifically:
llama-prism-b1-62061f9-bin-win-cuda-12.4-x64.zip
cudart-llama-bin-win-cuda-12.4-x64.zip
https://github.com/PrismML-Eng/llama.cpp/releases#release-prism-b9591-62061f9

Sign up or log in to comment