13 comments

  • simonw 22 minutes ago
    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 pretty cool for a 3.2GB model. For images:

      uvx litert-lm run \
        --from-huggingface-repo=litert-community/gemma-4-E2B-it-litert-lm \
      gemma-4-E2B-it.litertlm \
        --backend=gpu --vision-backend gpu \
        --attachment image.jpg --prompt describe
    
    And for audio:

      uvx litert-lm run \
        --from-huggingface-repo=litert-community/gemma-4-E2B-it-litert-lm \
      gemma-4-E2B-it.litertlm \
        --backend=gpu --audio-backend cpu \
        --attachment audio.wav --prompt transcribe
    
    (The pelican is rubbish, but it's only a 3.2GB file so the fact it even outputs valid SVG is impressive to me: https://gist.github.com/simonw/94b318afde4b1ce5ff67d4b5d0362... )
  • satvikpendem 1 hour ago
    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 phones.

    [0] https://huggingface.co/collections/unsloth/gemma-4-qat

    [1] https://unsloth.ai/docs/models/gemma-4/qat#qat-analysis

    • llmoorator 1 hour ago
      you misunderstand what that chart shows - it shows BF16 QAT Q4_0, not BF16 regular.

      meaning Google quantized the model to 4 bit and stored the result in BF16 format for compatibility and convenience to downstream packers.

      Like storing small 8 bit numbers in full 32 bit integers.

      So it's not close to 100% of unquantized BF16.

      I'm curious if anybody can explain why Google released 4 bit QAT Q4_0 is not exactly 100% of BF16 QAT Q4_0? seems like it should be just bit twiddling, no further quantization to convert between these two packings. Unsloth talks about "lattice alignment" being an issue.

      That being said I hate it that smol model makers, like Google, Qwen, ... only show the BF16 benchmarks when they release a new models, knowing that what people really run are 4-8 bit quantizations, so it's really hard to understand how much you lose when you run 4 bit vs 6 bit...

    • slopinthebag 1 hour ago
      I'm confused, the unsloth model is ~600mb and the one from google is 7gb?
  • minimaxir 1 hour ago
    It's a bit awkward to release Gemma 4 12B (https://news.ycombinator.com/item?id=48385906), and then a canonical Q4_0 Gemma 4 12B a couple days later.

    It's good that this post lists the expected VRAM usage for the models with Q4_0 Gemma 4 12B being 6.7GB, which will indeed fit Google's claims of fitting within 16GB comfortably, altough it confirms that only the quantized version will do so.

    Relatedly, in Google's newly released Edge Gallery for macOS, Gemma 4 12B is explicitly listed as unsupported due to not enough RAM even on a 16GB machine, but given the expected VRAM usage here the Q4_0 variant definitely should fit and Google should fix that.

    • Aurornis 1 hour ago
      I'm not sure why you think it's awkward to have multiple releases. It's better to release models and variations as they're ready, not withhold them all until everything is ready to release all at once.

      The Q4_0 is a quantization aware training checkpoint. It's not a simple quantization of the original Gemma 4 12B.

    • netdur 1 hour ago
      not sure if I understand you, but 4Q and QAT 4Q are different
      • refulgentis 1 hour ago
        It's super annoying when you have products that utilize these because there's...4? releases in 3 weeks?

        - Gemma 4 2B/4B/27BE3B/31B

        - Gemma 4 2B/4B/27BE3B/31B x "assistant" / MTP drafter models (i.e. multitoken prediction)

        - Gemma 4 12B (2 days ago? 1?)

        - Gemma 4 QAT 2B/4B/12B/27BE3B/31B x "assistant" models (i.e. multitoken prediction)

        It probably sounds silly and really whiny in the abstract. It just causes a ton of work / confusion downstream that feels unnecessary.

        Extremely glad for the output, not glad to have to chase it.

        ex. llama.cpp currently supports the originals but not the MTP predictors but there is a patch for the MTP predictors but not for the small MoE models and I think it supports the 12B but maybe not media for it yet and now we have these too and the blog says there's GGUFs (llama.cpp models) but there isn't in any of the 12? repos I clicked through. and ~every consumer-facing local LLM app is built on llama.cpp or a fork of it.

        Also if anyone at Google is taking feedback over to b/ or product, pleaseeee stop the "E"2B "E"4B thing, unless it's actually taking up less RAM on Android during CPU inference. I can't tell if I need to treat the 4B like an 8B (i.e. beyond most consumer hardware without a GPU) or a 4B (i.e. will run on most consumer hardware since 2021)

        • ddarolfi 1 hour ago
          These models aren't products? They are open source ish (open weight I guess), research outputs. While the naming scheme may be confusing, it is relevant and important. I believe it's on you to understand it.
          • refulgentis 50 minutes ago
            I understand it. :)

            And you're absolutely right to point out they aren't products - I had hoped that was clear - when you're building a product with them, you end up having to do the same build loop 4 times, in this instance :)

        • satvikpendem 1 hour ago
          Just use Unsloth Studio it supports them all.
  • WhiteDawn 10 minutes ago
    Once someone generates a MTP layer for 26B A4B 4 QAT I'll be singing from the hills with my 5 year old GPU.
  • somewhatrandom9 52 minutes ago
    Could these quantized models make MTP (Multi-Token Prediction) significantly faster when used as drafters for larger regular Gemma 4 models?
  • netdur 1 hour ago
    had a good run with Gemma 4 E2B Unsloth 4Q: https://youtube.com/shorts/XLsAnz5aAAI

    The E4B model doesn’t fit on my phone TPU, so it swaps to RAM, the QAT version means more accuracy, good!

  • cr3cr3 56 minutes ago
    For a moment I got excited thinking QAT is Intel Quick Assist Technology...
  • refulgentis 1 hour ago
    @google.com'ers, there are no GGUFs (blog says there is)
  • spacebacon 12 minutes ago
    [flagged]
  • Pixel-Labs 32 minutes ago
    [flagged]
  • comparedge 40 minutes ago
    [flagged]
  • redox99 8 minutes ago
    I was just testing Gemma E2B and E4B yesterday, and they are just too dumb to be useful outside of niche use cases.

    Besides, there's no good agent on Android. Having a model that can't run web searches and browse websites is limited in use, particularly small models that really need to be grounded on search results to be factual, because they can't memorize enough.