alt.freeweights.gemma / gemma-4-E2B-it-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.gemmaSubject:

gemma-4-E2B-it-ONNX

Date: 2026-11-14Commit: 6f21c99Signed: 2DC28CC7B26A283B ✓

Any to any model. Onnx weights, 47.7 GB in all. Published by onnx-community under Apache-2.0.

gemma47.7GBgemma-4-E2B-it-ONNXonnxpermissive
FactsParamsnot statedSize47.7 GBFormatsonnxTaskany to anyLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/gemma-4-E2B-it-ONNX
# manifest sha256 34714b36d118… · 47.7 GB · 60 files
$ fw verify ./gemma-4-E2B-it-ONNX onnx-community/gemma-4-E2B-it-ONNX
From sourceHosted (signed)onnx-community/gemma-4-E2B-it-ONNXLast check: 2026-11-14 21:31 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of gemma-4-E2B-it.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Scan with

Overview

Size
47.7 GB
Weights
99.4 MB (smallest of 20 ONNX variants)
Parameters
not stated
Formats
onnx
Task
any to any
License
Apache-2.0 (permissive)
Files
60, each with a sha256
Publisher
onnx-community
Added
2026-11-14
Section
alt.freeweights.gemma
Lineage

Original release from the publisher.

Base model: google/gemma-4-E2B-it

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:31 UTCpassed

Model card

From the publisher at commit 6f21c99. Shown as plain text with links; images open at the publisher.

Image: image

Hugging Face | GitHub | Launch Blog | Documentation

License: Apache 2.0 | Authors: Google DeepMind

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).
  • 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%44.1%25.4%19.1%13.5%

Core Capabilities#

Gemma 4 models handle a broad range of tasks across text, vision, and audio. Key capabilities include:

  • Thinking – Built-in reasoning mode that lets the model think step-by-step before answering.
  • Long Context – Context windows of up to 128K tokens (E2B/E4B) and 256K tokens (26B A4B/31B).
  • Image Understanding – Object detection, Document/PDF parsing, screen and UI understanding, chart comprehension, OCR (including multilingual), handwriting recognition, and pointing. Images can be processed at variable aspect ratios and resolutions.
  • Video Understanding – Analyze video by processing sequences of frames.
  • Interleaved Multimodal Input – Freely mix text and images in any order within a single prompt.
  • Function Calling – Native support for structured tool use, enabling agentic workflows.
  • Coding – Code generation, completion, and correction.
  • Multilingual – Out-of-the-box support for 35+ languages, pre-trained on 140+ languages.
  • Audio (E2B and E4B only) – Automatic speech recognition (ASR) and speech-to-translated-text translation across multiple languages.

Best Practices#

For the best performance, use these configurations and best practices:

1. Sampling Parameters#

Use the following standardized sampling configuration across all use cases:

  • temperature=1.0
  • top_p=0.95
  • top_k=64
2. Thinking Mode Configuration#

Compared to Gemma 3, the models use standard system, assistant, and user roles. To properly manage the thinking process, use the following control tokens:

  • Trigger Thinking: Thinking is enabled by including the <|think|> token at the start of the system prompt. To disable thinking, remove the token.
  • Standard Generation: When thinking is enabled, the model will output its internal reasoning followed by the final answer using this structure: <|channel>thought\n[Internal reasoning]<channel|>
  • Disabled Thinking Behavior: For all models except for the E2B and E4B variants, if thinking is disabled, the model will still generate the tags but with an empty thought block: <|channel>thought\n<channel|>[Final answer]

Note. Note that many libraries like Transformers and llama.cpp handle the complexities of the chat template for you.

3. Multi-Turn Conversations#
  • No Thinking Content in History: In multi-turn conversations, the historical model output should only include the final response. Thoughts from previous model turns must not be added before the next user turn begins.
4. Modality order#
  • For optimal performance with multimodal inputs, place image and/or audio content before the text in your prompt.
