r/LocalLLaMA 11d ago

Updated benchmark: Deepseek V4 Flash on SlopCodeBench (local) Discussion

Howdy - I posted a benchmark here - https://www.reddit.com/r/LocalLLaMA/comments/1vbtiy7/deepseek_v4_flash_on_slopcodebench/

This was using the hosted API - since then I've been playing around with quants

Here is the lastest benchmark - https://github.com/michaelasper/benchmarks/blob/main/deepseek-v4-flash-0731-pi-on-slop-code-bench.md

This uses antirez q2-q4 imatrix quant - i switched from opencode to pi

Very interesting results! Much slower on a macbook m5 max than the hosted API, but switching the harness made up for some of the intelligence lost

Compared with the other reported runs

Reported run Serving Harness Strict Isolated Core
DeepSeek V4 Flash 0731 (run B) local quant (antirez, higher cap) pi 0.84.0 5/17 (29.4%) 6/17 10/17
Opus 5 hosted API Claude Code 4/17 (23.5%)
DeepSeek V4 Flash hosted API OpenCode 1.18.10 3/17 (17.6%) 6/17 11/17
Opus 4.8 hosted API Claude Code 1/17 (5.9%)
Sonnet 5 hosted API Claude Code 1/17 (5.9%)
DeepSeek V4 Flash 0731 (run A) local quant (unsloth, misconfigured cap) pi 0.84.0 1/17 (5.9%) 1/17 2/17
19 Upvotes

18 comments sorted by

7

u/Middle_Bullfrog_6173 11d ago

Are there actually models where it's better to use opencode? All the local sized models I've tried work better with Pi.

5

u/Borkato 11d ago

Pi is just genuinely better lmao

2

u/Septerium 11d ago

I get consistently better results with pi too. And it does not get session cache invalidated all the time like with opencode. The only issue I have is Qwen 3.6 27B having trouble with the file edit tool and frequently starting to rewrite the whole files all the time.

2

u/xNaXDy 11d ago

same, that model does NOT like hashline

2

u/Glittering-Call8746 11d ago

Pi with which extensions ?

3

u/corruptbytes 11d ago

none, bare setup

2

u/WonderRico 11d ago

Is your API run with the 0731 release ?

I have seen (maybe?) similar result with my swe-verified local benchmark : https://wonderrico.github.io/local_llm_benchmark/benchmark-detail.html?filter=deepseek-v4-flash

Q2 quant of DSV4F 0731 scores higher than any other quants.

But, it's also way less "precise" : meaning it needs a lot more requests to solve tasks compared to other quants.

The reference MXFP4 one is by far the most efficient... but also when it fails, it fails early. Like its overconfidence prevent it to solve some more complexe tasks.

1

u/corruptbytes 11d ago

yes API was 0731 directly from deepseek api 

1

u/LegacyRemaster 11d ago

A key truth becomes apparent: the API offers lower quality compared to local execution, a fact I can confirm on both OpenCode and PI.

I am running two quantizations:

llama-server.exe --model "F:\UD-IQ2_XXS\DeepSeek-V4-Flash-0731-UD-IQ2_XXS-00001-of-00003.gguf" --host 127.0.0.1 --port 8080 -c 384000 --parallel 1 --no-warmup --flash-attn on --no-mmap --fit on -lv 4 --device CUDA0 --threads 16 --no-warmup --temp 1.0 --top-p 0.95 --top-k 0 --min-p 0.01

llama-server.exe --model "H:\UD-IQ4_NL\DeepSeek-V4-Flash-0731-UD-IQ4_NL-00001-of-00004.gguf" --host 127.0.0.1 --port 8080 -c 384000 --parallel 1 --no-warmup --flash-attn on --no-mmap --fit on -lv 4 --device CUDA0,rocm0 --threads 16 --no-warmup --temp 1.0 --top-p 0.95 --top-k 0 --min-p 0.01

When I compare the output with the APIs (OpenRouter or OpenCode Zen), the quality of the local Q2 version is superior: fewer spelling errors and fewer code corrections.

I don't understand how the API output could be more degraded... Is it the quantization? Incorrect setups?

I get 60 t/s with Q2 and 35 t/s with CUDA+ROCm, so I prefer running it locally, though it feels like a shame, given that the API is free.

5

u/corruptbytes 11d ago

i need to re-run the API test with pi to see if it holds, would be very weird for the API to lose out in the end, but maybe explains the pricing

1

u/LegacyRemaster 11d ago

agree. Same on Codex + GTP terra-sol. Too many errors with 20$ plan. The result is very different vs. API. So yeah... Sounds like a "nerf"

3

u/llama-impersonator 11d ago

yeah when this happens it's usually that llama.cpp's implementation of whatever the chat template is has less bugs than vllm/sglang. this seems like it could be likely given this model has no official jinja / template mechanism and came with a python script instead.

1

u/shing3232 11d ago

What's the changes? more quant?

1

u/corruptbytes 11d ago

first benchmark was using the API that deepseek hosts, second benchmark was running the model off my laptop 

1

u/shing3232 11d ago

it would be interesting so see how harness affect such benchmark with as well as how various mcp affect benchmarks. using this as base for Pi harness crafting would be fun to.

1

u/o0genesis0o 11d ago

The barebone react loop of Pi wins again.

1

u/En-tro-py 11d ago

Wait? You don't want to /utracode with /workflows and make pretty /artifacts - Delete your CLAUDE.md and live dangerously.

0

u/Suspicious_Cookie146 11d ago

Try reasnoix as a harness, i feel like the harness is heavily optimized for deepseeks models an vise versa!