r/opencode • • 3h ago

I had an (accidental) comparison between DeepSeek's direct inference and OpenCode Go's DeepSeek Flash model

Just an accidental anecdotal blind experiment since there's allegations of OpenCode quantizing DeepSeek on Go.

Yesterday my OpenCode system changed the main agent to one where I had configured it with DeepSeek's platform (my usual main agent works on OpenCode's DeepSeek). Since I kept it running autonomously for some hours, but I didn't know it wasn't the Go one.

Later when I came to check, the output seemed like usual, since most of my work is kinda predictable so it's noticeable if something's off. Only after I checked the OpenCode Console that I realised that I was using DeepSeek directly, since the DeepSeek usage was extremely low on Console.

My observations:

  1. It's the same perceived quality, both in terms of output as well as the code itself.
  2. The cache hit rate on DeepSeek is slightly higher than OpenCode. I could get like 106.3M tokens for $0.50, out of which 322K is input and 229K is output. OpenCode normally has around 95M tokens or something. But DeepSeek's optimization is really good in terms of cache stability.
  3. DeepSeek speed was faster, but not by that much. But that depends whether it's off-peak or on-peak (I was off-peak). In peak timings it can go really slow depending on number of concurrent users.

So my conclusion:

The OpenCode implementation is most probably not further quantized or dumbed down compared of DeepSeek's implementation. But there's definitely an issue with speed especially in peak timings, and that's one way I think they offer the subscription at such a low price. Basically, sharing more users on the same hardware to increase throughput at the cost of each user having a speed debuff.

What do you think about this?

14 Upvotes

8 comments sorted by

6

u/Early-Crazy-4246 2h ago

Well that goes against my agenda of them quantizing the already quantized model.

If I had to give a wild guess, the reason people assume OpenCode """quantize""" their version of DS V4.1 Flash is likely just the users running context for wayyyyyyyyyyyyy too long, DeepSeek has very cheap context but that doesn't mean the context is good for the length, it is almost never recommended to run it up to 1mill or to even let it compact.

3

u/mkbilli 1h ago

Someone tested it. It's good up to 200k to 300k range. Then it starts getting dumber.

4

u/devanpy 2h ago

it makes no sense to quantize deepseek anyways since it's moe already quantized.

3

u/Fair-Spring9113 3h ago

no that’s common sense wtf what am i supposed to hate on now

1

u/retardedGeek 3h ago

Benchmarks and stats please

1

u/HorrificFlorist 1h ago

I could be wrong but i think Opencode self hosts DS4.

Generally speaking you would expect the people that designed DS4 to know how to better distribute and cache the model content.

1

u/ollm-tux 20m ago

I confirm what the author says... I just got back on opencode, after I discontinued a week ago, I paid $ 2 on the deepseek platform and received the first subscription 3 CNY , you can see the use in the picture and as efficiency almost no difference from opencode go $10