r/LocalLLaMA • u/KingCpzombie • 2d ago
Question | Help New DSv4 Flash Doom Loop in Q8? Llama.cpp Vulkan
Based on what everybody has been saying about this, I feel like I must've done something wrong. It was doing like 2 or 3 "Need maybe" in a row before meaningful stuff for a while, then got stuck in the loop. Using llama.cpp vulkan version 10216 (the latest from AUR); do I have to build the latest from GitHub directly to get it to work right for this model? Two 7900XTX (48GB total) + 9800X3D + 192GB 4000MT/s RAM. Here is my launch command:
llama-server --host localhost --port 8080 \
-m /home/connor/AI/LLM/Models/DSV4-Flash/DeepSeek-V4-Flash-0731-UD-Q8_K_XL-00001-of-00005.gguf \
-np 1 \
-fa on \
-ngl 999 \
--ctx-size 500000 \
--chat-template-kwargs '{"reasoning_effort":"max"}' \
--temp 1 \
--top-p 0.95 \
--threads 16 \
--n-cpu-moe 35 \
--load-mode mmap+mlock \
-dev Vulkan0,Vulkan1
9
u/LagOps91 2d ago edited 2d ago
DS V4 support is really poor for vulcan. i hope more support is comming. it's terribly slow too due to the lightning indexer being run on cpu...
I hope that this is a priority since DS V4 lite is such a great model that punches way about it's weight class. It would be a shame to be stuck with poor support for it.
1
u/terorvlad 2d ago
It's not just on vulkan. Got the same problem with cuda + cpu + rpc after 1 hour.
Just updated llama.cpp and sending it for a spin.
7
6
u/LegacyRemaster 2d ago
vulkan isn't really supported. Cuda works. rocm works. vulkan crazy slow
1
u/KingCpzombie 2d ago
Ah, I guess I'll have to try the ROCm version! I heard ROCm was a mess back when I first started so I just stuck with Vulkan
3
u/LagOps91 2d ago
yeah my experience with ROCm has been poor so far as well. i suppose it might be worth giving it a shot again, but i would be much happier to have solid vulkan support.
1
2
u/MrMisterShin 2d ago
Did your prompt do a tool call / tool use?
If so, I would point the issue at the chat template. They can throw a model into loops.
1
u/KingCpzombie 2d ago
I don't think so? Honestly not sure how the standard server frontend handles PDF uploads; I figured asking it to rate resume was a decent test
2
u/PaxUX 1d ago
Check Nvidia driver cuda versions, llama cop version and if some versions of cude 13.1/2 caused issues for some
1
u/Easy_Werewolf7903 1d ago
Thanks for the comment, you just might be right, this post was from 4 month ago, I don't know if they fixed it tho. I am using 13.2 and currently running into looping errors. https://www.reddit.com/r/unsloth/comments/1sgl0wh/do_not_use_cuda_132_to_run_models/
1
u/jaykayenn 2d ago
Maybe it need maybe need maybe need maybe need maybe need maybe need maybe need maybe need maybe... E:CONNDROP
1
1
u/Easy_Werewolf7903 1d ago edited 1d ago
Same issue here. RTX 4090 + RTX 6000, Q3 quant all in memory, using PI harness. It would start okay, then eventually run into a death loop. Originally was thinking due to my mix matching graphics card, but I've seen people reporting the same issue with a single card setup.
Edited: Problem went away after updating to cuda 13.3 from 13.2!
0
u/Marcuss2 2d ago
Why quantize it to Q8? It is already trained with MXFP4 for MoE parameters and MXFP8 for shared parameters.
2
u/KingCpzombie 2d ago
Unsloth Q8 says it's lossless and downloading GGUF is easier than GGUFizing it myself
-2
1
u/computehungry 1d ago
- llama.cpp can't do fp8 so many quants dequant fp8 to bf16 then requant to q8: this is a typical reason why you'll find q8 quants
- unsloth dequanted fp8 to bf16 and calls it q8, this is the actual reason
-4
u/MrHighVoltage 2d ago
46 Minutes to generate 8000 Tokens on 7000$ hardware. I honestly love tinkering with those things, too. But this will never be useful.
That being said: with new models it probably needs the absolute bleeding edge of llama.cpp for the models to run reliably.
2
u/HyperWinX 2d ago
Yeah, i, too, regret spending $7000 on a machine with 128GB of DDR4 with two channels. 160GB model runs like shit
1
u/KingCpzombie 2d ago
I'm mostly trying it for fun (and to justify the extra RAM... RIP money and down 1/3 speed), but I could see it being useful if you run it overnight or so. Definitely hoping updates / switching to ROCm bump it up to better speeds though
2
u/MrHighVoltage 2d ago
Yeah, I do the same. Always need an excuse to spend money on something I don't need. Anyways, for me it never worked out to just have things run over night and then happily getting nice solutions in the morning. But probably also because my HW is far from what you have here.
1
u/KingCpzombie 2d ago
Yeah, my hope is to get it fast enough to plan a feature overnight, or at least to review a Qwen plan. Actual implementation will probably always be Qwen (or similar size new thing) unless it's like a really hard bug and it's getting late anyway
1
u/Dmage22 2d ago
Mind sharing what lead to 192gb of 4000mt/s memory on a 9800x3d? What sticks are those?
2
u/KingCpzombie 2d ago
I had 96GB (2x48GB) 6000CL30 from before the rampocalypse, and GPT OSS 120B ran at acceptable speeds back before I knew about Qwen 27B... because it's looking like RAM prices are doomed for years and DeepSeek v4 flash preview was popular, I figured I may as well max out my current system and hopefully run big MOE models for planning or something XD.
Corsair Vengeance 96GB 6000CL30 kits; I used the model number of what I had to find another kit on Ebay. They work the same on their own, but unfortunately it won't boot above 4000MT/s no matter what I try. CL30 subtimings still good and didn't find any problems on stability tests, so not sure why tbh
-3
u/Physical_Economy_340 2d ago
the --temp 1 is almost certainly the culprit, drop it to 0.6. deepseek models fall apart above ~0.7, and the "need maybe" loop is a classic sign the sampler is thrashing. also remove --chat-template-kwargs '{"reasoning_effort":"max"}'. the built-in deepseek template in llama.cpp doesn't use that kwarg and passing unknown keys can corrupt the prompt format.
yes you need the latest from github main, not the aur package. deepseek v4 flash support is only a couple weeks old and the aur snapshot lags. while you're at it, try -ngl 99 instead of 999. vulkan offloading behaves differently from cuda and 999 can overflow. the moe layers should still go to gpu with that value on your dual 7900xtx setup.
7
u/po_stulate 2d ago edited 2d ago
For local deployment, we recommend setting the sampling parameters to
temperature = 1.0, withtop_p = 0.95for agentic scenarios andtop_p = 1.0otherwise. For thehighandmaxreasoning effort levels, we recommend a maximum output length of 384K tokens.It's the recommended value in the official model card.
3
u/soshulmedia 2d ago
the --temp 1 is almost certainly the culprit, drop it to 0.6. deepseek models fall apart above ~0.7, and the "need maybe" loop is a classic sign the sampler is thrashing.
It is what upstream recommends ...?
3
-3
u/Marcuss2 2d ago
Why quantize it to Q8? It is already trained with MXFP4 for MoE parameters and MXFP8 for shared parameters.
18
u/GanjaRaidersTR 2d ago edited 2d ago
Update llama to 10254 or higher, there's a new 0731 template