5. Variable Image Resolution#

Aside from variable aspect ratios, Gemma 4 supports variable image resolution through a configurable visual token budget, which controls how many tokens are used to represent an image. A higher token budget preserves more visual detail at the cost of additional compute, while a lower budget enables faster inference for tasks that don't require fine-grained understanding.

  • The supported token budgets are: 70, 140, 280, 560, and 1120.
    • Use lower budgets for classification, captioning, or video understanding, where faster inference and processing many frames outweigh fine-grained detail.
    • Use higher budgets for tasks like OCR, document parsing, or reading small text.
6. Audio#

Use the following prompt structures for audio processing:

  • Audio Speech Recognition (ASR)
Transcribe the following speech segment in {LANGUAGE} into {LANGUAGE} text.

Follow these specific instructions for formatting the answer:
* Only output the transcription, with no newlines.
* When transcribing numbers, write the digits, i.e. write 1.7 and not one point seven, and write 3 instead of three.
  • Automatic Speech Translation (AST)
Transcribe the following speech segment in {SOURCE_LANGUAGE}, then translate it into {TARGET_LANGUAGE}.
When formatting the answer, first output the transcription in {SOURCE_LANGUAGE}, then one newline, then output the string '{TARGET_LANGUAGE}: ', then the translation in {TARGET_LANGUAGE}.
7. Audio and Video Length#

All models support image inputs and can process videos as frames whereas the E2B and E4B models also support audio inputs. Audio supports a maximum length of 30 seconds. Video supports a maximum of 60 seconds assuming the images are processed at one frame per second.

Usage#

Transformers.js (JavaScript)#

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

You can then use the model as follows:

import {
  AutoProcessor,
  Gemma4ForConditionalGeneration,
  TextStreamer,
  load_image,
  read_audio,
} from "@huggingface/transformers";

// Load processor and model
const model_id = "onnx-community/gemma-4-E2B-it-ONNX";
const processor = await AutoProcessor.from_pretrained(model_id);
const model = await Gemma4ForConditionalGeneration.from_pretrained(model_id, {
  dtype: "q4f16",
  device: "webgpu",
  progress_callback: (info) => {
    if (info.status === "progress_total") {
      // console.log(`Loading model: ${info.progress}%`);
    }
  },
});

// Prepare prompt
const messages = [
  {
    role: "user",
    content: [
      { type: "image" },
      { type: "audio" },
      {
        type: "text",
        text: "Describe this image in detail and transcribe this audio verbatim.",
      },
    ],
  },
];
const prompt = processor.apply_chat_template(messages, {
  enable_thinking: false,
  add_generation_prompt: true,
});

// Prepare inputs
const image = await load_image("https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/artemis.jpeg");
const audio = await read_audio("https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav");
const inputs = await processor(prompt, image, audio, {
  add_special_tokens: false,
});

// Generate output
const outputs = await model.generate({
  ...inputs,
  max_new_tokens: 512,
  do_sample: false,
  streamer: new TextStreamer(processor.tokenizer, {
    skip_prompt: true,
    skip_special_tokens: false,
    // callback_function: (text) => { /* Do something with the streamed output */ },
  }),
});

// Decode output
const decoded = processor.batch_decode(
  outputs.slice(null, [inputs.input_ids.dims.at(-1), null]),
  { skip_special_tokens: true },
);
console.log(decoded[0]);
ONNX Runtime (Python)#
import onnxruntime
import numpy as np
from transformers import AutoConfig, AutoProcessor, GenerationConfig
import os
from huggingface_hub import snapshot_download

# 1. Load models
## Load config and processor
model_id = "onnx-community/gemma-4-E2B-it-ONNX"
processor = AutoProcessor.from_pretrained(model_id)
config = AutoConfig.from_pretrained(model_id)
generation_config = GenerationConfig.from_pretrained(model_id)

