Downloads · 30 days
206
43% of all-time downloads
dineshkvr/gemma3-270m-tinystories-gpt2-tokenizer
gemma3-270m-tinystories-gpt2-tokenizer is a text generation model from dineshkvr. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a small language model (270M parameters) based on the Gemma3 architecture, trained on the TinyStories dataset.
Downloads · 30 days
206
43% of all-time downloads
All-time downloads
479
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin330 MB · 100%
From the Hugging Face model README
This is a small language model (270M parameters) based on the Gemma3 architecture, trained on the TinyStories dataset.
import torch
from transformers import GPT2Tokenizer
# You'll need to copy the model class definition or import it
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
# Load model weights
model = Gemma3Model(GEMMA3_CONFIG_270M)
model.load_state_dict(torch.load("pytorch_model.bin"))
# Generate text
prompt = "Once upon a time"
inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))
This model was trained from scratch using PyTorch and is designed for creative text generation tasks.