Downloads · 30 days
0
annu17/mu_model
mu_model is a machine learning model from annu17. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository demonstrates how to load the Hugging Face model HuggingFaceTB/SmolLM2-135M using the Transformers library.
Downloads · 30 days
0
Access
Public
Updated Jul 27, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 57%
From the Hugging Face model README
This repository demonstrates how to load the Hugging Face model HuggingFaceTB/SmolLM2-135M using the Transformers library.
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "HuggingFaceTB/SmolLM2-135M"
device = "cpu"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)
Example prompt:
Gravity is
Example generated output:
Gravity is a force that pulls objects towards each other...