Views
No views yet
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.<|think|>) that clearly map out the logical progression from problem statement to final solution.| 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.| 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. |
<|think|> tag, then provide the final answer.").transformers library implementations and can be deployed using various inference engines:1from transformers import AutoProcessor, AutoModelForCausalLM
2
3MODEL_ID = "ertghiu256/gemma-4-e2b-gemini-opus-reasoning-distill"
4
5# Load model and processor
6processor = AutoProcessor.from_pretrained(MODEL_ID)
7model = AutoModelForCausalLM.from_pretrained(
8 MODEL_ID,
9 dtype="auto",
10 device_map="auto" # Automatically maps layers to available devices (GPU/CPU)
11)
12
13# Example inference setup (simplified)
14prompt = "Solve the following quadratic equation: x^2 - 5x + 6 = 0. Use the <|think|> tag for your reasoning."
15
16inputs = processor(prompt, return_tensors="pt").to(model.device)
17outputs = model.generate(**inputs, temperature=0.5, top_k=40, top_p=0.95)
18
19print(processor.decode(outputs[0], skip_special_tokens=True))