Live data from Hacker News

Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

blog.google

91–100 of 138 posts

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#91
post #80

Earlier quoted context omitted.

Google already released specialized drafters for Gemma 4.

The E2B ones? Or what do you mean by specialized drafters?

The “-assistant” models released by Google are specialised tiny MTP draft models :)

31b-it-assistant is what enables MTP

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#93

Unsloth's collection as well [0], with their results [1]. Looks like they can get very close to 100% accuracy compared to the BF16 model that is unquantized, and Unsloth's quants are better than the original Google's QAT as posted in the article. Personal I'm using the 2B model for web search and structured JSON output back via Unsloth Studio and its API, works very well for that even with the model embedded on phone…

Google's QAT claims to need 6.7 GB RAM, vs Unsloth's dynamic quants at 8GB. Would love to see some benchmarks. Both amazing for size.

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#94
post #80

Earlier quoted context omitted.

Google already released specialized drafters for Gemma 4.

The E2B ones? Or what do you mean by specialized drafters?

They have -assistant in the name, so e.g.: https://huggingface.co/google/gemma-4-31B-it-assistant

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#96
post #21

I just ran one of these locally on a Mac like this: uvx litert-lm run \ --from-huggingface-repo=litert-community/gemma-4-E2B-it-litert-lm \ gemma-4-E2B-it.litertlm \ --backend=gpu \ --prompt="Generate an SVG of a pelican riding a bicycle" The first time you run that it downloads 3.2GB to ~/.cache/huggingface/hub/models--litert-community--gemma-4-E2B-it-litert-lm It can handle audio and image input too, which is prett…

As an aside uvx is so pleasant to use... I wish Nvidia supported it as first-class rather than making folks jump through Docker hoops.

I wish people would stop using python sure ai.

It's slow and the PKG resolution is way too flat.

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#97
post #65

It’s the Friday before WWDC during which Apple is going to announce an “improved” Siri based on Google models (a locked partnership, for now). Maybe it’s a coincidence, but this might be Google releasing models that will be showcased next week by Apple? No knowledge, just speculation.

Maybe Siri will become capable of doing what I can do on my Mac with llamafile and a few minutes of work...

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#98
post #65

It’s the Friday before WWDC during which Apple is going to announce an “improved” Siri based on Google models (a locked partnership, for now). Maybe it’s a coincidence, but this might be Google releasing models that will be showcased next week by Apple? No knowledge, just speculation.

As an amateur app dev using on device AI: If they replace Apple Foundation model with Gemma 4 I would be so happy.

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#99
post #21

I just ran one of these locally on a Mac like this: uvx litert-lm run \ --from-huggingface-repo=litert-community/gemma-4-E2B-it-litert-lm \ gemma-4-E2B-it.litertlm \ --backend=gpu \ --prompt="Generate an SVG of a pelican riding a bicycle" The first time you run that it downloads 3.2GB to ~/.cache/huggingface/hub/models--litert-community--gemma-4-E2B-it-litert-lm It can handle audio and image input too, which is prett…

Not to mention the text-only 0.8GB version. Just crazy. You can have basic real-time conversations on-device that's video and audio aware now.

0.8GB is for text only. It's more like ~1.1GB if you include video/audio encoder

Re: Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency

#100
post #29

How can the smaller Unsloth GGUF quant can beat the original google quant? (ref: unsloth/gemma-4-31B-it-qat-GGUF)

I may be wrong, but this is what I figured out. Google provided these quantize-ready models, but they do not come pre-quantized. However, to produce their benchmarks, they quantized their model using the standard quantization approach. Unsloth has an advanced quantization method that performs better than the standard quantization, so the evals are better for unsloth quants.
Post reply on HN