## Load sessions
audio_model = "onnx/audio_encoder_q4.onnx"
vision_model = "onnx/vision_encoder_q4.onnx"
embed_model = "onnx/embed_tokens_q4.onnx"
decoder_model = "onnx/decoder_model_merged_q4.onnx"
model_dir = snapshot_download(model_id, allow_patterns=[f"{audio_model}*",  f"{vision_model}*", f"{embed_model}*", f"{decoder_model}*"])
audio_model_path   = os.path.join(model_dir, audio_model)
vision_model_path  = os.path.join(model_dir, vision_model)
embed_model_path   = os.path.join(model_dir, embed_model)
decoder_model_path = os.path.join(model_dir, decoder_model)

providers = ['CPUExecutionProvider']
vision_session  = onnxruntime.InferenceSession(vision_model_path, providers=providers)
audio_session   = onnxruntime.InferenceSession(audio_model_path, providers=providers)
embed_session   = onnxruntime.InferenceSession(embed_model_path, providers=providers)
decoder_session = onnxruntime.InferenceSession(decoder_model_path, providers=providers)

## Set config values
eos_token_id = generation_config.eos_token_id
image_token_id = config.image_token_id
audio_token_id = config.audio_token_id

# 2. Prepare inputs
## Create input messages
messages = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": "In detail, describe the following audio and image."},
            {"type": "audio", "audio": "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav"},
            {"type": "image", "image": "https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/artemis.jpeg"},
        ],
    },
]
inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
)
input_ids = inputs["input_ids"].numpy()
attention_mask = inputs["attention_mask"].numpy()
position_ids = np.cumsum(attention_mask, axis=-1) - 1

pixel_values = inputs["pixel_values"].numpy() if "pixel_values" in inputs else None
pixel_position_ids = inputs["image_position_ids"].numpy() if "image_position_ids" in inputs else None
input_features = inputs["input_features"].numpy().astype(np.float32) if "input_features" in inputs else None
input_features_mask = inputs["input_features_mask"].numpy() if "input_features_mask" in inputs else None

## Prepare decoder inputs
batch_size = input_ids.shape[0]
num_logits_to_keep = np.array(1, dtype=np.int64)
past_key_values = {
    inp.name: np.zeros(
        [batch_size, inp.shape[1], 0, inp.shape[3]],
        dtype=np.float32 if inp.type == "tensor(float)" else np.float16,
    )
    for inp in decoder_session.get_inputs()
    if inp.name.startswith("past_key_values")
}

# 3. Generation loop
max_new_tokens = 1024
generated_tokens = np.array([[]], dtype=np.int64)
image_features = None
audio_features = None
for i in range(max_new_tokens):
    inputs_embeds, per_layer_inputs = embed_session.run(None, {"input_ids": input_ids})
    if image_features is None and pixel_values is not None:
        image_features = vision_session.run(["image_features"], {"pixel_values": pixel_values, "pixel_position_ids": pixel_position_ids})[0]
        mask = (input_ids == image_token_id).reshape(-1)
        flat_embeds = inputs_embeds.reshape(-1, inputs_embeds.shape[-1])
        flat_embeds[mask] = image_features
        inputs_embeds = flat_embeds.reshape(inputs_embeds.shape)

    if audio_features is None and input_features is not None and input_features_mask is not None:
        audio_features = audio_session.run(
            ["audio_features"],
            {"input_features": input_features, "input_features_mask": input_features_mask},
        )[0]
        mask = (input_ids == audio_token_id).reshape(-1)
        flat_embeds = inputs_embeds.reshape(-1, inputs_embeds.shape[-1])
        flat_embeds[mask] = audio_features
        inputs_embeds = flat_embeds.reshape(inputs_embeds.shape)

    logits, *present_key_values = decoder_session.run(None, dict(
        inputs_embeds=inputs_embeds,
        attention_mask=attention_mask,
        per_layer_inputs=per_layer_inputs,
        position_ids=position_ids,
        num_logits_to_keep=num_logits_to_keep,
        **past_key_values,
    ))

    ## Update values for next generation loop
    input_ids = logits[:, -1].argmax(-1, keepdims=True)
    attention_mask = np.concatenate([attention_mask, np.ones_like(input_ids)], axis=-1)
    position_ids = position_ids[:, -1:] + 1
    for j, key in enumerate(past_key_values):
        past_key_values[key] = present_key_values[j]

    generated_tokens = np.concatenate([generated_tokens, input_ids], axis=-1)
    if np.isin(input_ids, eos_token_id).any():
        break

    ## (Optional) Streaming
    print(processor.decode(input_ids[0]), end="", flush=True)
