Downloads · 30 days
13
6% of all-time downloads
Bhavesh-G/AI25-3
AI25-3 is a machine learning model from Bhavesh-G. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
AI25-3 is a decoder-only Transformer language model built completely from scratch as an educational project. The primary objective of this model is to demonstrate how modern Large Language Models (LLMs) are implemente…
Downloads · 30 days
13
6% of all-time downloads
All-time downloads
208
Public
Parameters
189M
755 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors755 MB · 100%
From the Hugging Face model README
AI25-3 is a decoder-only Transformer language model built completely from scratch as an educational project. The primary objective of this model is to demonstrate how modern Large Language Models (LLMs) are implemented, trained, fine-tuned, and deployed without relying on existing LLM frameworks.
Core Design Philosophy
AI25-3 is a learning-first implementation. The code prioritizes readability, correctness, and educational value over maximum training efficiency or benchmark performance.
AI25-3 is an educational toy model created for learning and experimentation. It is not intended for production use, safety-critical applications, or as a replacement for larger instruction-tuned commercial models.
The implementation follows the modern design philosophy adopted by many recent open-weight language models while keeping the codebase simple enough to study and modify.
| Feature / Component | Specification |
|---|---|
| Architecture | Decoder-only Transformer (GPT-style) |
| Framework | PyTorch |
| Tokenizer | Custom Byte-Pair Encoding (BPE) |
| Vocabulary Size | 49,152 |
| Positional Encoding | Rotary Positional Embeddings (RoPE) |
| Attention Mechanism | Grouped Query Attention (GQA) |
| Normalization | Pre-RMSNorm |
| Feed-Forward Network | SwiGLU |
| Optimizer | AdamW |
| Learning Rate Schedule | Warmup + Cosine Decay |
The goal of AI25-3 is education, not benchmarking.
This project was built to understand every major component involved in training a modern language model, including:
The overall learning path follows the classic three-stage pipeline:
This mirrors the educational workflow described in "Build a Large Language Model (From Scratch)".
AI25-3 was pretrained on a mixture of publicly available datasets including educational web text and synthetic educational corpora.
The released checkpoint is instruction-tuned for text summarization using publicly available summarization datasets including:
The objective is to produce concise, grammatically correct summaries.
AI25-3 is intended for:
AI25-3 should not be used for:
Outputs may be inaccurate, incomplete, or fabricated.
This is a relatively small educational language model. Compared with modern frontier models, it has:
The focus of this project is understanding how modern LLMs are built, not achieving state-of-the-art benchmark performance.
Planned future improvements include:
This project draws inspiration from:
If you use AI25-3 in your work, please cite this repository.