Downloads · 30 days
134
59% of all-time downloads
keenanpepper/TinyStories-3M-fork
TinyStories-3M-fork is a machine learning model from keenanpepper. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Model trained on the TinyStories Dataset, see https://arxiv.org/abs/2305.07759
Downloads · 30 days
134
59% of all-time downloads
All-time downloads
228
Public
Parameters
8M
98.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors32.2 MB · 91%
From the Hugging Face model README
Model trained on the TinyStories Dataset, see https://arxiv.org/abs/2305.07759
------ EXAMPLE USAGE ---
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
model = AutoModelForCausalLM.from_pretrained('roneneldan/TinyStories-3M')
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neo-125M")
prompt = "Once upon a time there was"
input_ids = tokenizer.encode(prompt, return_tensors="pt")
output = model.generate(input_ids, max_length = 1000, num_beams=1)
output_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(output_text)