Downloads · 30 days
27
2% of all-time downloads
ertghiu256/gemma-4-e2b-gemini-opus-reasoning-distill
gemma-4-e2b-gemini-opus-reasoning-distill is a machine learning model from ertghiu256. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
The gemma-4-e2b-gemini-opus-reasoning-distill model is a specialized variant of the Gemma 4 architecture. It has been fine-tuned specifically to enhance the logical structure and rigidity of its reasoning capabilities…
Downloads · 30 days
27
2% of all-time downloads
All-time downloads
1.1K
Public
Parameters
5.1B
17.1 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors10.2 GB · 100%
From the Hugging Face model README
The gemma-4-e2b-gemini-opus-reasoning-distill model is a specialized variant of the Gemma 4 architecture. It has been fine-tuned specifically to enhance the logical structure and rigidity of its reasoning capabilities, particularly in technical domains like mathematics and coding.
This training process focused on refining how the model approaches problem-solving, aiming to instill a systematic, traceable approach to generating solutions. The primary goal is not to change the core conversational style of Gemma 4, but rather to make its internal thought processes more organized and deterministic.
This model was trained using a focused distillation process on high-quality reasoning examples extracted from various large language models (LLMs). This approach aimed to transfer structured thinking patterns into the Gemma 4 architecture.
Core Objectives:
<|think|>) that clearly map out the logical progression from problem statement to final solution.Training Datasets:
| Dataset | Purpose | Size/Focus |
|---|---|---|
angrygiraffe/claude-opus-4.6-4.7-reasoning-8.7k | High-level logical deduction examples. | 8.7k examples |
Jackrong/GLM-5.1-Reasoning-1M-Cleaned | Large-scale reasoning patterns and structured output generation. | 1 Million examples |
Roman1111111/gemini-3.1-pro-hard-high-reasoning | Specialized, challenging reasoning scenarios in technical domains. | High-quality specialized dataset |
ertghiu256/safety-training-distilled-50-examples | Additional safety fine-tuning to retain security protocols during the distillation process. | 50 examples |
<\|think\|> tag) before presenting the final answer.To maximize the model's rigid and structured reasoning capabilities, use the following settings:
| Parameter | Value | Description |
|---|---|---|
Temperature (temp) | 0.5 | Low temperature promotes deterministic, logical, and less creative output, favoring accuracy over novelty. |
Top-K (top_k) | 64 | Limits the sampling space to the 40 most likely tokens, ensuring focused and relevant reasoning paths. |
Top-P (top_p) | 0.9 | Allows for sufficient diversity in vocabulary while maintaining a high degree of coherence and relevance. |
For optimal performance, structure your prompts to encourage the model to utilize its structured reasoning features:
<|think|> tag, then provide the final answer.").This model is compatible with standard Hugging Face transformers library implementations and can be deployed using various inference engines:
from transformers import AutoProcessor, AutoModelForCausalLM
MODEL_ID = "ertghiu256/gemma-4-e2b-gemini-opus-reasoning-distill"
# Load model and processor
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
dtype="auto",
device_map="auto" # Automatically maps layers to available devices (GPU/CPU)
)
# Example inference setup (simplified)
prompt = "Solve the following quadratic equation: x^2 - 5x + 6 = 0. Use the <|think|> tag for your reasoning."
inputs = processor(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, temperature=0.5, top_k=40, top_p=0.95)
print(processor.decode(outputs[0], skip_special_tokens=True))