print()

# 4. Output result
print(processor.batch_decode(generated_tokens, skip_special_tokens=True)[0])

Model Data#

Data used for model training and how the data was processed.

Training Dataset#

Our pre-training dataset is a large-scale, diverse collection of data encompassing a wide range of domains and modalities, which includes web documents, code, images, audio, with a cutoff date of January 2025. Here are the key components:

  • Web Documents: A diverse collection of web text ensures the model is exposed to a broad range of linguistic styles, topics, and vocabulary. The training dataset includes content in over 140 languages.
  • Code: Exposing the model to code helps it to learn the syntax and patterns of programming languages, which improves its ability to generate code and understand code-related questions.
  • Mathematics: Training on mathematical text helps the model learn logical reasoning, symbolic representation, and to address mathematical queries.
  • Images: A wide range of images enables the model to perform image analysis and visual data extraction tasks.

The combination of these diverse data sources is crucial for training a powerful multimodal model that can handle a wide variety of different tasks and data formats.

Data Preprocessing#

Here are the key data cleaning and filtering methods applied to the training data:

  • CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering was applied at multiple stages in the data preparation process to ensure the exclusion of harmful and illegal content.
  • Sensitive Data Filtering: As part of making Gemma pre-trained models safe and reliable, automated techniques were used to filter out certain personal information and other sensitive data from training sets.
  • Additional methods: Filtering based on content quality and safety in line with our policies.

Ethics and Safety#

As open models become central to enterprise infrastructure, provenance and security are paramount. Developed by Google DeepMind, Gemma 4 undergoes the same rigorous safety evaluations as our proprietary Gemini models.

Evaluation Approach#

Gemma 4 models were developed in partnership with internal safety and responsible AI teams. A range of automated as well as human evaluations were conducted to help improve model safety. These evaluations align with Google’s AI principles, as well as safety policies, which aim to prevent our generative AI models from generating harmful content, including:

  • Content related to child sexual abuse material and exploitation
  • Dangerous content (e.g., promoting suicide, or instructing in activities that could cause real-world harm)
  • Sexually explicit content
  • Hate speech (e.g., dehumanizing members of protected groups)
  • Harassment (e.g., encouraging violence against people)
Evaluation Results#

For all areas of safety testing, we saw major improvements in all categories of content safety relative to previous Gemma models. Overall, Gemma 4 models significantly outperform Gemma 3 and 3n models in improving safety, while keeping unjustified refusals low. All testing was conducted without safety filters to evaluate the model capabilities and behaviors. For both text-to-text and image-to-text, and across all model sizes, the model produced minimal policy violations, and showed significant improvements over previous Gemma models' performance.

Usage and Limitations#

These models have certain limitations that users should be aware of.

Intended Usage#

