Llara is a 91.4M parameter autoregressive language model trained from scratch on English web text. It follows the GPT-2 Small architecture and is trained entirely from random initialisation — no pretrained weights, no distillation, no fine-tuning of an existing model. but it does use GPT's tokenizer
The name Llara is original and unrelated to LLaMA or LoRA.
Note: The model is undertrained according to The Chinchilla Laws (2022)
| Property | Value |
|---|---|
| Architecture | GPT-2 (decoder-only transformer) |
| Parameters | ~90-100M |
| Context length | 256 tokens |
| Embedding dim | 768 |
| Layers | 12 |
| Attention heads | 12 |
| Vocabulary | 50,257 (GPT-2 BPE) |
| Training data | FineWeb (HuggingFaceFW/fineweb) + Custom dataset |
| Training docs | 256,000,000 tokens |
| Epochs | 1 |
| Precision | fp16 |
Llara was trained on 1 million documents sampled from FineWeb, a large-scale curated English web dataset. Documents were tokenised with the GPT-2 BPE tokeniser and packed into non-overlapping 1024-token blocks.
Training configuration:
| Hyperparameter | Value |
|---|---|
| Optimiser | AdamW |
| Learning rate | 3e-4 |
| LR schedule | Cosine decay |
| Warmup steps | 2,000 |
| Weight decay | 0.1 |
| Effective batch size | 32 |
| Gradient accumulation | 8 steps |
| Dropout | 0.1 (residual, embedding, attention) |
Gradient checkpointing was enabled throughout training to reduce memory usage.
from transformers import GPT2LMHeadModel, AutoTokenizer, pipeline
model = GPT2LMHeadModel.from_pretrained("helloadhavan/llara1.0-100M-base")
tokenizer = AutoTokenizer.from_pretrained("helloadhavan/llara1.0-100M-base")
gen = pipeline("text-generation", model=model, tokenizer=tokenizer)
output = gen(
"The history of artificial intelligence",
max_new_tokens=200,
do_sample=True,
temperature=0.8,
top_p=0.95,
repetition_penalty=1.1,
)
print(output[0]["generated_text"])
Llara is intended for:
Trained using Hugging Face Transformers Trainer on a single GPU.
Apache 2.0
Note: i am a AI hobbyist, not an AI engineer
checkpoint-19303/optimizer.pt 698 MiBcheckpoint-19303/model.safetensors 349 MiBmodel.safetensors 349 MiBadapter_model.safetensors 3 MiBcheckpoint-19303/rng_state.pth 14.3 KiBcheckpoint-19303/training_args.bin 5.1 KiBtraining_args.bin 5.1 KiBcheckpoint-19303/scheduler.pt 1.4 KiBcheckpoint-19303/scaler.pt 1.4 KiB