Text Generation
Transformers
Safetensors
English
llama
tiny-lm
sub-1m
fineweb-edu
text-generation-inference
Instructions to use 56m/Dumber-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 56m/Dumber-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="56m/Dumber-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("56m/Dumber-1") model = AutoModelForCausalLM.from_pretrained("56m/Dumber-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 56m/Dumber-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "56m/Dumber-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "56m/Dumber-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/56m/Dumber-1
- SGLang
How to use 56m/Dumber-1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "56m/Dumber-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "56m/Dumber-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "56m/Dumber-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "56m/Dumber-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 56m/Dumber-1 with Docker Model Runner:
docker model run hf.co/56m/Dumber-1
|
Download README.md from 56m/Dumber-1: direct link, hf CLI and curl.
- Browser
- Download file 12.6 kB
-
https://huggingface.co/56m/Dumber-1/resolve/main/README.md
- Command line
-
hf download hf://56m/Dumber-1/README.md
-
curl -L -o README.md https://huggingface.co/56m/Dumber-1/resolve/main/README.md
12.6 kB
| license: apache-2.0 | |
| language: | |
| - en | |
| library_name: transformers | |
| pipeline_tag: text-generation | |
| datasets: | |
| - HuggingFaceFW/fineweb-edu | |
| tags: | |
| - tiny-lm | |
| - sub-1m | |
| - fineweb-edu | |
| - llama | |
| <!-- ================= HERO SECTION ================= --> | |
| <div style="background: radial-gradient(circle at top left, #1e1b4b, #0f172a 60%, #020617); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px 28px; color: #f8fafc; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5); margin-bottom: 24px;"> | |
| <!-- BADGE --> | |
| <div style="display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap;"> | |
| <span style="background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(99, 102, 241, 0.4); color: #a5b4fc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 9999px;"> | |
| Sub-1M Tiny LM | |
| </span> | |
| <span style="background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 9999px;"> | |
| FineWeb-Edu 500M | |
| </span> | |
| <span style="background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 9999px;"> | |
| 47x Chinchilla | |
| </span> | |
| </div> | |
| <!-- TITLE --> | |
| <h1 style="margin: 0 0 10px 0; font-size: 38px; font-weight: 800; background: linear-gradient(135deg, #ffffff 30%, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;"> | |
| 🧠 Dumber-535K | |
| </h1> | |
| <p style="margin: 0 0 24px 0; font-size: 15px; color: #94a3b8; max-width: 650px; line-height: 1.6;"> | |
| An ultra-compact <strong>535,584 parameter</strong> language model trained completely from scratch on 500M tokens of FineWeb-Edu. Built for extreme scaling-law experiments and edge deployment research. | |
| </p> | |
| <!-- KPI CARDS GRID --> | |
| <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 24px;"> | |
| <div style="background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px; text-align: center;"> | |
| <div style="font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;">Params</div> | |
| <div style="font-size: 22px; font-weight: 800; color: #38bdf8; margin-top: 4px;">535.5K</div> | |
| </div> | |
| <div style="background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px; text-align: center;"> | |
| <div style="font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;">Tokens</div> | |
| <div style="font-size: 22px; font-weight: 800; color: #818cf8; margin-top: 4px;">500M</div> | |
| </div> | |
| <div style="background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px; text-align: center;"> | |
| <div style="font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;">Context</div> | |
| <div style="font-size: 22px; font-weight: 800; color: #34d399; margin-top: 4px;">512</div> | |
| </div> | |
| <div style="background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px; text-align: center;"> | |
| <div style="font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;">Hidden Size</div> | |
| <div style="font-size: 22px; font-weight: 800; color: #f472b6; margin-top: 4px;">96</div> | |
| </div> | |
| <div style="background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px; text-align: center;"> | |
| <div style="font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;">Vocab</div> | |
| <div style="font-size: 22px; font-weight: 800; color: #fbbf24; margin-top: 4px;">768</div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- ================= NOTICE CALLOUT ================= --> | |
| <div style="background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.15) 100%); border: 1px solid rgba(129, 140, 248, 0.5); border-left: 5px solid #818cf8; border-radius: 14px; padding: 18px 22px; margin-bottom: 30px; box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.35); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;"> | |
| <div style="display: flex; align-items: center; gap: 8px; margin-bottom: 12px;"> | |
| <span style="font-size: 18px;">💡</span> | |
| <span style="font-size: 13px; font-weight: 700; color: #c7d2fe; letter-spacing: 0.06em; text-transform: uppercase;">Model Status & Training Note</span> | |
| </div> | |
| <div style="display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.6; color: #e0e7ff;"> | |
| <div style="display: flex; align-items: flex-start; gap: 10px;"> | |
| <span style="font-size: 16px; line-height: 1.3;">⚡</span> | |
| <div><strong style="color: #ffffff;">Ultra-Efficient Training:</strong> Pre-trained from scratch in just <strong>~1 hour</strong> utilizing a single <strong>NVIDIA T4 GPU (×1)</strong>, demonstrating extreme training throughput for sub-1M architectures.</div> | |
| </div> | |
| <div style="display: flex; align-items: flex-start; gap: 10px;"> | |
| <span style="font-size: 16px; line-height: 1.3;">🧪</span> | |
| <div><strong style="color: #ffffff;">Experimental Preview:</strong> This is an early research checkpoint provided as a work-in-progress preview. Outputs may exhibit instability, hallucination, or repetitive patterns under certain prompts.</div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- ================= ARCHITECTURE & TRAINING ================= --> | |
| <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;"> | |
| <!-- Spec Card 1 --> | |
| <div style="background: #0f172a; border: 1px solid #1e293b; border-radius: 14px; padding: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);"> | |
| <div style="display: flex; align-items: center; gap: 8px; margin-bottom: 16px;"> | |
| <span style="font-size: 18px;">🏗️</span> | |
| <h3 style="margin: 0; font-size: 16px; font-weight: 700; color: #f1f5f9;">Architecture Details</h3> | |
| </div> | |
| <div style="display: flex; flex-direction: column; gap: 10px; font-size: 13px;"> | |
| <div style="display: flex; justify-content: space-between; border-bottom: 1px solid #1e293b; padding-bottom: 8px;"> | |
| <span style="color: #64748b;">Base Backbone</span> | |
| <span style="font-weight: 600; color: #e2e8f0;">Llama-based</span> | |
| </div> | |
| <div style="display: flex; justify-content: space-between; border-bottom: 1px solid #1e293b; padding-bottom: 8px;"> | |
| <span style="color: #64748b;">Key Mechanisms</span> | |
| <span style="font-weight: 600; color: #e2e8f0;">RoPE, RMSNorm, SwiGLU</span> | |
| </div> | |
| <div style="display: flex; justify-content: space-between; border-bottom: 1px solid #1e293b; padding-bottom: 8px;"> | |
| <span style="color: #64748b;">Weight Sharing</span> | |
| <span style="font-weight: 600; color: #38bdf8;">Tied Embeddings</span> | |
| </div> | |
| <div style="display: flex; justify-content: space-between; padding-bottom: 4px;"> | |
| <span style="color: #64748b;">Layers / Heads</span> | |
| <span style="font-weight: 600; color: #e2e8f0;">5 Layers / 4 Heads</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Spec Card 2 --> | |
| <div style="background: #0f172a; border: 1px solid #1e293b; border-radius: 14px; padding: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);"> | |
| <div style="display: flex; align-items: center; gap: 8px; margin-bottom: 16px;"> | |
| <span style="font-size: 18px;">⚡</span> | |
| <h3 style="margin: 0; font-size: 16px; font-weight: 700; color: #f1f5f9;">Training Setup</h3> | |
| </div> | |
| <div style="display: flex; flex-direction: column; gap: 10px; font-size: 13px;"> | |
| <div style="display: flex; justify-content: space-between; border-bottom: 1px solid #1e293b; padding-bottom: 8px;"> | |
| <span style="color: #64748b;">Dataset</span> | |
| <span style="font-weight: 600; color: #e2e8f0;">FineWeb-Edu (10BT Sample)</span> | |
| </div> | |
| <div style="display: flex; justify-content: space-between; border-bottom: 1px solid #1e293b; padding-bottom: 8px;"> | |
| <span style="color: #64748b;">Trained Volume</span> | |
| <span style="font-weight: 600; color: #e2e8f0;">~500M Tokens</span> | |
| </div> | |
| <div style="display: flex; justify-content: space-between; border-bottom: 1px solid #1e293b; padding-bottom: 8px;"> | |
| <span style="color: #64748b;">Over-Training Ratio</span> | |
| <span style="font-weight: 600; color: #fbbf24;">~47x Chinchilla</span> | |
| </div> | |
| <div style="display: flex; justify-content: space-between; padding-bottom: 4px;"> | |
| <span style="color: #64748b;">Tokenizer</span> | |
| <span style="font-weight: 600; color: #e2e8f0;">Byte-level BPE (768 Vocab)</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- ================= BENCHMARK SECTION ================= --> | |
| <div style="background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 24px; margin-bottom: 30px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;"> | |
| <div style="display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px;"> | |
| <div> | |
| <h3 style="margin: 0; font-size: 18px; font-weight: 700; color: #f8fafc;">📊 Evaluation Benchmark</h3> | |
| <p style="margin: 4px 0 0 0; font-size: 12px; color: #64748b;">0-shot evaluation tested with lm-evaluation-harness</p> | |
| </div> | |
| <span style="font-size: 11px; background: #1e293b; color: #94a3b8; padding: 4px 8px; border-radius: 6px;">Random Baseline: 25.0%</span> | |
| </div> | |
| <!-- Benchmark Item 1 --> | |
| <div style="margin-bottom: 20px;"> | |
| <div style="display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px;"> | |
| <span style="color: #e2e8f0; font-weight: 600;">ARC-Easy (acc_norm)</span> | |
| <span style="color: #34d399; font-weight: 700;">28.79% <span style="font-size: 11px; font-weight: 400; color: #34d399;">(+3.79% over random)</span></span> | |
| </div> | |
| <div style="width: 100%; height: 8px; background: #1e293b; border-radius: 9999px; overflow: hidden; position: relative;"> | |
| <div style="position: absolute; left: 25%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.3); z-index: 2;"></div> | |
| <div style="width: 28.79%; height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 9999px;"></div> | |
| </div> | |
| </div> | |
| <!-- Benchmark Item 2 --> | |
| <div style="margin-bottom: 12px;"> | |
| <div style="display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px;"> | |
| <span style="color: #e2e8f0; font-weight: 600;">ARC-Challenge (acc_norm)</span> | |
| <span style="color: #94a3b8; font-weight: 700;">22.18% <span style="font-size: 11px; font-weight: 400; color: #f87171;">(-2.82% under random)</span></span> | |
| </div> | |
| <div style="width: 100%; height: 8px; background: #1e293b; border-radius: 9999px; overflow: hidden; position: relative;"> | |
| <div style="position: absolute; left: 25%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.3); z-index: 2;"></div> | |
| <div style="width: 22.18%; height: 100%; background: linear-gradient(90deg, #64748b, #94a3b8); border-radius: 9999px;"></div> | |
| </div> | |
| </div> | |
| <div style="font-size: 11px; color: #64748b; margin-top: 14px;"> | |
| * HellaSwag and PIQA scores are currently running and will be updated shortly. | |
| </div> | |
| </div> | |
| <!-- ================= QUICKSTART / CODE ================= --> | |
| ## 💻 Quickstart | |
| ```python | |
| import torch | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| model_id = "56m/dumber-535k" | |
| tokenizer = AutoTokenizer.from_pretrained(model_id) | |
| model = AutoModelForCausalLM.from_pretrained(model_id) | |
| prompt = "The scientific method is" | |
| inputs = tokenizer(prompt, return_tensors="pt") | |
| outputs = model.generate( | |
| **inputs, | |
| max_new_tokens=40, | |
| do_sample=True, | |
| temperature=0.7, | |
| ) | |
| print(tokenizer.decode(outputs[0], skip_special_tokens=True)) |