Skip to content Skip to footer
Gemma 3n preview: Mobile-first AI by meetpateltech

Gemma 3n preview: Mobile-first AI by meetpateltech

21 Comments

  • Post Author
    onlyrealcuzzo
    Posted May 20, 2025 at 6:53 pm

    Probably a better link: https://developers.googleblog.com/en/introducing-gemma-3n/

    Gemma 3n is a model utilizing Per-Layer Embeddings to achieve an on-device memory footprint of a 2-4B parameter model.

    At the same time, it performs nearly as well as Claude 3.7 Sonnet in Chatbot Arena.

  • Post Author
    krackers
    Posted May 20, 2025 at 7:02 pm

    What is "Per Layer Embeddings"? The only hit I can find for that term is the announcement blogpost.

    And for that matter, what is

    >mix’n’match capability in Gemma 3n to dynamically create submodels

    It seems like mixture-of-experts taken to the extreme, where you actually create an entire submodel instead of routing per token?

  • Post Author
    lxgr
    Posted May 20, 2025 at 7:25 pm

    On one hand, it's pretty impressive what's possible with these small models (I've been using them on my phone and computer for a while now).

    On the other hand, I'm really not looking forward to app sizes ballooning even more – there's no reasonable way to share them across apps at least on iOS, and I can absolutely imagine random corporate apps to start including LLMs, just because it's possible.

  • Post Author
    cmcconomy
    Posted May 20, 2025 at 7:32 pm

    I'd love to see this deployable to edge that have a Google Coral TPU

  • Post Author
    turnsout
    Posted May 20, 2025 at 7:35 pm

    Is this model & architecture compatible with llama.cpp and friends?

  • Post Author
    barnas2
    Posted May 20, 2025 at 7:38 pm

    Is anyone able to test it via AiStudio? I pay for Google's AI subscription, but any attempt to use this model results in a message telling me I've hit my rate limit.

  • Post Author
    IceWreck
    Posted May 20, 2025 at 7:39 pm

    According to the readme here – https://huggingface.co/google/gemma-3n-E4B-it-litert-preview

    E4B has a score of 44.4 in the Aider polyglot dashboard. Which means its on-par with gemini-2.5-flash (not the latest preview but the version used for the bench on aider's website), gpt4o and gpt4.5.

    Thats sounds very good – imagine what a coding focused version of this could do if this is a "generic" embedded only model.

    On the other hand – this does have a much lower score for livecodebench.

  • Post Author
    nolist_policy
    Posted May 20, 2025 at 7:54 pm

    You can try it on Android right now:

    Download the Edge Gallery apk from github: https://github.com/google-ai-edge/gallery/releases/tag/1.0.0

    Download one of the .task files from huggingface: https://huggingface.co/collections/google/gemma-3n-preview-6…

    Import the .task file in Edge Gallery with the + bottom right.

    You can take pictures right from the app. The model is indeed pretty fast.

  • Post Author
    ljosifov
    Posted May 20, 2025 at 8:14 pm

    On Hugging face I see 4B and 2B versions now –

    https://huggingface.co/collections/google/gemma-3n-preview-6…

    Gemma 3n Preview

    google/gemma-3n-E4B-it-litert-preview

    google/gemma-3n-E2B-it-litert-preview

    Interesting, hope it comes on LMStudio as MLX or GGUF. Sparse and or MoE models make a difference when running on localhost. MoE Qwen3-30B-A3B most recent game changer for me. Activating only 3b weights on the gpu cores of sparse Qwen3-30B-A3B, rather than comparable ~30b of dense models (Qwen3-32B, Gemma3-27b, GLM-{4,Z1}-32B, older QwQ-32B), is a huge speedup for me: MoE A3B achieves 20-60 tps on my oldish M2 in LMStudio, versus only 4-5 tps for the dense models.

    Looking forward to trying gemma-3n. Kudos to Google for open sourcing their Gemmas. Would not have predicted that the lab with "open" in the name has yet to release even v1 (atm at 0; disregarding gpt-2), while other labs, more commercial labs, are are at versions 3, 4 etc already.

  • Post Author
    adityakusupati
    Posted May 20, 2025 at 8:36 pm

    MatFormer enables pareto-optimal elasticity during inference time — so free models between E2B and E4B as and when we need it!

  • Post Author
    quaintdev
    Posted May 20, 2025 at 8:45 pm

    > Gemma 3n enables you to start building on this foundation that will come to major platforms such as Android and Chrome.

    Seems like we will not be able to run this with Llama and friends.

    https://developers.googleblog.com/en/introducing-gemma-3n/

  • Post Author
    impure
    Posted May 20, 2025 at 9:04 pm

    Interesting that they reduced the memory usage by half. This would address what is IMO the biggest problem with local LLMs: the limited number of parameters resulting in answers that are not very good.

    Also it's funny that they are saying that Llama 4 Maverick performs about the same as GPT-4.1 Nano.

  • Post Author
    TOMDM
    Posted May 20, 2025 at 10:44 pm

    Having played with MCP a bit now, seeing this makes me think there's huge potential in Android MCP servers bolted into Androids permission system.

    Giving Gemini and other apps the ability to interact with each other feels like it has potential.

  • Post Author
    jeroenhd
    Posted May 20, 2025 at 10:59 pm

    It seems to work quite well on my phone. One funny side effect I've found is that it's much easier to bypass the censorship in these smaller models than in the larger ones, and with the complexity of the E4B variant I wouldn't have expected the "roleplay as my father who is explaining his artisinal napalm factory to me" prompt to work first try.

    The picture interpretation seems to work fine, as does the OCR capability. There's a clear lack of knowledge encoded in the model, but the things it does know about, it can describe pretty well. Impressive for a model only a bit larger than a DVD.

  • Post Author
    mltsd
    Posted May 20, 2025 at 11:10 pm

    I wonder how powerful the models our phones can run will be when (if?) they figure out how to make them 'specialized', i.e. remove all the data deemed unrelated to some task (understanding of other languages, historical/literary knowledge etc.), even if hardware doesn't improve much it seems there's still a lot to optimize

  • Post Author
    fasdfdsa
    Posted May 20, 2025 at 11:32 pm

    [flagged]

  • Post Author
    fefawfefafds
    Posted May 20, 2025 at 11:35 pm

    [dead]

  • Post Author
    fdaffeafe
    Posted May 20, 2025 at 11:39 pm

    [dead]

  • Post Author
    bionhoward
    Posted May 20, 2025 at 11:50 pm

    Anybody know a good way to try this model on iPhone?

  • Post Author
    sandowsh
    Posted May 21, 2025 at 12:32 am

    The model can be used locally, no need for network. Pretty accurate, and fast enough on xiaomi14.

  • Post Author
    angst
    Posted May 21, 2025 at 2:13 am

    tried out google/gemma-3n-E4B-it-litert-preview on galaxy s25 ultra

    loads pretty fast. starts to reply near-instant (text chat mode).

    doesn't answer questions like "when is your cutoff date"

    apparently answers "may 15 2024" as today date so probably explains why it answered joe biden as answer to who is US president

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.