Downloads · 30 days
34
7% of all-time downloads
sidcraftscode/smollm2-1.7b-distilled-gpt-oss-20b
smollm2-1.7b-distilled-gpt-oss-20b is a text generation model from sidcraftscode. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is a distilled version of SmolLM2-1.7B-Instruct that was trained using knowledge distillation from OpenAI's gpt-oss-20b.
Downloads · 30 days
34
7% of all-time downloads
All-time downloads
456
Public
Parameters
1.7B
27.4 GB on disk
Likes
3
Public
Click a slice to open those files.
.pt20.5 GB · 86%
From the Hugging Face model README
This model is a distilled version of SmolLM2-1.7B-Instruct that was trained using knowledge distillation from OpenAI's gpt-oss-20b.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("sidcraftscode/smollm2-1.7b-distilled-gpt-oss-20b")
tokenizer = AutoTokenizer.from_pretrained("sidcraftscode/smollm2-1.7b-distilled-gpt-oss-20b")
messages = [{"role": "user", "content": "Explain quantum computing"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response)