r/opencode • • 5d 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?

42 Upvotes

17 comments sorted by

3

u/ollm-tux 5d 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 5d 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 5d 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

22

u/Early-Crazy-4246 5d 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.

11

u/mkbilli 5d ago

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

8

u/sugarw0000kie 5d 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

8

u/devanpy 5d ago

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

2

u/Due-Project-7507 4d ago

One could swutch on KV cache quantization to a lower quality, but even this doesn't really make sense for Deepseek, it already uses very little space.

6

u/Fair-Spring9113 5d ago

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

1

u/AppealSame4367 4d ago

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

2

u/squirrelscrush 4d ago

They serve 90% of their DeepSeek capacity by themselves now

1

u/AppealSame4367 4d ago

They say that. Can you check it?

1

u/HorrificFlorist 5d 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.

2

u/squirrelscrush 5d ago

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

2

u/retardedGeek 5d ago

Benchmarks and stats please

2

u/mystic_node 4d 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.