File size: 9,149 Bytes
9a32a78 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | ---
license: mit
language:
- en
pipeline_tag: text-generation
tags:
- causal-lm
- pytorch
- small-language-model
- autoresearch
- from-scratch
datasets:
- multivision
---
# AutoResearch-multivision-depth8

**AutoResearch-multivision-depth8** is a **77.6M parameter** decoder-only Transformer trained **from scratch** on **multivision**.
This model is part of the **AutoResearch** project, which focuses on training, evaluating, and releasing efficient language models with reproducible research workflows.
---
# Overview
This is a 8-layer decoder-only Transformer trained on the multivision dataset for 1.0 hours of wall-clock training time. The model achieves a validation bits-per-byte (val_bpb) of 1.290516 (perplexity: 2.4462) on the held-out validation set.
---
# References
## Papers
- NanoGPT / NanoChat architecture patterns
## Datasets
- Training: multivision
- Tokenizer: multivision
## Related Projects
- [karpathy/autoresearch](https://github.com/karpathy/autoresearch)
## WANDB Run
- [https://wandb.ai/dustinsdelivery-delivery-ai/autoresearch/runs/7msq71xb](https://wandb.ai/dustinsdelivery-delivery-ai/autoresearch/runs/7msq71xb)
---
# Highlights
- Trained **from scratch**
- **77.6M parameters**
- Trained on **112.2M tokens** (214 steps)
- 8-layer decoder-only Transformer with sliding window attention
- RoPE positional encoding, RMSNorm, ReLU² activation
- MuonAdamW optimizer (Muon for matrices, AdamW for embeddings)
- Hugging Face Transformers compatible
---
# Model Architecture
| Property | Value |
|-----------|------:|
| Architecture | Decoder-only Transformer |
| Parameters | **77,575,312** (77.6M) |
| Layers | 8 |
| Hidden Size | 512 |
| Attention Heads | 4 |
| KV Heads | 4 |
| Head Dimension | 128 |
| Feed Forward Size | 2048 |
| Context Length | 2048 |
| Vocabulary Size | 16,384 |
| Positional Encoding | RoPE |
| Activation | ReLU² |
| Normalization | RMSNorm |
| Window Pattern | SSSL |
| Weight Tying | No |
---
# Training
This model was trained **from scratch** for **1.0 hours** (3605s) of wall-clock training time.
## Training Configuration
| Setting | Value |
|---------|------:|
| Optimizer | MuonAdamW (Muon + AdamW) |
| Precision | torch.bfloat16 |
| Learning Rate | 0.04 (matrix) / 0.6 (embedding) |
| Weight Decay | 0.2 |
| Batch Size | 4 × 2048 = 8,192 tokens/step |
| Gradient Accumulation | 64 steps |
| Total Batch Size | 524,288 tokens |
| Context Length | 2048 |
| Vocabulary | 16,384 tokens (BPE) |
| LR Scheduler | Linear warmdown (50%) |
| Activation Checkpointing | Enabled |
## Hardware
- GPU: NVIDIA GeForce RTX 4060 Ti
- VRAM: 16.0 GB
- Peak VRAM Used: 3.7 GB
- MFU: 9.29%
- Framework: PyTorch 2.9.1+cu128
---
# Dataset
- **Name:** multivision
- **Language:** English
### Preprocessing
Data is packed into fixed-length sequences of 2048 tokens using the nanochat-compatible BPE tokenizer (16,384 vocabulary, 9 special tokens). No additional filtering or deduplication is applied beyond what is in the source dataset.
---
# Intended Use
This model is intended for:
- Educational purposes and research
- Text generation experiments
- Studying small language model training dynamics
Not recommended for:
- Production use or safety-critical applications
- Tasks requiring factual accuracy
---
# Evaluation
## Results
| Metric | Score |
|---------|------:|
| Validation BPB | 1.290516 |
| Perplexity | 2.4462 |
| Peak VRAM | 3.7 GB |
| MFU | 9.29% |
---
# Example Generations
## Example 1
### Prompt
```text
Once upon a time,
```
### Generation
```text
Once upon a time, and were mounted mounted carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage carriage
```
## Example 2
### Prompt
```text
A lonely dragon
```
### Generation
```text
A lonely dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon dragon
```
## Example 3
### Prompt
```text
The opposite of boy is
```
### Generation
```text
The opposite of boy is either!!!!!!!!
!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!
!!!!!!!!!!!!!
!!!
!!!!
!!!
```
## Example 4
### Prompt
```text
The opposite of queen is
```
### Generation
```text
The opposite of queen is....................................................................................................
```
## Example 5
### Prompt
```text
My name is
```
### Generation
```text
My name is....................................................................................................
```
## Example 6
### Prompt
```text
2 + 2 is
```
### Generation
```text
2 + 2 is
```
# Usage
```python
import torch
import pickle
import json
from train import GPT, GPTConfig, Tokenizer
# Load config
with open('config.json', 'r') as f:
config_dict = json.load(f)
config = GPTConfig(**{k: v for k, v in config_dict.items() if k in GPTConfig.__dataclass_fields__})
# Load model
model = GPT(config)
state_dict = torch.load('model.pt', map_location='cpu')['state_dict']
model.load_state_dict(state_dict)
model.eval()
# Load tokenizer
with open('tokenizer.pkl', 'rb') as f:
tokenizer = pickle.load(f)
# Generate
prompt = 'Once upon a time, '
input_ids = tokenizer.encode(prompt)
x = torch.tensor([input_ids], dtype=torch.long)
with torch.no_grad():
for _ in range(50):
logits = model(x)
probs = torch.softmax(logits[:, -1, :] / 0.8, dim=-1)
next_token = torch.multinomial(probs, num_samples=1)
input_ids.append(next_token.item())
x = torch.tensor([input_ids], dtype=torch.long)
print(tokenizer.decode(input_ids))
```
---
# Repository Structure
```text
model.pt # Model weights
config.json # Model architecture config
dataset.txt # Dataset name used for training
token_bytes.pt # Token byte mappings
tokenizer.pkl # Trained BPE tokenizer
tokenizer_config.json # Tokenizer configuration
training_metrics.json # Training metrics
README.md # This file
```
---
# Limitations
- Small model size limits language understanding and coherence
- Trained on a single dataset (TinyStories) — limited domain
- Fixed time budget training — not fully trained to convergence
- No RLHF or safety alignment
---
# Ethical Considerations
- This is a research artifact, not a production model
- The training data consists of synthetic stories (GPT-4 generated)
- No harmful content filtering was applied
- Intended for research and educational use only
---
# Citation
```bibtex
@misc{autoresearch_multivision_depth8,
title={AutoResearch-multivision-depth8},
author={Dustin Loring},
year={2026},
howpublished={\url{https://huggingface.co/quik-models/atomic-puddle-130}}
}}
```
---
# Version History
| Version | Date | Notes |
|----------|------|------|
| v1.0 | 2026-07-31 | Initial release |
---
# Acknowledgements
Built with the **AutoResearch** training framework.
Thanks to:
- Hugging Face
- PyTorch
- The creators of the TinyStories dataset
- The open-source AI research community
---
# License
This model is released under the **MIT License** unless otherwise specified.
|