A 37.8M-parameter decoder-only language model implemented and pretrained from scratch in PyTorch.
This model is a research and educational artifact for studying small-language-model pretraining, architecture implementation, and parameter allocation. It is not intended as a production assistant.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "zyberg2091/fineweb_pretrained_model_37M"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
)