Multimodal models (capable of processing vision, language, and/or audio) have a wide range of applications across various industries and domains. The following list of potential uses is not comprehensive. The purpose of this list is to provide contextual information about the possible use-cases that the model creators considered as part of model training and development.

  • Content Creation and Communication
    • Text Generation: These models can be used to generate creative text formats such as poems, scripts, code, marketing copy, and email drafts.
    • Chatbots and Conversational AI: Power conversational interfaces for customer service, virtual assistants, or interactive applications.
    • Text Summarization: Generate concise summaries of a text corpus, research papers, or reports.
    • Image Data Extraction: These models can be used to extract, interpret, and summarize visual data for text communications.
    • Audio Processing and Interaction: The smaller models (E2B and E4B) can analyze and interpret audio inputs, enabling voice-driven interactions and transcriptions.
  • Research and Education
    • Natural Language Processing (NLP) and VLM Research: These models can serve as a foundation for researchers to experiment with VLM and NLP techniques, develop algorithms, and contribute to the advancement of the field.
    • Language Learning Tools: Support interactive language learning experiences, aiding in grammar correction or providing writing practice.
    • Knowledge Exploration: Assist researchers in exploring large bodies of text by generating summaries or answering questions about specific topics.
Limitations#
  • Training Data
    • The quality and diversity of the training data significantly influence the model's capabilities. Biases or gaps in the training data can lead to limitations in the model's responses.
    • The scope of the training dataset determines the subject areas the model can handle effectively.
  • Context and Task Complexity
    • Models perform well on tasks that can be framed with clear prompts and instructions. Open-ended or highly complex tasks might be challenging.
    • A model's performance can be influenced by the amount of context provided (longer context generally leads to better outputs, up to a certain point).
  • Language Ambiguity and Nuance
    • Natural language is inherently complex. Models might struggle to grasp subtle nuances, sarcasm, or figurative language.
  • Factual Accuracy
    • Models generate responses based on information they learned from their training datasets, but they are not knowledge bases. They may generate incorrect or outdated factual statements.
  • Common Sense
    • Models rely on statistical patterns in language. They might lack the ability to apply common sense reasoning in certain situations.
Ethical Considerations and Risks#

The development of vision-language models (VLMs) raises several ethical concerns. In creating an open model, we have carefully considered the following:

  • Bias and Fairness
    • VLMs trained on large-scale, real-world text and image data can reflect socio-cultural biases embedded in the training material. Gemma 4 models underwent careful scrutiny, input data pre-processing, and post-training evaluations as reported in this card to help mitigate the risk of these biases.
  • Misinformation and Misuse
    • VLMs can be misused to generate text that is false, misleading, or harmful.
    • Guidelines are provided for responsible use with the model, see the Responsible Generative AI Toolkit.
  • Transparency and Accountability
    • This model card summarizes details on the models' architecture, capabilities, limitations, and evaluation processes.
    • A responsibly developed open model offers the opportunity to share innovation by making VLM technology accessible to developers and researchers across the AI ecosystem.

Risks identified and mitigations:

  • Generation of harmful content: Mechanisms and guidelines for content safety are essential. Developers are encouraged to exercise caution and implement appropriate content safety safeguards based on their specific product policies and application use cases.
  • Misuse for malicious purposes: Technical limitations and developer and end-user education can help mitigate against malicious applications of VLMs. Educational resources and reporting mechanisms for users to flag misuse are provided.
  • Privacy violations: Models were trained on data filtered for removal of certain personal information and other sensitive data. Developers are encouraged to adhere to privacy regulations with privacy-preserving techniques.
  • Perpetuation of biases: It's encouraged to perform continuous monitoring (using evaluation metrics, human review) and the exploration of de-biasing techniques during model training, fine-tuning, and other use cases.
Benefits#

At the time of release, this family of models provides high-performance open vision-language model implementations designed from the ground up for responsible AI development compared to similarly sized models.

Files

