Im losing my mind trying to figure out the right quantization for DeepSeek V4 Flash. I really need to get this running locally for a research project on legal document analysis by next Tuesday, but my hardware budget is basically non-existent and Im stuck using an older 3090 rig in my basement. I keep reading that GGUF is the way to go because of the llama.cpp support, but then I see people on discord swearing by EXL2 for faster speeds on consumer cards. Its all just a mess. I tried a 4-bit EXL2 quant earlier and the memory usage was fine but the output started hallucinating like crazy, and then when I tried a 8-bit GGUF it just crawled at like 0.5 tokens per second which is totally unusable for my timeline. Is there some kind of middle ground or a specific calibration dataset I should be using to keep the performance somewhat stable? Does anyone know if there is a massive quality drop-off between Q4 and Q6 for this specific architecture or am I just wasting my time messing with these settings? Honestly I feel like Im gonna miss my deadline at this rate...
TL;DR: Stick to Q5_K_M GGUF. Honestly, avoid 4-bit EXL2 for legal work, it gets messy fast. Just grab it for your Nvidia GeForce RTX 3090 24GB and stay patient.
Honestly, the hallucination issues you're seeing at 4-bit are pretty standard for complex legal text where nuance is everything. The architecture on DeepSeek V4 is super sensitive to compression because of the MoE setup. If you're stuck on a Nvidia GeForce RTX 3090 24GB, you really have to balance the VRAM overhead against the quantization precision. Here is how to look at the trade-offs:
@Reply #2 - good point! Honestly, the MoE architecture is notorious for falling apart when you squeeze it too hard. I've had issues with 4-bit quants on legal docs too, it just misses all the nuance. Since you're on a Nvidia GeForce RTX 3090 24GB GDDR6X, have you actually tried a Q5_K_M GGUF yet or are you still jumping between extremes? I personally think you should try using GGUF IQ4_XS quantization. It usually strikes that weird middle ground where it keeps the logic intact without killing your VRAM, but tbh I'm curious, are you using specific system prompts to steer it? Sometimes these models just need a bit of guidance to stop the hallucinations. Also, are you running this off a Samsung 980 Pro 2TB NVMe SSD to help with swapping? Let me know so I can give you a better idea of how to fix this before your deadline.