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

gemma-4-E4B-it-ONNX

Date: 2026-11-14Commit: 2b6d2e2Signed: 2DC28CC7B26A283B ✓

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

gemma73.7GBgemma-4-E4B-it-ONNXonnxpermissive
FactsParamsnot statedSize73.7 GBFormatsonnxTaskany to anyLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/gemma-4-E4B-it-ONNX
# manifest sha256 a0b34339645a… · 73.7 GB · 71 files
$ fw verify ./gemma-4-E4B-it-ONNX onnx-community/gemma-4-E4B-it-ONNX
From sourceHosted (signed)onnx-community/gemma-4-E4B-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
73.7 GB
Weights
101 MB (smallest of 20 ONNX variants)
Parameters
not stated
Formats
onnx
Task
any to any
License
Apache-2.0 (permissive)
Files
71, 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 2b6d2e2. 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-E4B-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-E4B-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

71 files · 73.7 GBWeights 101 MB (smallest of 20 ONNX variants). Sizes and sha256 from the signed manifest.
Show all 71 files with their sha256
FileSizesha256
.gitattributes4.67 KB0843bc00b48780dcca82c8d4e0de14b62ca7a086d4ad72e388cd256fbb96c61c
README.md27.8 KBa7efa3b6983d5448e5a8a5a2395926defe36f34b26fb13826a6db0d7e34975ea
chat_template.jinja16.3 KB781d10940fbc44be40064b5d43a056fc486c84ceaa55538226368b57314132bf
config.json5.74 KB3251c77df50bccec2037f7e06a023105aeacbc89b784d990b1d279fc83ff9b1f
generation_config.json238 Be6a0b50de21a511f15ac4857b7f227f68ee60ecb1f11255d07b75e0bdc60e155
onnx/audio_encoder.onnx220 KB6deb0a993e95f9b2043a75bd84f532a1cd1c76d518e711477a22854fcfabefbb
onnx/audio_encoder.onnx_data1.19 GB817cab8784c49d6fadba888a3cb7fcd970e3d89decadcca843e4ce3c9d151194
onnx/audio_encoder_fp16.onnx219 KB3500e7c13585f9ba111e7bb713f406fe6bb28a473258fed35c65b7d785a1e14c
onnx/audio_encoder_fp16.onnx_data593 MBe14a5baa9637ecef28fd164587791c368309ef494a7b7a933e1848e552490197
onnx/audio_encoder_q4.onnx261 KB0baaa4b27ccb8c1461277380736e374802810c5a046d25f97543d619a30f70e8
onnx/audio_encoder_q4.onnx_data191 MBb7a320b3edb4a41d1a34c22b1f189ca54fd7b7f7412f3072e18936ba594b9823
onnx/audio_encoder_q4f16.onnx260 KBabf9f3db89b336579c786704e147747085ccca23f28ecdf33f6736a93e3fbc47
onnx/audio_encoder_q4f16.onnx_data172 MB814635b03d618d2513d377e051d491d0a5448f1407864fb2535e4b8182f9eced
onnx/audio_encoder_quantized.onnx265 KBf229b726768ea589627d4d823be27ccec9ff5b43a97efb29580831a585e7c0a1
onnx/audio_encoder_quantized.onnx_data344 MB79be229c15834198e099d41f19dba4e9fb7f6479f5ae0ad11daf33ba7161b5f1
onnx/decoder_model_merged.onnx661 KBd78efba85d5b54ce6ffa1c3c9caf3be4277184c6cd001e3fe775c9f1f581358d
onnx/decoder_model_merged.onnx_data2.00 GBb13a48cf140aafed1f6342e41ebe53560ca0128e5289c280dc55eea3677ac5e5
onnx/decoder_model_merged.onnx_data_11.97 GB802672bb1e33eda2b1d04f9359cf1652912a2782e9274f34d333f3dd5e5b11e4
onnx/decoder_model_merged.onnx_data_21.91 GB0acc5405ad8ca7f15a95748ec395186a177290546dd47cb9a4dea2259566723f
onnx/decoder_model_merged.onnx_data_31.91 GBa3cd8106749a5aca5fa30d705fb276859ca8096bac8918a25934975d301382aa
onnx/decoder_model_merged.onnx_data_41.90 GB01e3cc6e70662dba3e0e55e8536c0c84d24de3c4171e07017378b64432ad0441
onnx/decoder_model_merged.onnx_data_52.06 GBfe9e3d8147138007cd1ad0bfe551cf0bbbba44e30a34089768c3af6c68f879d9
onnx/decoder_model_merged.onnx_data_62.00 GBe17281c3d5b08677b018f15b80d8de890799723e516f0f456e043a305971390f
onnx/decoder_model_merged.onnx_data_72.02 GBc1ad4f07cb5829dc45fe9afe0f01ce9f21be60e2baf3bad1c4552ebf37432d89
onnx/decoder_model_merged.onnx_data_8514 MB5f520fb85af8513a5681fa15760af8e8f896a5dedded7d85a45c47016ac67ff9
onnx/decoder_model_merged.onnx_data_92.68 GB98a84d41c4df6321c8dbf4b495659579345e9dc8bb5699083ea8fb4a04e6f237
onnx/decoder_model_merged_fp16.onnx696 KB2b7d4abf5f60e5e275e5217bd14ef01a77d67fc081fc0a0b3a1f1600032c4947
onnx/decoder_model_merged_fp16.onnx_data2.09 GB67a48110b5240dac01bd31f68a9fdc4d6408cda58abe9ae0b76d45d27b7b0cb1
onnx/decoder_model_merged_fp16.onnx_data_12.00 GB5d38e95f62e4c4419a452082b87a8341d12c35716fa7306d197ca842b98689b2
onnx/decoder_model_merged_fp16.onnx_data_22.05 GBcfe68868b215a6ed46ac645f1adf64b394d8ca976b0e8441c827ca4207daeea1
onnx/decoder_model_merged_fp16.onnx_data_32.01 GBa1e47f370819c54be23b24fa8acf0ce46ac078ec755b558d480eb4ffdf6e8ebe
onnx/decoder_model_merged_fp16.onnx_data_41.34 GB81ddc02ad3435114232e94e147dac77c213e650c10e3b72810c0aeebc38ff3b0
onnx/decoder_model_merged_q4.onnx815 KBaf764e3b468255401694cf9acbdf859e7e2febd8cd9abd1443ab8ab5493d1f99
onnx/decoder_model_merged_q4.onnx_data2.09 GB3f0dda0cd6b575a49c9a8753250256518a2b9a053ed4cc9dddb6e228a3732099
onnx/decoder_model_merged_q4.onnx_data_11.29 GB3ce62ea330a5549d791d9b7a2a72dcad8cd4f4083fac490b72b1d539f46f07eb
onnx/decoder_model_merged_q4f16.onnx851 KB43aa27452be3dd7fbb9524257dd66af957add748ddab20ea63ae71923e59aa08
onnx/decoder_model_merged_q4f16.onnx_data2.07 GBb6aa13eab3ecdf4721293e93c806c279ca0516956187f7aec63ee90ec7216e73
onnx/decoder_model_merged_q4f16.onnx_data_1812 MB84e1c5f09ba88a5351959e4f73f62bce46f92dc19a7d7c82376ef36771c26a30
onnx/decoder_model_merged_quantized.onnx824 KBcf0b937aed1b8a6a24206fafc8f61dbb3986e39f991ab82a6f2d708d36ea7a3b
onnx/decoder_model_merged_quantized.onnx_data2.10 GBbe2546474f67c4b8d90c54433304f3348d0516a818cd3f18dc9ab289d3210223
onnx/decoder_model_merged_quantized.onnx_data_12.05 GB6b02b9439092cedd10bef06d25a376d9b401357d2e4c4b33b33aff452e746462
onnx/decoder_model_merged_quantized.onnx_data_21.62 GB325c2b74b85f9c53ceb463bc41dce6ea63977ad75349713b5810d4d14431bb55
onnx/embed_tokens.onnx4.24 KB366f285e904aaf65c7995eb1a2a9da1e21c95c38fa3bff99e8f88163cfee0919
onnx/embed_tokens.onnx_data2.68 GB83574e60aa182da473b9fbb23b4320af80c57f98a0df1e2df56546181a51d252
onnx/embed_tokens.onnx_data_111.3 GB01307179b594d804a1d3791347440261a8275c13c7a81fef4da29319cea6f80e
onnx/embed_tokens_fp16.onnx4.71 KB9372077ffe674ac6149be72a71a1946ca33502109e9e800789907361e8a27855
onnx/embed_tokens_fp16.onnx_data1.34 GB03192217951df30db67ce881e79969389fa0d50beac6baed4d5212c0f4991d91
onnx/embed_tokens_fp16.onnx_data_15.64 GBce1f307cf6f0ee6223921830d80d28d5113f9a1c0c0f68d0d1fee14d153ae141
onnx/embed_tokens_q4.onnx5.13 KB78f0c7025bc90339807336da699d7dac6c51ddbb4a690aa4c9e68f3e42b2b353
onnx/embed_tokens_q4.onnx_data1.84 GB67a3100d70c26840c34f8aac29aeec3db31315268cfc53dbc456e2a648849f35
onnx/embed_tokens_q4.onnx_data_1396 MB260b86f8e306ea73aeb8f85c0c142e1fef4a5ac1889a2345e35891518d9367d5
onnx/embed_tokens_q4f16.onnx5.62 KBaa48aa1806eda0ea42b79cd8eea355aebaf3b6ae3b04190bfee7ceef308603a4
onnx/embed_tokens_q4f16.onnx_data2.02 GBfd0f39c08f7e20a31145c2351a76a408b6c4ab60d15cc33f40e29cf30c0b2451
onnx/embed_tokens_quantized.onnx5.17 KB37371d6fbf2210762b924c9c568ac0b4297f5d36a4f78f77bf27556dff36f7f8
onnx/embed_tokens_quantized.onnx_data776 MBf275cb4247609bbb13febc2b1feec8291655eba6c330aa88650735333de7f29b
onnx/embed_tokens_quantized.onnx_data_12.82 GB116090e86296784f756f2d8c7cd2d08f01aab00f64c371f8046c45e9b9fff183
onnx/embed_tokens_quantized.onnx_data_2440 MBc708996a16a11db4b36819462e20e1c14d901b5337050b39e168e0c92874d094
onnx/vision_encoder.onnx162 KB6a775e3c41186efc8a3f4846b3c367c9a304cf27816f40683f075b65c63ce48d
onnx/vision_encoder.onnx_data677 MB0d769976353b6adfb6bf93c6f9b7fcd9df34a3546998ca81feb2134e975e94a4
onnx/vision_encoder_fp16.onnx151 KBe64eb9094e581bd6f7e95638b0b5f81941c23b0cdd9b227e2cc46fa6c57ca0d8
onnx/vision_encoder_fp16.onnx_data339 MBc1db1bfeb62084f03917c1138641f7d62128071c1e37b3c992b3baa07f785884
onnx/vision_encoder_q4.onnx200 KBae64cce8def6731c586c4e899ebe9cf56a24c6420d141fb41ed88e3afe704c99
onnx/vision_encoder_q4.onnx_data115 MB4f8b2fc97064387b0fb63d2927fe80518279f09b00acf52764353fd6eb44494a
onnx/vision_encoder_q4f16.onnx189 KB7475ce3d5d98d74003410367cc53f23ddb38891e1847cce0a4535fb6d953c540
onnx/vision_encoder_q4f16.onnx_data101 MB6cada2b035aed2284ef3a379fb6523906b95da1c1a24af7182161342d1269a52
onnx/vision_encoder_quantized.onnx203 KB1b5a1104d4f4bda7518916c0f5330a4ed11edd06068fc102c40afafc9b9461b1
onnx/vision_encoder_quantized.onnx_data202 MB659f68698bad3576e6addffceb962df88585dd002c66d383e119d3eb10725bfc
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
2b6d2e26a9 pinned now manifest updated, same commit2026-11-14 21:31 UTC71 files · 73.7 GB
2b6d2e26a92026-11-14 21:31 UTC71 files · 73.7 GB