60 files · 47.7 GBWeights 99.4 MB (smallest of 20 ONNX variants). Sizes and sha256 from the signed manifest.
Show all 60 files with their sha256
FileSizesha256
.gitattributes3.83 KBc81e0e1d1cbca3f47ac62303bd8eeee5ba978579ba1bdc20110dfc4a1ccfca7c
README.md27.8 KBe8920b378acf78f5c63670a067092c56a3bb1f9227538bb1d73bbba4b7eb7a12
chat_template.jinja16.3 KB781d10940fbc44be40064b5d43a056fc486c84ceaa55538226368b57314132bf
config.json5.55 KB5494e6677d9e150ea20ba3101ae8a32b0f141004626f052725d8bf48991b9faa
generation_config.json238 Be6a0b50de21a511f15ac4857b7f227f68ee60ecb1f11255d07b75e0bdc60e155
onnx/audio_encoder.onnx220 KB01e8bdf202be608abe55ed3f1f180b897a73387b5c76f8801c9023c6dbc525b0
onnx/audio_encoder.onnx_data1.18 GBfd9fc0d5a06df02638d681ce15c51b84ba94fa7824e0e25effbeba4f02b9ba3c
onnx/audio_encoder_fp16.onnx219 KBf40fa9ce8da3996822d064762ffcbac24f44721e72f62d870dbd66619099ebf9
onnx/audio_encoder_fp16.onnx_data590 MBeb81ececc02d80405b8455f3f6206daedfcf1f3ea3f3286d838a62f83747f931
onnx/audio_encoder_q4.onnx261 KBc8a1d1f7821ef93809155448e4e441aadf14a4a159da5e6ce9ca7468f80b44dc
onnx/audio_encoder_q4.onnx_data190 MBae533f4fd4103b2f76b0d60082bf0de8567c2225d65dfe34461662b20d4da320
onnx/audio_encoder_q4f16.onnx260 KB5e0deb22791685c792d4b8e089deef9670fa4a4cecde434213d6a742e58fc3fa
onnx/audio_encoder_q4f16.onnx_data171 MBdf58e61a00bafa9449ee5fd52895ce952f158bbdd1fe38df8a68f48f36842e62
onnx/audio_encoder_quantized.onnx265 KBf12a5f8c5db8cd7be763453657b74f458cb591a03cfeb9b9ebc941db182525f0
onnx/audio_encoder_quantized.onnx_data342 MB33257b54b4bc8f84b873244a649be6aa90847e121bfaa648227081a7f55cc4ae
onnx/decoder_model_merged.onnx525 KBd7f0448a61b944293f327f0a8742a2d47f226627fffc62084d34010f6e068c49
onnx/decoder_model_merged.onnx_data2.07 GB3014f451f610db57a094d1dd67a54b6a5480608ec93bb2273932374bc1cb811f
onnx/decoder_model_merged.onnx_data_11.97 GB9cadb0ea679d5ca07a1e1d509bc640edad9776ac793a4faa3eae4c45c214be25
onnx/decoder_model_merged.onnx_data_22.06 GB57a949dd5fa1b8477af8871809117d55143f5e693c874e9cc05b452104b92907
onnx/decoder_model_merged.onnx_data_31.81 GB93fa5ec36406f5240a9316847ab8b81ddc8f445b8a2f2cf19024890546660a31
onnx/decoder_model_merged.onnx_data_41.61 GBb4ac4dec680d3a0a0e936f6ae1f95345f6e9fe3f18667595df870abdeb7da776
onnx/decoder_model_merged_fp16.onnx550 KB34e54181a58d4896c60773ccdb2833ba963114953b7cc0685b34f1c91321e4d4
onnx/decoder_model_merged_fp16.onnx_data2.09 GB072088206a214a434615401ce4da3c524fab05e100b716d5e7d5a58164a366ab
onnx/decoder_model_merged_fp16.onnx_data_11.86 GB4ccc497a2f29a82b47b3566038e020a3ce10ce5026aa2cb83550e90f4b54c8f4
onnx/decoder_model_merged_fp16.onnx_data_2805 MBf35317efd0a159769d6499c327742121a4bc13767b1b3725cfe21a9ab75a430a
onnx/decoder_model_merged_q4.onnx648 KBc6edb929bf342c524728d37efd400285ee71525e8fe64ff996341f78c3e577d2
onnx/decoder_model_merged_q4.onnx_data1.86 GBb879fe4b946c9b9ff6acb60f7c5eda3d2c9c4df8625895feb2d1e269002f0345
onnx/decoder_model_merged_q4f16.onnx673 KB73c0f1fe04f9a3a048fb3319c0671b6cf0346bf33a3a8624c853bcffe01c24a4
onnx/decoder_model_merged_q4f16.onnx_data1.52 GB3b27245a7396cb7039a4e4118bd2a8aa35106bae381522edf7c4867b5f22bb10
onnx/decoder_model_merged_quantized.onnx655 KBce3bad4d5330dd3ed1bd588907754c393004114ac4c4f14eac7f228f2d9705ad
onnx/decoder_model_merged_quantized.onnx_data2.09 GB7e04502814af3a6086397aa2eff45abc1b564df2eca6a9be049a00f82c1745d2
onnx/decoder_model_merged_quantized.onnx_data_1945 MB2cc09f165ded30fe1e48cd8997f2db7e8f0ebadb1108fa9b1b51201d86a04535
onnx/embed_tokens.onnx4.24 KB93840f00078b7f22ae3302ca15643d363059214e8a9e32ddd38dce1a6cfa6ece
onnx/embed_tokens.onnx_data1.61 GB1a9d41b71f0b15c47807d3874db443daf67ade7d9750c361c00fcab95ac508c0
onnx/embed_tokens.onnx_data_19.40 GBcd460a24efb42f32cd4c15a2a4ab6e596bb64399b589508960217b3d6d6ba9c3
onnx/embed_tokens_fp16.onnx4.71 KB0cf75108f796accccd4756724f331acac6f464d656d5c0cf1766e9305772abdc
onnx/embed_tokens_fp16.onnx_data805 MBfc6055646b44b9eca25abe2941612b1f104d56dd2f9b8b54776e328e351d4fd7
onnx/embed_tokens_fp16.onnx_data_14.70 GB7d7bf38285e3f007b5d28c3cd4d81e0b8f69c2534a53d25fb2952ab9b17b48ca
onnx/embed_tokens_q4.onnx5.14 KB2d8c8a2bcc30e8ded7f636967c2a58a346116583356dd933720b005fc88079c4
onnx/embed_tokens_q4.onnx_data1.76 GB40fa957d9988b8a0160c8b0eb5c3f781a237627e9f7153f30514a4ffb2e62888
onnx/embed_tokens_q4f16.onnx5.62 KBd7ca53f6a169471b5699b2f57ee4c7aa2c73732b0152f3909e64b71384444825
onnx/embed_tokens_q4f16.onnx_data1.59 GB024b199e6358ed42970f807686add5f9430d7e254ca7ce22fc9c83f015b9c517
onnx/embed_tokens_quantized.onnx5.17 KB06511401d70359582048796351c894adbd452471f2815b0198b93100e82b37e8
onnx/embed_tokens_quantized.onnx_data466 MB5ea1f5dd855f51b685aeeee967481467c148a41ebdd733d58856b407945b46a3
onnx/embed_tokens_quantized.onnx_data_12.35 GB143ff6a1eea191af79be401378bf8970d56ebde33daa6445a156e28acf6a7bc9
onnx/embed_tokens_quantized.onnx_data_2367 MBc90b413e9bde49f74c6634e7516b8b3980e207c979ee8af075f342cc1f3eecbe
onnx/vision_encoder.onnx162 KBd34fd8510310ae330704c5b3d1571e6a8faa419cd5cd5d709a230fddc366310d
onnx/vision_encoder.onnx_data674 MBf0468ff0c7994459072f712da835eada7a9a8eb21f92ca561ab61570ed3ef15b
onnx/vision_encoder_fp16.onnx151 KB2e8a95ce26015f10bf7249c2f36ab593fa630bd8b9fd9cb4deb6c308a7e75712
onnx/vision_encoder_fp16.onnx_data337 MB1c968a2928b5087f6f5e3628fee436088ad5bfbc5d79d97410322c40aab0b867
onnx/vision_encoder_q4.onnx200 KB8bc90fb094fca9ea9aec7f2ef069e37ee01cb3b454f571bf46843e056b951182
onnx/vision_encoder_q4.onnx_data112 MBdf747f790d1f7f451227124388fef863f09d4fb5a6f7e5052472a4f407cc23b9
onnx/vision_encoder_q4f16.onnx189 KBe0a4e48e519ade4eeddbb4cdadb812a7251aea871f7fb5f50576615fd3af22a3
onnx/vision_encoder_q4f16.onnx_data99.2 MB0835071d2c79c105f8e1b549b7f8dd8c9af07fa95f01ead2e7add280602d3c6d
onnx/vision_encoder_quantized.onnx203 KBbae62d0e57f2b665f3e3ba5d0312337eac9860f69e14de88bfdf2e17fa52a8ea
onnx/vision_encoder_quantized.onnx_data198 MB8ea7a1a2eb1f800621ab6772540af3d6988743cb475475c3df086e00389ca707
preprocessor_config.json43 B4457c6e8a09070d7d5d1cd983fbfb67ebafe602bd98120c3543a024f5d07056b
processor_config.json1.69 KB32bdf45d2ad4cc29a0822ddd157a182de76644f0419a6228d151495256e9813c
tokenizer.json19.4 MB47bd35616c7c782aaca6ccf48c75f3461d5877170984b8836b375107d0a9f566
tokenizer_config.json18.6 KB175c298b7bedbe83b3f2d6eecdc1fc9058cb4ff6d9f115c5990bc82d96336b9e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
6f21c99d7e pinned now manifest updated, same commit2026-11-14 21:31 UTC60 files · 47.7 GB
6f21c99d7e2026-11-14 21:31 UTC60 files · 47.7 GB

