Downloads · 30 days
0
terrytaylorbonn/431_smollm-model
431_smollm-model is a machine learning model from terrytaylorbonn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of HuggingFaceTB/SmolLM2-1.7B-Instruct.
Downloads · 30 days
0
Access
Public
Updated Jul 23, 2025
Repo size
25.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors25.2 MB · 84%
From the Hugging Face model README
This model is a fine-tuned version of HuggingFaceTB/SmolLM2-1.7B-Instruct.
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load model
tokenizer = AutoTokenizer.from_pretrained("terrytaylorbonn/431_smollm-model")
model = AutoModelForCausalLM.from_pretrained("terrytaylorbonn/431_smollm-model")
# Generate text
messages = [{"role": "user", "content": "Your prompt here"}]
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)
response = tokenizer.decode(outputs[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
print(response)
This model inherits the limitations of the base model and may have additional biases from the fine-tuning data.