Downloads · 30 days
17
20% of all-time downloads
Saiteja23/smollm2-135m-fineweb-edu2.7BT
smollm2-135m-fineweb-edu2.7BT is a text generation model from Saiteja23. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a 135M parameter language model based on the SmolLM2 architecture, trained on FineWeb-edu data.
Downloads · 30 days
17
20% of all-time downloads
All-time downloads
86
Public
Parameters
135M
538 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors538 MB · 99%
From the Hugging Face model README
This is a 135M parameter language model based on the SmolLM2 architecture, trained on FineWeb-edu data.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Saiteja23/smollm2-135m-fineweb-edu2.7BT")
model = AutoModelForCausalLM.from_pretrained("Saiteja23/smollm2-135m-fineweb-edu2.7BT")
# Generate text
prompt = "The process of photosynthesis"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=100,
temperature=0.8,
top_k=50,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
# If you want to use the original model implementation
from model import ModelConfig, LlamaModel
from transformers import AutoTokenizer
import torch
tokenizer = AutoTokenizer.from_pretrained("Saiteja23/smollm2-135m-fineweb-edu2.7BT")
# Load using custom model class - see repository for details
This model is designed for:
If you use this model, please cite:
@misc{smollm2-135m-fineweb-edu,
title={SmolLM2-135M trained on FineWeb-edu},
author={Your Name},
year={2024},
howpublished={\url{https://huggingface.co/Saiteja23/smollm2-135m-fineweb-edu2.7BT}},
}
This model was trained as part of a language model pretraining experiment. Use responsibly and be aware of potential biases in generated content.