Model reference · open weights

Gemma4-E-NPU2

Available as managed deployment LLMs FastFlowLM · community Omni (any→any) 1 variants 655 dl/mo

Gemma4-E-NPU2 is an open-weight language model from FastFlowLM. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byFastFlowLM
TypeLanguage models
TaskOmni (any→any)
Context128k tokens
Runs withtransformers
Released2026-04-09
Popularity655 downloads / month
LicenceOpen weights

About

What Gemma4-E-NPU2 is

Gemma is a family of open models built by Google DeepMind. Gemma 4 models are multimodal, handling text and image input (with audio supported on small models) and generating text output. This release includes open-weights models in both pre-trained and instruction-tuned variants. Gemma 4 features a context window of up to 256K tokens and maintains multilingual support in over 140 languages.

Featuring both Dense and Mixture-of-Experts (MoE) architectures, Gemma 4 is well-suited for tasks like text generation, coding, and reasoning. The models are available in four distinct sizes: E2B, E4B, 26B A4B, and 31B. Their diverse sizes make them deployable in environments ranging from high-end phones to laptops and servers, democratizing access to state-of-the-art AI.

Gemma 4 introduces key capability and architectural advancements:

  • Reasoning – All models in the family are designed as highly capable reasoners, with configurable thinking modes.

  • Extended Multimodalities – Processes Text, Image with variable aspect ratio and resolution support (all models), Video, and Audio (featured natively on the E2B and E4B models).

Read the full model card
  • Diverse & Efficient Architectures – Offers Dense and Mixture-of-Experts (MoE) variants of different sizes for scalable deployment.

  • Optimized for On-Device – Smaller models are specifically designed for efficient local execution on laptops and mobile devices.

  • Increased Context Window – The small models feature a 128K context window, while the medium models support 256K.

  • Enhanced Coding & Agentic Capabilities – Achieves notable improvements in coding benchmarks alongside native function-calling support, powering highly capable autonomous agents.

  • Native System Prompt Support – Gemma 4 introduces native support for the system role, enabling more structured and controllable conversations.

  • Models Overview

    Gemma 4 models are designed to deliver frontier-level performance at each size, targeting deployment scenarios from mobile and edge devices (E2B, E4B) to consumer GPUs and workstations (26B A4B, 31B). They are well-suited for reasoning, agentic workflows, coding, and multimodal understanding.

    The models employ a hybrid attention mechanism that interleaves local sliding window attention with full global attention, ensuring the final layer is always global. This hybrid design delivers the processing speed and low memory footprint of a lightweight model without sacrificing the deep awareness required for complex, long-context tasks. To optimize memory for long contexts, global layers feature unified Keys and Values, and apply Proportional RoPE (p-RoPE).

    Dense Models

    PropertyE2BE4B31B Dense
    Total Parameters2.3B effective (5.1B with embeddings)4.5B effective (8B with embeddings)30.7B
    Layers354260
    Sliding Window512 tokens512 tokens1024 tokens
    Context Length128K tokens128K tokens256K tokens
    Vocabulary Size262K262K262K
    Supported ModalitiesText, Image, AudioText, Image, AudioText, Image
    Vision Encoder Parameters~150M~150M~550M
    Audio Encoder Parameters~300M~300MNo Audio

    The "E" in E2B and E4B stands for "effective" parameters. The smaller models incorporate Per-Layer Embeddings (PLE) to maximize parameter efficiency in on-device deployments. Rather than adding more layers or parameters to the model, PLE gives each decoder layer its own small embedding for every token. These embedding tables are large but are only used for quick lookups, which is why the effective parameter count is much smaller than the total.

    Mixture-of-Experts (MoE) Model

    Property26B A4B MoE
    Total Parameters25.2B
    Active Parameters3.8B
    Layers30
    Sliding Window1024 tokens
    Context Length256K tokens
    Vocabulary Size262K
    Expert Count8 active / 128 total and 1 shared
    Supported ModalitiesText, Image
    Vision Encoder Parameters~550M

    The "A" in 26B A4B stands for "active parameters" in contrast to the total number of parameters the model contains. By only activating a 4B subset of parameters during inference, the Mixture-of-Experts model runs much faster than its 26B total might suggest. This makes it an excellent choice for fast inference compared to the dense 31B model since it runs almost as fast as a 4B-parameter model.

    Benchmark Results

    These models were evaluated against a large collection of different datasets and metrics to cover different aspects of text generation. Evaluation results marked in the table are for instruction-tuned models.

    Gemma 4 31BGemma 4 26B A4BGemma 4 E4BGemma 4 E2BGemma 3 27B (no think)
    MMLU Pro85.2%82.6%69.4%60.0%67.6%
    AIME 2026 no tools89.2%88.3%42.5%37.5%20.8%
    LiveCodeBench v680.0%77.1%52.0%44.0%29.1%
    Codeforces ELO21501718940633110
    GPQA Diamond84.3%82.3%58.6%43.4%42.4%
    Tau2 (average over 3)76.9%68.2%42.2%24.5%16.2%
    HLE no tools19.5%8.7%---
    HLE with search26.5%17.2%---
    BigBench Extra Hard74.4%64.8%33.1%21.9%19.3%
    MMMLU88.4%86.3%76.6%67.4%70.7%
    Vision
    MMMU Pro76.9%73.8%52.6%44.2%49.7%
    OmniDocBench 1.5 (average edit distance, lower is better)0.1310.1490.1810.2900.365
    MATH-Vision85.6%82.4%59.5%52.4%46.0%
    MedXPertQA MM61.3%58.1%28.7%23.5%-
    Audio
    CoVoST--35.5433.47-
    FLEURS (lower is better)--0.080.09-
    Long Context
    MRCR v2 8 needle 128k (average)66.4%4

    From the published model card. Full card on the HuggingFace links in the sidebar.

    Using it via the API

    Call it like any OpenAI endpoint

    Once AxForge deploys gemma4-e-npu2 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (gemma4-e-npu2 below is illustrative; you get the exact model name on deployment.)

    $ curl -sS https://api.axforge.ai/v1/chat/completions \
      -H "Authorization: Bearer $AXFORGE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"model":"gemma4-e-npu2","messages":[{"role":"user","content":"Hello"}]}'

    Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

    © 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms