News for hackers. Stuff that matters.
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @06:21AM (#44681598)
Re:Qwen3-235B-A22B-Thinking-2507 by arcanemachiner on Friday July 25, 2025 @07:22AM (#44681936)
Would I notice a difference between the Q2_K and Q2_K_XL variants?
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @07:41AM (#44682047)
Oh I would always use Q2_K_XL :) It uses our dynamic methodology to quantize certain layers in different bits ie 2, 3, 4, 5, 6, 8 bits - the more important the layer is, the higher the bitrate
Re:Qwen3-235B-A22B-Thinking-2507 by Squeeze2664 on Friday July 25, 2025 @09:32AM (#44682941)
How do you determine the importance of a layer in this case?
Re:Qwen3-235B-A22B-Thinking-2507 by kkzz99 on Friday July 25, 2025 @12:04PM (#44684746)
Afaik they have a test bench that they use and take the activation data from that.
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @04:18PM (#44687932)
Yes we have around 1 to 3 million tokens of high quality self verified data that we use to calibrate models!
Re:Qwen3-235B-A22B-Thinking-2507 by smallerize on Friday July 25, 2025 @01:14PM (#44685574)
Re:Qwen3-235B-A22B-Thinking-2507 by DrPhish on Friday July 25, 2025 @09:05AM (#44682690)
I generally download the safetensors and make my own GGUFs, usually at Q8_0. Is there any measurable benefit to your dynamic quants at that quant level? I looked at your dynamic quant 2.0 page, but all the charts and graphs appear to cut off at Q4.
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @04:15PM (#44687899)
Oh I also upload Q8_K_XL for eg, which will upcast important layers to BF16 / F16 as well!

Oh the blog at https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs does talk about 1, 2, 3, 4, 5, 6 and 8bit dynamic GGUFs as well!

There definitely is a benefit for dynamically selecting layers to be at diff bit rates - I wrote about the difference between naively quantizing and selectively quantizing: https://unsloth.ai/blog/deepseekr1-dynamic

Re:Qwen3-235B-A22B-Thinking-2507 by DrPhish on Friday July 25, 2025 @05:57PM (#44688977)
Thanks Daniel. I know you upload them, but I was hoping for some solid numbers on your dynamic q8 vs a naive quant. There doesn't seem to be anything on either of those links to show improvement at those quant levels.

My gut feeling is that there's not enough benefit to outweigh the risk of putting a middleman in the chain of custody from the original model to my nvme.

However, I can't know for sure without more testing than I have the time or inclination for, which is why I was hoping there had been some analysis you could point me to.

Re:Qwen3-235B-A22B-Thinking-2507 by mycpuorg on Friday July 25, 2025 @10:50AM (#44683805)
@danielhanchen, can we use these steps to fine tune other qwen3 models too? like 480B coder or embeddings model?
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @04:17PM (#44687908)
Oh for finetuning - we do have some code for MoE finetuning for Qwen at https://github.com/unslothai/unsloth, but we haven't yet announced it yet!
Re:Qwen3-235B-A22B-Thinking-2507 by aliljet on Friday July 25, 2025 @11:31AM (#44684291)
I see the term 'local inference' everywhere. It's an absurd misnomer without hardware and cost defined. I can also run a coal fired power plant in my backyard, but in practice, there's no reasonable way to make that economical beyond being a toy.

(And I should add, you are a hero for doing this work, only love in my comment, but still a demand for detail$!)

Re:Qwen3-235B-A22B-Thinking-2507 by regularfry on Friday July 25, 2025 @11:53AM (#44684600)
Hardware and cost is assumed to be approximately desktop-class. If you've got a gaming rig with an RTX 4090 and 128MB RAM, you can run this if you pick the right quant.
Re:Qwen3-235B-A22B-Thinking-2507 by cmpxchg8b on Friday July 25, 2025 @11:58AM (#44684670)
128MB? Quantization has come a long way!
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @04:20PM (#44687959)
I think they mis-spoke 128GB* :)
Re:Qwen3-235B-A22B-Thinking-2507 by regularfry on Friday July 25, 2025 @05:05PM (#44688460)
Wishful thinking there on my part.
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @05:38PM (#44688794)
Though technically < 1GB is enough - one had offload it to the SSD, albeit with very slow speeds!
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @04:24PM (#44687979)
The trick of llama.cpp and our dynamic quants is you can actually offload the model to RAM / even an SSD! If you have GPU VRAM + RAM + SSD > the model size (say 90GB for dynamic 2bit quant), then it'll run well!

Ie you can actually run it on a local desktop or even your laptop now! You don't need a 90GB GPU for example, but say a 24GB GPU + 64GB to 128GB RAM.

The speeds are around 3 to 5 tokens / second, so still ok! I write more about improving speed for local devices here: https://docs.unsloth.ai/basics/qwen3-how-to-run-and-fine-tun...

Re:Qwen3-235B-A22B-Thinking-2507 by lostmsu on Friday July 25, 2025 @12:44PM (#44685191)
How usable are 1 and less than 1 bit quants?
Re:Qwen3-235B-A22B-Thinking-2507 by danielhanchen on Friday July 25, 2025 @04:20PM (#44687954)
Oh 1bit reminder isn't 1bit, but a mixture of 1 to 8bit! I would still use 2bit dynamic - 1bit dynamic sometimes can go into weird repetitive loops, but it still does produce reasonable output.

Larger models with 1bit do better - for eg 480B Coder 1bit actually does very well!