---
title: gemma-3n-E4B-it-unsloth-bnb-4bit
canonical_url: "https://www.modelscope.cn/models/unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit"
md_url: "https://www.modelscope.cn/models/unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit.md"
repository: unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit
last_updated: 2025-07-11
license: gemma
pipeline_tag: image-text-to-text
tasks:
  - image-text-to-text
model_type:
  - gemma3n
architectures:
  - Gemma3nForConditionalGeneration
base_model:
  - google/gemma-3n-E4B-it
base_model_relation: quantized
parameters: 5.9B
tensor_type:
  - F32
  - U8
  - BF16
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - en
inference_backends:
  - "deploy_task vlm/text/emb"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 420
stars: 0
tags:
  - gemma3
  - unsloth
  - transformers
  - gemma
  - google
---

# gemma-3n-E4B-it-unsloth-bnb-4bit

> gemma-3n-E4B-it-unsloth-bnb-4bit - unsloth 在 ModelScope 开源的模型。Learn how to run & fine-tune Gemma 3n correctly - Read our Guide . See our collection for all versions of Gemma 3n including GGUF, 4-bit & 16-bit formats. Unsloth Dynamic 2.0 achieves SOTA…

unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit 是 ModelScope 魔搭社区上的 5.9B 参数image-text-to-text模型，采用 gemma 许可，基于 google/gemma-3n-E4B-it 构建，可用 deploy_task vlm/text/emb、sglang 0.5.2、vllm 0.9.2 部署。

- **Repository**: unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit
- **License**: gemma
- **Tasks**: image-text-to-text
- **Parameters**: 5.9B
- **Base model**: google/gemma-3n-E4B-it
- **Inference backends**: deploy_task vlm/text/emb, sglang 0.5.2, vllm 0.9.2
- **Tags**: gemma3, unsloth, transformers, gemma, google
- **Downloads**: 420
- **Stars**: 0
- **Last updated**: 2025-07-11

Source: https://www.modelscope.cn/models/unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit

---

<div>
  <p style="margin-bottom: 0; margin-top: 0;">
    <strong>Learn how to run & fine-tune Gemma 3n correctly - <a href="https://docs.unsloth.ai/basics/gemma-3n">Read our Guide</a>.</strong>
  </p>
  <p style="margin-bottom: 0;">
    <em>See <a href="https://huggingface.co/collections/unsloth/gemma-3n-685d3874830e49e1c93f9339">our collection</a> for all versions of Gemma 3n including GGUF, 4-bit & 16-bit formats.</em>
  </p>
<p style="margin-top: 0;margin-bottom: 0;">
    <em><a href="https://docs.unsloth.ai/basics/unsloth-dynamic-v2.0-gguf">Unsloth Dynamic 2.0</a> achieves SOTA accuracy & performance versus other quants.</em>
  </p>
  <div style="display: flex; gap: 5px; align-items: center; ">
    <a href="https://github.com/unslothai/unsloth/">
      <img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133">
    </a>
    <a href="https://discord.gg/unsloth">
      <img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173">
    </a>
    <a href="https://docs.unsloth.ai/basics/gemma-3n">
      <img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143">
    </a>
  </div>
<h1 style="margin-top:0; margin-bottom: 0;">✨ Gemma 3n Usage Guidelines</h1>
</div>

- Currently **only text** is supported.
- Ollama: `ollama run hf.co/unsloth/gemma-3n-E4B-it-GGUF:Q4_K_XL` - auto-sets correct chat template and settings
- Set temperature = 1.0, top_k = 64, top_p = 0.95, min_p = 0.0
- Gemma 3n max tokens (context length): 32K. Gemma 3n chat template:
```
<bos><start_of_turn>user\nHello!<end_of_turn>\n<start_of_turn>model\nHey there!<end_of_turn>\n<start_of_turn>user\nWhat is 1+1?<end_of_turn>\n<start_of_turn>model\n
```
- For complete detailed instructions, see our [step-by-step guide](https://docs.unsloth.ai/basics/gemma-3n).

# 🦥 Fine-tune Gemma 3n with Unsloth

- Fine-tune Gemma 3n (4B) for free using our Google [Colab notebook here](https://docs.unsloth.ai/get-started/unsloth-notebooks)!
- Read our Blog about Gemma 3n support: [unsloth.ai/blog/gemma-3n](https://unsloth.ai/blog/gemma-3n)
- View the rest of our notebooks in our [docs here](https://docs.unsloth.ai/get-started/unsloth-notebooks).

| Unsloth supports          |    Free Notebooks                                                                                           | Performance | Memory use |
|-----------------|--------------------------------------------------------------------------------------------------------------------------|-------------|----------|
| **Gemma-3n-E4B**      | [▶️ Start on Colab](https://docs.unsloth.ai/get-started/unsloth-notebooks)               | 2x faster | 80% less |
| **GRPO with Gemma 3 (1B)**      | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_(1B)-GRPO.ipynb)               | 2x faster | 80% less |
| **Gemma 3 (4B)**      | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_(4B).ipynb)               | 2x faster | 60% less |
| **Qwen3 (14B)**      | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_(14B)-Reasoning-Conversational.ipynb)               | 2x faster | 60% less |
| **DeepSeek-R1-0528-Qwen3-8B (14B)**      | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/DeepSeek_R1_0528_Qwen3_(8B)_GRPO.ipynb)               | 2x faster | 80% less |
| **Llama-3.2 (3B)**      | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_(1B_and_3B)-Conversational.ipynb)               | 2.4x faster | 58% less |
<br>

# Gemma-3n-E4B model card
