A reasoning-enhanced fine-tune of
google/gemma-4-E4B-it, distilled from Claude Opus 4.6 reasoning traces with supplementary math Chain-of-Thought data.
Around 20,000 samples combining reasoning distillation and math Chain-of-Thought data (~40% math content):
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "naazimsnh02/gemma-4-e4b-opus-reasoning-v2",
5 torch_dtype="auto",
6 device_map="auto",
7)
8tokenizer = AutoTokenizer.from_pretrained("naazimsnh02/gemma-4-e4b-opus-reasoning-v2")
9
10messages = [{"role": "user", "content": "A train travels 60 km/h. How long does it take to cover 255 km?"}]
11inputs = tokenizer.apply_chat_template(
12 messages,
13 add_generation_prompt=True,
14 return_tensors="pt",
15 tokenize=True,
16 return_dict=True,
17).to(model.device)
18
19output = model.generate(**inputs, max_new_tokens=1024, temperature=1.0, top_p=0.95, top_k=64)
20print(tokenizer.decode(output[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
This model inherits the
Gemma license from the base model. Please review and comply with Google's Gemma Terms of Use.