r/opencode • • 21h 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?

31 Upvotes

16 comments sorted by

2

u/ollm-tux 18h 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

3

u/squirrelscrush 17h ago

Not just the usage, but even the output quality is the same. Just that DeepSeek is a little more efficient with tokens.

2

u/ollm-tux 17h ago

when the output quality is poor ... the use of tokens is increasing ... honestly I had the feeling that it's weaker than 4.0 I even scolded him once for a reasoning that I would classify it under 4b ... then I realized that opencode was not the problem

16

u/Early-Crazy-4246 20h 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.

10

u/mkbilli 19h ago

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

6

u/sugarw0000kie 15h ago

Sounds about right. Tbf, i think that range is pretty standard. I normally manually set max context length to around 256k for auto compact

Running at high context = more dumb more cost more slow

7

u/devanpy 20h ago

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

5

u/Fair-Spring9113 20h ago

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

1

u/HorrificFlorist 19h 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.

0

u/squirrelscrush 17h ago

Yeah I know, but there's a misunderstanding that OpenCode quantizes their DeepSeek inference.

1

u/AppealSame4367 2h ago

I read that they just have contracts with providers and some are better than others. That's why quality is oscillating a bit

1

u/squirrelscrush 1h ago

They serve 90% of their DeepSeek capacity by themselves now

1

u/AppealSame4367 1h ago

They say that. Can you check it?

2

u/retardedGeek 20h ago

Benchmarks and stats please

1

u/mystic_node 9h ago

Same for me, I have used both for a long time, and see no such significant difference in terms of output quality. And talking about speed, well, you can't have everything... at least for now, but the lowest I got was around 40-45 tps, which I would consider usable.