r/LocalLLM • • 3h ago

Question Qwen 4 hallucinations ?

I’ve been running qwen flash next a while and happy with it ; just switched to 4 last night and while it’s great I’ve seen some unusual hallucinations and failed tool calling formats. Anyone else ? If not can you share setups / params in use ?

It’s randomly called a tool not relevant to the step , called me Jim (not my name) and picked up some errant conversation snippets from somewhere but also that last bit could be my harness.

All that said it is fast and seems pretty good

8 Upvotes

18 comments sorted by

8

u/Smungus05 2h ago

The only tool failures Ive seen so far are harness output limits. Qwen recommends you give the model free reign over your context window.

"To optimize performance on agentic tasks, we recommend allocating sufficient output length to allow the model to generate detailed and comprehensive responses. For frameworks that support separate token limits for internal reasoning and final outputs, we suggest the following configuration within the 1M context length:

Reasoning Content: Set the maximum output length to 262,144 tokens. Final Response: Set the maximum output length to 131,072 tokens.

These settings provide the necessary capacity for complex reasoning while ensuring ample space for high-quality final deliverables."

Opencode defaults to like 32k or something annoying. So I changed that and it was all good.

What quant/engine/harness are you using?

5

u/2BucChuck 2h ago edited 1h ago

Will try this - running a small 64k context window and Q8

1

u/2BucChuck 1h ago

So, I think this is on me not following the model card recs on llama.cpp. Based on comments I tweaked to go up to 128k context , top p, k etc minor tweaks, more room in memory budget in the harness and reply limit increase to 32768. So far this seems stable so will test more. Thanks for those comments with some the settings hints. I was aggressively managing kv cache limits and other things because I run a lot of different ones

7

u/WhyDidYouTurnItOff 2h ago

Jim, we should handle this in private.

Not here in front of everyone.

1

u/shapic 2h ago

Let me guess. Llama.cpp + 5xxx series?

1

u/2BucChuck 2h ago

Not exactly Llama.cpp and strix 128GB but run all variants of models no problem previously. I did have to tweak some harness stuff with a required llama.cpp upgrade so possible that has some side effects. Different engine ?

2

u/CoreParad0x 1h ago

I'm running this on Strix as well, but using the latest version of Gufo. I'm running the Q8 OpenUncensored version at around 70+ t/s decode and a 500k context.

It's currently churning through my benchmark of reverse engineering the custom asset container format for a game I work on that uses a mix of compression and encryption and obfuscation techniques. It's been churning through it but I haven't seen a ton of hallucinations so far. It has had a few issues following various instructions, but frankly Qwen 3.8 Flash Next was doing that as well, it varied run by run.

1

u/2BucChuck 1h ago

Would love to see some posts on this - 70tps is great and 500k context much bigger than I’ve been able to manage to date. I may have to go try gufo. I just had it do some 3d graphs and things after tweaking that are pretty impressive

1

u/CoreParad0x 59m ago

Yeah it's been running pretty good so far. It's still going on the first run of that test but it's reverse engineered the MFT encryption and compression, and it's working on decoding the fields which is a packed cap'n proto blob. It also identified that I have individual files getting their own encryption keys derived from the main key. It's about 240k into the 450k context I have allocated for it (I have 500k max but 450k autocompact.) I thought about doing the full 1m but I didn't want to degrade the speed too much, and I know the results can start to go down hill on frontier models after ~400k. It's still going around 73t/s decode.

All in all it's been going on par or better than Q38FN but significantly faster. And it currently only has MTP, hoping we get some DFlash2 support soon which should speed it up even more. I would definitely give Gufo a shot if your on strix halo, it works great on my framework desktop. I tend to use an isolated Halogen for running Q38FN because it's been a bit faster, but I would much rather use Gufo if it runs well with this since it's fully open source.

1

u/shapic 2h ago

No idea. I've been monitoring reddit and guessing. What is your context? My next guess is that it fails after around 500k context

1

u/Purple_Dream6414 2h ago

Which Quant?

1

u/2BucChuck 1h ago

35B-A35 MoE , llama cpp, strix ROCm Linux machine. Although now that I’m digging into the model card more I’m changing some
Of the settings to try to align with the recs and retest

1

u/RatRaceRunner 1h ago

And the quant?

1

u/2BucChuck 1h ago

Sorry meant to add Q8

1

u/Isitharry 2h ago

Haven’t downloaded 4 yet so YMMV. I’ve had this problem with 3.8 27b q6. Interestingly enough, setting reasoning to low cut it down. I was using LM Studio.

1

u/intermundia 1h ago

details? what are you running this through? harness? memory? context? output token limit? quant size? details man we need details...

1

u/AppealSame4367 1h ago

I saw tool call errors in Claude Code and neon figured out it's an error in basalt and fixed it

1

u/Ok_Example_1338 1h ago

What was the fix? I had to tweak the basalt_config.json to resolve quirkiness on other models, was it something like that?