Input: What is the meaning of life?
Response: The meaning of life is a philosophical question that has been debated for centuries. There is no one definitive answer, but some people believe that the meaning of life is to find happiness and fulfillment in one's own life. Others believe that the meaning of life is to contribute to society and make a positive impact on the world. Ultimately, the meaning of life is up to each individual to define for themselves.
0.05.487.441 I Client 0, seq 2, junk = 0, prompt = 284, started decoding ...
0.07.614.732 I Client 1, seq 1/ 32, prompt 284 t, response 128 t, time 5.29 s, speed 77.83 t/s, cache miss 0
Input: What is the meaning of life?
Response: The _, _,SID _, _,SID
_,
_,
_,SID _,
_,
_,
_,
_,SIDdata _,SID _, = _, _, _, _, _,SID = _, _,SID` _,
_, _,
_,SID _, _, _, _, _,SIDim _,SID = _, _, _,
_,SID _,
_, _,\
_, _, _,
_,
_,SID
_, _,SID
_,SID
_,ID _,
_,\ _,SID =
While investigating #14893 (reply in thread), it appears that there is a problem with parallel streams on the Vulkan backend when
LLAMA_SET_ROWS=1is enabled. The problem occurs only when-fais disabled.Here is a basic repro:
make -j && LLAMA_SET_ROWS=1 ./bin/llama-parallel -hf ggml-org/Qwen2.5-Coder-3B-Q8_0-GGUF -np 2 -ns 32 -s 1 -c 4096 -ngl 99 --top-k 1Garbage output in second request
The problem is not observed if:
LLAMA_SET_ROWS=1LLAMA_SET_ROWS=1and add-faThis makes me think there is bug in the SOFT_MAX implementation for batched cases (#14449).Edit: investigating further, it seems that the problem is not in the SOFT_MAX, because when I keep it on the CPU, the problem persists:
Looking at the batched matrix multiplications now across dim 3.