Use it

$ fw get onnx-community/gemma-4-E4B-it-ONNX
# manifest sha256 a0b34339645a… · 73.7 GB · 71 files
$ fw verify ./gemma-4-E4B-it-ONNX onnx-community/gemma-4-E4B-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-E4B-it-ONNX.json --dir ./gemma-4-E4B-it-ONNX $ python3 fw.py verify ./gemma-4-E4B-it-ONNX ./onnx-community__gemma-4-E4B-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-E4B-it-ONNX --revision 2b6d2e26a962f70a33da8f7cd81e1afdd8d9cfb2 --local-dir ./gemma-4-E4B-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
a7efa3b6983d5448e5a8a5a2395926defe36f34b26fb13826a6db0d7e34975ea
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-E4B-it-ONNXDate: 2026-11-14Commit: 2b6d2e2Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/gemma-4-E4B-it-ONNX
Pinned commit
2b6d2e26a962f70a33da8f7cd81e1afdd8d9cfb2
Manifest
gemma-4-E4B-it-ONNX.json · .minisig
Manifest sha256
a0b34339645a0a960d0f40ed32a42742ad0b860fc3745f999fb058736aa996bc
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-E4B-it-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/gemma-4-E4B-it-ONNX.json.minisig $ minisign -Vm gemma-4-E4B-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-E4B-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-E4B-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