News for hackers. Stuff that matters.
Re:Kimi K2 by c4pt0r on Friday July 11, 2025 @12:12PM (#44533893)
Paired with programming tools like Claude Code, it could be a low-cost/open-source replacement for Sonnet
Re:Kimi K2 by kkzz99 on Friday July 11, 2025 @12:42PM (#44534258)
According to the bench its closer to Opus, but I venture primarily for English and Chinese.
Re:Kimi K2 by martin_ on Friday July 11, 2025 @12:48PM (#44534330)
how do you low cost run a 1T param model?
Re:Kimi K2 by maven29 on Friday July 11, 2025 @12:51PM (#44534360)
32B active parameters with a single shared expert.
Re:Kimi K2 by JustFinishedBSG on Friday July 11, 2025 @12:54PM (#44534401)
This doesn’t change the VRAM usage, only the compute requirements.
Re:Kimi K2 by selfhoster11 on Friday July 11, 2025 @03:11PM (#44535870)
It does not have to be VRAM, it could be system RAM, or weights streamed from SSD storage. Reportedly, the latter method achieves around 1 token per second on computers with 64 GB of system RAM.

R1 (and K2) is MoE, whereas Llama 3 is a dense model family. MoE actually makes these models practical to run on cheaper hardware. DeepSeek R1 is more comfortable for me than Llama 3 70B for exactly that reason - if it spills out of the GPU, you take a large performance hit.

If you need to spill into CPU inference, you really want to be multiplying a different set of 32B weights for every token compared to the same 70B (or more) instead, simply because the computation takes so long.

Re:Kimi K2 by refulgentis on Friday July 11, 2025 @03:31PM (#44536040)
The amount of people who will be using it at 1 token/sec because there's no better option, and have 64 GB of RAM, is vanishingly small.

IMHO it sets the local LLM community when we lean on extreme quantization & streaming weights from disk to say something is possible*, because when people try it out, it turns out it's an awful experience.

* the implication being, anything is possible in that scenario

Re:Kimi K2 by homarp on Friday July 11, 2025 @05:56PM (#44537159)
agentic loop can run all night long. It's just a different way to work: prepare your prompt queue, set it up, check result in the morning, adjust. 'local vibe' in 10h instead of 10mn is still better than 10 days of manual side coding.
Re:Kimi K2 by hereme888 on Saturday July 12, 2025 @05:14AM (#44540554)
Right on! Especially if its coding abilities are better than Claude 4 Opus. I spent thousands on my PC in anticipation of this rather than to play fancy video games.

Now, where's that spare SSD...

Re:Kimi K2 by selfhoster11 on Saturday July 12, 2025 @02:34AM (#44539841)
Good. Vanishingly small is still more than zero. Over time, running such models will become easier too, as people slowly upgrade to better hardware. It's not like there aren't options for the compute-constrained either. There are lots of Chinese models in the 3-32B range, and Gemma 3 is particularly good too.

I will also point out that having three API-based providers deploying an impractically-large open-weights model beats the pants of having just one. Back in the day, this was called second-sourcing IIRC. With proprietary models, you're at the mercy of one corporation and their Kafkaesque ToS enforcement.

Re:Kimi K2 by refulgentis on Saturday July 12, 2025 @08:06AM (#44541489)
You said "Good." then wrote a nice stirring polemic about how having a bad experience with a 1T model will force people to try 4B/32B models.

That seems separate from the post it was replying to, about 1T param models.

If it is intended to be a reply, it hand waves about how having a bad experience with it will teach them to buy more expensive hardware.

Is that "Good."?

The post points out that if people are taught they need an expensive computer to get 1 token/second, much less try it and find out it's a horrible experience (let's talk about prefill), it will turn them off against local LLMs unnecessarily.

Is that "Good."?

Re:Kimi K2 by jimjimwii on Sunday July 13, 2025 @01:18PM (#44551919)
Had you posted this comment in the early 90s about linux instead of local models, it would have made about the same amount of sense but aged just as poorly as this comment will.

I'll remain here happily using 2.something tokens / second model.

Re:Kimi K2 by apitman on Sunday July 13, 2025 @11:29PM (#44556185)
But local aka desktop Linux is still an awful experience for most people. I use Arch btw
Re:Kimi K2 by selfhoster11 on Tuesday July 15, 2025 @04:15AM (#44569052)
I'd rather use Arch over a genuine VT100 than touch Windows 11, so the analogy remains valid - at least you have a choice at all, even if you are in a niche of a niche.
Re:Kimi K2 by maven29 on Friday July 11, 2025 @12:56PM (#44534449)
You can probably run this on CPU if you have a 4090D for prompt processing, since 1TB of DDR4 only comes out to around $600.

For GPU inference at scale, I think token-level batching is used.

Re:Kimi K2 by zackangelo on Friday July 11, 2025 @01:45PM (#44535051)
Typically a combination of expert level parallelism and tensor level parallelism is used.

For the big MLP tensors they would be split across GPUs in a cluster. Then for the MoE parts you would spread the experts across the GPUs and route to them based on which experts are active (there would likely be more than one if the batch size is > 1).

Re:Kimi K2 by t1amat on Friday July 11, 2025 @01:13PM (#44534679)
With 32B active parameters it would be ridiculously slow at generation.
Re:Kimi K2 by selfhoster11 on Friday July 11, 2025 @03:15PM (#44535909)
DDR3 workstation here - R1 generates at 1 token per second. In practice, this means that for complex queries, the speed of replying is closer to an email response than a chat message, but this is acceptable to me for confidential queries or queries where I need the model to be steerable. I can always hit the R1 API from a provider instead, if I want to.

Given that R1 uses 37B active parameters (compared to 32B for K2), K2 should be slightly faster than that - around 1.15 tokens/second.

Re:Kimi K2 by CamperBob2 on Saturday July 12, 2025 @02:56PM (#44544173)
That's pretty good. Are you running the real 600B+ parameter R1, or a distill, though?
Re:Kimi K2 by selfhoster11 on Sunday July 13, 2025 @09:54PM (#44555712)
The full thing, 671B. It loses some intelligence at 1.5 bit quantisation, but it's acceptable. I could actually go for around 3 bits if I max out my RAM, but I haven't done that yet.
Re:Kimi K2 by apitman on Sunday July 13, 2025 @11:32PM (#44556204)
I've seen people say the models get more erratic at higher (lower?) quantization levels. What's your experience been?
Re:Kimi K2 by selfhoster11 on Tuesday July 15, 2025 @04:14AM (#44569049)
If you mean clearly, noticeably erratic or incoherent behaviour, then that hasn't been my experience for >=4-bit inference of 32B models, or in my R1 setup. I think the others might have been referring to this happening with smaller models (sub-24B), which suffer much more after being quantised below 4 or 5 bits.

My R1 most likely isn't as smart as the output coming from an int8 or FP16 API, but that's just a given. It still holds up pretty well for what I did try.

Re:Kimi K2 by scottyeager on Monday July 14, 2025 @01:45AM (#44556837)
Here's a neat looking project that allows for using other models with Claude Code: https://github.com/musistudio/claude-code-router

I found that while looking for reports of the best agents to use with K2. The usual suspects like Cline and forks, Aider, and Zed should be interesting to test with K2 as well.