Gemma-4-E2B-DeepGLM-Chat

Gemma-4-E2B-DeepGLM-Chat is a specialized, lightweight reasoning model fine-tuned on top of Google Gemma 4 E2B (unsloth/gemma-4-E2B-it). Designed to punch far above its parameter weight class (~2.3B active parameters), this model merges edge-optimized efficiency with advanced chain-of-thought (CoT) tracking, mathematical verification, and code execution capabilities.


🌟 Key Features

  • Efficient Architecture: Built on the Google Gemma 4 E2B edge architecture, optimized for low latency and minimal memory overhead.
  • Multimodal Edge Foundations: Inherits text, vision, and audio processing capabilities natively from the base Gemma 4 E2B lineup.
  • Deep CoT Reasoning: Enhanced logical tracking enabled via structured internal reasoning channels (<|channel>thought).
  • Targeted Fine-Tuning Datasets:
    • isaiahbjork/cot-logic-reasoning (Formal logic, fallacies, multi-step deduction)
    • Banaxi-Tech/Deepseek-V4-Reasoning-Code-2500 (Deterministic code execution & algorithm tracing)
    • best-distill/glm-5.3-flash-distillation-chat (Mathematical distillation & structured formatting)
    • armand0e/Fable-5-Chat (Conversational multi-turn engagement & technical instruction)

🚀 Quickstart

Using transformers

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "ertghiu256/gemma-4-e2b-deepglm-distill-chat"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

prompt = "Why is the sky blue?"

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

💡 Output Format

To get the absolute best reasoning quality from this model, allow the model to utilize its built-in reasoning tags:

<|channel>thought
[Internal reasoning trace / scratchpad]
<channel|>
[Final response]
  • Tip: Running it with a moderate temperature (0.5 - 0.9).

📄 Citation & Acknowledgments

  • Base Model: Google Gemma 4 E2B (google/gemma-4-e2b)
  • Fine-Tuning Datasets:
  • Banaxi-Tech/Deepseek-V4-Reasoning-Code-2500
  • best-distill/glm-5.3-flash-distillation-chat
  • armand0e/Fable-5-Chat
  • isaiahbjork/cot-logic-reasoning

Citation

@misc{gemmateam2026gemma4,
      title={Gemma 4 Technical Report}, 
      author={Gemma Team},
      year={2026},
      eprint={2607.02770},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2607.02770}, 
}

Uploaded finetuned

  • Developed by: ertghiu256
  • License: apache-2.0
  • Finetuned from model : unsloth/gemma-4-E2B-it

This gemma4 model was trained 2x faster with Unsloth and Huggingface's TRL library.

Downloads last month
40
Safetensors
Model size
5B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ertghiu256/gemma-4-e2b-deepglm-distill-chat

Finetuned
(424)
this model

Datasets used to train ertghiu256/gemma-4-e2b-deepglm-distill-chat

Paper for ertghiu256/gemma-4-e2b-deepglm-distill-chat