r/LocalLLaMA • u/danielhanchen • Nov 08 '25
Resources Kimi K2 Thinking 1-bit Unsloth Dynamic GGUFs
Hi everyone! You can now run Kimi K2 Thinking locally with our Unsloth Dynamic 1bit GGUFs. We also collaborated with the Kimi team on a fix for K2 Thinking's chat template not prepending the default system prompt of You are Kimi, an AI assistant created by Moonshot AI. on the 1st turn.
We also we fixed llama.cpp custom jinja separators for tool calling - Kimi does {"a":"1","b":"2"} and not with extra spaces like {"a": "1", "b": "2"}
The 1-bit GGUF will run on 247GB RAM. We shrank the 1T model to 245GB (-62%) & the accuracy recovery is comparable to our third-party DeepSeek-V3.1 Aider Polyglot benchmarks
All 1bit, 2bit and other bit width GGUFs are at https://huggingface.co/unsloth/Kimi-K2-Thinking-GGUF
The suggested temp is temperature = 1.0. We also suggest a min_p = 0.01. If you do not see <think>, use --special. The code for llama-cli is below which offloads MoE layers to CPU RAM, and leaves the rest of the model on GPU VRAM:
export LLAMA_CACHE="unsloth/Kimi-K2-Thinking-GGUF"
./llama.cpp/llama-cli \
-hf unsloth/Kimi-K2-Thinking-GGUF:UD-TQ1_0 \
--n-gpu-layers 99 \
--temp 1.0 \
--min-p 0.01 \
--ctx-size 16384 \
--seed 3407 \
-ot ".ffn_.*_exps.=CPU"
Step-by-step Guide + fix details: https://docs.unsloth.ai/models/kimi-k2-thinking-how-to-run-locally and GGUFs are here.
Let us know if you have any questions and hope you have a great weekend!
•
u/WithoutReason1729 Nov 09 '25
Your post is getting popular and we just featured it on our Discord! Come check it out!
You've also been given a special flair for your contribution. We appreciate your post!
I am a bot and this action was performed automatically.
277
u/1ncehost Nov 08 '25
Wont be running this one, but I just wanted to say thanks for the tireless work you guys put into each model.
29
u/john0201 Nov 08 '25
This is great. Do you have an idea of what tps would be expected with 2x5090 and 256GB system memory (9960X)? Not sure I will install if it is only 5tps it seems like much under 10 isn’t super usable. But awesome effort to be able to run a model this big locally at all!
35
u/Long_comment_san Nov 08 '25
Amazing stuff. I wish I had so much hardware for 1 bit quant but hey, we'll get there eventually.
26
u/maifee ollama Nov 08 '25
Waiting for half bit dynamic gguf
9
u/ffgg333 Nov 08 '25
Nice. In 10 years, I will have enough ram to run it on cpu😅.
5
u/twack3r Nov 08 '25
Ok this is awesome! Anyone having this running on 4 or 6 3090s (plus a 5090) and wanna compare notes?
4
u/Bakoro Nov 09 '25
It's kind of humorous how time looped back on itself.
This is like the old days when personal computers were taking off, and people were struggling with needing whole megabytes of ram rather than kilobytes, gigabytes of storage rather than megabytes.
Another 5~10 years and we're all going to just have to have 500 GB+ of ram to run AI models.
6
u/FullOf_Bad_Ideas Nov 08 '25
does anyone here have 256GB or 512GB Mac?
how well does this work on it?
thinking about running it on a phone. I don't think storage offloading works there though, it'll just crash out
3
u/lxe Nov 08 '25
Anyone has TPS and quality numbers?
5
u/Craftkorb Nov 08 '25
Amazing! Hey I could upgrade one of my servers to have loads more RAM
Checks RAM prices
Neeevermind 😑
2
u/pathfinder6709 Nov 08 '25
Page not found for model deployment guide
2
u/rookan Nov 08 '25
What hardware did you use to make this quant?
2
u/kapitanfind-us Nov 08 '25
Quick question, always wondered why seed is needed? Apologies if off topic.
2
u/phormix Nov 08 '25
Oof, this is cool but given the RAM shortages lately (and the fact that the RAM I bought in June already more than doubled in cost) it is still a hard venture for homebrew
2
u/CapoDoFrango Nov 08 '25
Can you do a quarter bit?
2
u/_VirtualCosmos_ Nov 09 '25
Won't that quant make it heavily lobotomized?
68
u/FORLLM Nov 08 '25
I aspire to someday be able to run monsters like this locally and I really appreciate your efforts to make them more accessible. I don't know that that's very encouraging for you, but I hope it is.
3
u/AvidCyclist250 Nov 08 '25
85% recovery? This is some dick out in a blizzard level of shrinkage, impressive work
3
u/nonaveris Nov 08 '25
Will try this on a decently beefy Xeon (8480+ w/ 192gb memory) alongside a slightly mismatched pair of NVidia GPUs (3090/2080ti 22gb).
Not expecting miracles, but nice to see that it could have a decent chance to work.
3
u/Fitzroyah Nov 09 '25
I hope pewdiepie sees this, perfect for his rig! I will keep dreaming with my old 1080.
3
u/fallingdowndizzyvr Nov 08 '25
Thank you! Now this I can run. I have ~250GB of usable VRAM.
20
u/urekmazino_0 Nov 08 '25
How much would you say the performance difference is from the full model?
2
u/ciprianveg Nov 08 '25
I need to test the Q3_XL on my 512GB ddr4 threadripper. I expect 5-6 t/s.
2
u/NameEuphoric3115 Nov 08 '25
I have a single 4090, can I run this model of kimi?
5
u/Thistleknot Nov 08 '25
can you do the same for kimi linear?
2
u/XiRw Nov 08 '25
Can my pentium 4 processor with Windows 98 handle it?
2
u/noiserr Nov 08 '25
I'm waiting on GGUFs for the Kimi-Linear-REAP-35B-A3B-Instruct
4
u/Aperturebanana Nov 09 '25
Wow holy shit that’s awesome
1
u/SilentLennie Nov 08 '25
Do you run evals to know what the quality losses are ?
1
u/MatterMean5176 Nov 09 '25
So what's the word people, anybody try the smallest quant? I am intrigued, any thoughts on it?
1
u/Educational_Sun_8813 llama.cpp Nov 09 '25
Q2_K_L
2
u/croninsiglos Nov 08 '25
Hmm but how about 128 GB of unified memory and no GPU... aka a 128 GB Macbook Pro?
1
u/AleksHop Nov 08 '25
can we run q4 with offloading to 2x96gb rtx pro?
fun fact that in 10-12y from today, this will be run on usual high end pc
1
u/paul_tu Nov 08 '25
Oh boy, I'd need oculink now
1
u/Herr_Drosselmeyer Nov 08 '25
I appreciate the effort, but even at 'only' 247GB of VRAM, it's not practical for 99.99% of users.
Still, thanks for all the work you guys do.
1
u/LegacyRemaster Nov 08 '25
Feedback about the speed. Ubergarm IQ2_KS with 128gb ram + 5070 ti + 3060 ti + SSD. :D . Will try unsloth too but yeah... Maybe with Raid 0 - x4 SSD will be better (I have it).
2
u/CovidCrazy Nov 09 '25
Do you think LM studio would be the best way to run this on a Mac studio?
2
u/tvetus Nov 09 '25
1 million output tokens in... 5.8 days :)
2
u/Significant-Pin5045 Nov 09 '25
I hope this pops the bubble finally
2
u/TastesLikeOwlbear Nov 10 '25 edited Nov 10 '25
Thanks for this!
Running it on the llama-server from llama.cpp (built today) via OpenWebUI in docker (pulled today), I don't get thinking tags.
(REDACTED)
Derp! --special fixed it, just like the post says.
It still seems to be generating an extra <|im_end|> but that's much less of a big deal.
1
u/GmanMe7 Nov 09 '25
Want to make money? Make super simple tutorial on youtube on mac studio and another one with windows PC.
1
u/mysteryweapon Nov 09 '25
Okay, cool, how do I run a ~50gb model on my sort of meager desktop ?
1
u/black_ap3x Nov 09 '25
Me crying in the corner with my 3060
1
u/danihend Nov 09 '25
Has anyone ever run a 1bit model and gotten any value from it? Personally, every model I've ever tried below 3 or 4 just seems unusable.
1
u/korino11 Nov 09 '25
For codig Kimi - is the WORST model i ever used. It always lie to user, it always broke code. It doesnt care about promts at all! It doesnt care about tasks and todo... I paid for plan 20$ and money wasted! GLM 4.6 much better! Kimi cannot coding in rust,asm,c++ at all. It ruine code... it cannot in high math and physycs...
1
u/Roreilly22 Nov 11 '25
Any idea if this will run on a dgx spark?
1
u/Dead_Internet_Theory Nov 12 '25
> 128GB of RAM
You heard of GPU poor, now meet: CPU poor.
1
u/mitermayer Nov 13 '25
What is the recommended qant for Mac Studio m3 ultra with 512GB ? Would a larger size with offloaded layers be the ideal spot ? Assuming less than 100K context
0
u/RobTheDude_OG Nov 09 '25
How well would this run on a system with 64gb ram and 8 or 16gb vram?
And how well would it run on a system with 128gb of ram?
Was thinking to upgrade, but with ram prices in the gutter i might wait till ddr6 and AM6
-2
u/ParthProLegend Nov 08 '25
I had sent you a Reddit DM, please check if possible.