Downloads · 30 days
5
4% of all-time downloads
vikashkr117/smollm2-135m-raw-trained
smollm2-135m-raw-trained is a machine learning model from vikashkr117. 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 model is a custom trained version of SmolLM2-135M from scratch.
Downloads · 30 days
5
4% of all-time downloads
All-time downloads
123
Public
Parameters
135M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors538 MB · 99%
From the Hugging Face model README
This model is a custom trained version of SmolLM2-135M from scratch.
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("vikashkr117/smollm2-135m-raw-trained")
model = AutoModelForCausalLM.from_pretrained("vikashkr117/smollm2-135m-raw-trained")
# Generate text
input_text = "Never forget who you are,"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))