Use it

$ fw get onnx-community/gemma-4-E2B-it-ONNX
# manifest sha256 34714b36d118… · 47.7 GB · 60 files
$ fw verify ./gemma-4-E2B-it-ONNX onnx-community/gemma-4-E2B-it-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/gemma-4-E2B-it-ONNX.json --dir ./gemma-4-E2B-it-ONNX $ python3 fw.py verify ./gemma-4-E2B-it-ONNX ./onnx-community__gemma-4-E2B-it-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/gemma-4-E2B-it-ONNX --revision 6f21c99d7e18237f8d2ce92aadfdbfeba877f63a --local-dir ./gemma-4-E2B-it-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
e8920b378acf78f5c63670a067092c56a3bb1f9227538bb1d73bbba4b7eb7a12
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.gemmaSubject: gemma-4-E2B-it-ONNXDate: 2026-11-14Commit: 6f21c99Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/gemma-4-E2B-it-ONNX
Pinned commit
6f21c99d7e18237f8d2ce92aadfdbfeba877f63a
Manifest
gemma-4-E2B-it-ONNX.json · .minisig
Manifest sha256
34714b36d1189d5527538b7eaebaa4673ae8d939c552e9abe27a871ca6785f0a
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:31 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/gemma-4-E2B-it-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/gemma-4-E2B-it-ONNX.json.minisig $ minisign -Vm gemma-4-E2B-it-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

google/gemma-4-E2B-it · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/gemma-4-E2B-it-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. gemma-4-E2B-it-ONNX.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Ornith9-Summaries-LoRA-r128
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Ornith9-Summaries-LoRA-r64
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Qwen27-Knowledge-Units-LoRA-r128
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Qwen27-Summaries-LoRA-r128
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-12B-it-Qwen27-Summaries-LoRA-r64
From: laion <huggingface.co/laion>Subject: Alexandria-Gemma-4-E4B-it-Qwen27-Knowledge-Units-LoRA-r128