Views
No views yet
HuggingFaceFW/fineweb-edu (sample-10BT) corpus on a single NVIDIA RTX 5090.jaipkapoor99/ultron-113m-instructjaipkapoor99/ultron-fineweb-edu-shardsjg640nwo| Architectural Component | Implementation Details |
|---|---|
| Parameter Count | 113,303,808 total parameters (Weight-Tied Embeddings & LM Head) |
| Layer & Dimension Geometry | 12 Layers, Hidden Dimension $d_{\text{model}} = 768$, Pre-RMSNorm configuration |
| Attention Mechanism | Grouped-Query Attention (GQA): 12 Query Heads, 4 Key/Value Heads (3:1 query-to-KV compression) |
| FeedForward Network | SwiGLU MLP: $d_{\text{ffn}} = 2048$ (aligned to multiples of 64 for NVIDIA Tensor Core efficiency) |
| Positional Encoding | RoPE (Rotary Position Embeddings) with base frequency $\theta = 10,000$, Context Window $T = 1024$ |
| Numerical Stability | QK-Head RMSNorm (per-head query/key normalization before scaling) + Logit Soft-Capping ($15.0 \cdot \tanh(\text{logits} / 15.0)$) |
| Vocabulary & Tokenizer | SmolLM2 Byte-Level BPE (HuggingFaceTB/SmolLM2-135M, vocabulary size: 49,152) |
bfloat16 and full graph compilation (torch.compile):scripts/validate.py:| Metric | Value |
|---|---|
| Held-Out Validation Loss | 2.964989 |
| Validation Perplexity | 19.3945 |
| Evaluated Data Volume | 488,280 sequences / 499,998,720 tokens |
| Validation Throughput | 480,436 tokens/sec (completed in 17m 20s) |
| GPU Utilization | 97.6% (RTX 5090) |
lm-evaluation-harness (logs/pre_training_checkpoint_eval.json):| Benchmark Task | Sample Count | Raw Accuracy | Length-Normalized Accuracy | Random Baseline |
|---|---|---|---|---|
piqa | 1,838 | 64.25% | 63.66% | 50.00% |
arc_easy | 2,376 | 53.62% | 47.05% | 25.00% |
hellaswag | 10,042 | 30.24% | 33.75% | 25.00% |
openbookqa | 500 | 21.60% | 32.20% | 25.00% |
arc_challenge | 1,172 | 23.55% | 26.54% | 25.00% |
winogrande | 1,267 | 49.17% | — | 50.00% |
| Macro Average | 17,195 | 40.41% | 40.41% | 33.33% |
temp=0.7, top_k=20, top_p=0.95, rep_penalty=1.1, no_repeat_ngram=3):Prompt: "Artificial intelligence systems learn by"Output: Artificial intelligence systems learn by watching the user and then apply the learning. If a system is able to learn from the experience, it will be able to apply the knowledge. This can be achieved through machine learning in a number of different ways including:
- Predictive learning
- Real-time learning Machine learning is a method of learning where data are analyzed to make predictions
Prompt: "To learn mathematics effectively, one must"Output: To learn mathematics effectively, one must understand and analyze the content of mathematics. Mathematics is a scientific discipline that involves the study of mathematical symbols (called symbols) as well as their relationships. In the modern world, mathematics is used in many areas of life: for example, the development of computer systems, medicine, engineering, the study and interpretation of data, and the analysis of
Prompt: "As the quantum portal activated, the crew stared into the alien"Output: As the quantum portal activated, the crew stared into the alien world of space and wondered what would happen to them if they were exposed to radiation. “The only thing we could do was take out our eyes, and we would look at the light and see a cloud of radiation,” says Kyle. “We had no idea that this would be possible.” For the crew, however, it meant they
1git clone https://github.com/jaipkapoor99/ultron.git
2cd ultron
3uv venv --python 3.14.6 .venv && source .venv/bin/activate
4uv pip install torch==2.13.0
5uv pip install -r pyproject.toml --group dev
6
7# Generate unconditioned completions
8python scripts/generate.py \
9 --prompt "Artificial intelligence systems learn by" \
10 --samples 41@misc{ultron2026,
2 author = {Jai Kapoor},
3 title = {Ultron-113M: Modern Transformer Pre-training and Instruction Alignment from Scratch},
4 year = {2026},
5 publisher = {Hugging Face},
6 journal = {Hugging Face Hub repository},
7 howpublished = {\url{https://huggingface.co/jaipkapoor99/ultron-113m}}
8}