Downloads · 30 days
9
5% of all-time downloads
LyJonathan/gemma-4-E2B-Claude-4.6-Opus-Reasoning-Distilled
gemma-4-E2B-Claude-4.6-Opus-Reasoning-Distilled is a machine learning model from LyJonathan. 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.
This is a fine-tuned version of google/gemma-4-E2B-it trained on ~9,600 conversation examples generated from Claude Opus 4.6.
Downloads · 30 days
9
5% of all-time downloads
All-time downloads
190
Public
Repo size
20.5 GB
Likes
6
Public
Click a slice to open those files.
.bin10.2 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of google/gemma-4-E2B-it trained on ~9,600 conversation examples generated from Claude Opus 4.6.
from transformers import AutoProcessor, AutoModelForCausalLM
processor = AutoProcessor.from_pretrained("LyJonathan/gemma-4-e2b-claude-distilled")
model = AutoModelForCausalLM.from_pretrained("LyJonathan/gemma-4-e2b-claude-distilled", device_map="cuda", dtype=torch.float16)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a short joke about saving RAM."},
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0], skip_special_tokens=True))