Downloads · 30 days
136
47% of all-time downloads
Raising-an-llm/tinystories-30m-base
tinystories-30m-base is a text generation model from Raising-an-llm. Use it when you need the model to write or continue text. The card lists the license as mit.
A 30M parameter causal language model pre-trained on the ltg/babylm-2024-baby-cosmo-fine-10m
Downloads · 30 days
136
47% of all-time downloads
All-time downloads
288
Public
Parameters
26.2M
105 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors105 MB · 99%
From the Hugging Face model README
A 30M parameter causal language model pre-trained on the ltg/babylm-2024-baby-cosmo-fine-10m
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Raising-an-llm/tinystories-30m-base")
tokenizer = AutoTokenizer.from_pretrained("Raising-an-llm/tinystories-30m-base")
prompt = "Once upon a time"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))
This is the base pre-trained model before instruction tuning. It was trained on the ltg/babylm-2024-baby-cosmo-fine-10m dataset which contains simple children's phrases