Instructions to use udgamlabs/alder-1.6b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use udgamlabs/alder-1.6b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="udgamlabs/alder-1.6b-base") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("udgamlabs/alder-1.6b-base") model = AutoModelForCausalLM.from_pretrained("udgamlabs/alder-1.6b-base", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use udgamlabs/alder-1.6b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "udgamlabs/alder-1.6b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/alder-1.6b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/udgamlabs/alder-1.6b-base
- SGLang
How to use udgamlabs/alder-1.6b-base 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 "udgamlabs/alder-1.6b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/alder-1.6b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "udgamlabs/alder-1.6b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/alder-1.6b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use udgamlabs/alder-1.6b-base with Docker Model Runner:
docker model run hf.co/udgamlabs/alder-1.6b-base
Alder-1.6B-Base
Alder-1.6B-Base is the finished 1.59B-parameter base language model trained from scratch in the open by Udgam Labs (founded by Jitesh K Prasad) on 25.4 billion tokens (step_012100, 2,048 context length, held-out 5-subject panel 0.6720 bpb).
Base pre-training cost $549.86 ($444.23 Part 1 trunk over 20.9B tokens + $105.63 Part 2 cooldown over 4.4B tokens). The full 8-stage Alder project cost $702.96 in direct training & final evaluation and $980.28 all-in across all 173 runs.
Alder-1.6B Release Ecosystem (All Apache-2.0)
| Resource | Link | What's inside |
|---|---|---|
| Try in browser + Model page | udgamlabs.com/models/alder | In-browser WebAssembly chat runner, full benchmarks & quickstart |
| Technical Report (HTML + PDF) | udgamlabs.com/research/alder | Complete architecture, math export proof, ablations & every failure |
| Plain-English Blog Post | udgamlabs.com/blog/alder | How we built Alder, strengths, limits & how to run it |
| Live Build Log | udgamlabs.com/live/alder | Real-time training curves, stage log & $980.28 cost breakdown |
| Final Chat Model (HF bf16) | udgamlabs/alder-1.6b | Native Qwen3ForCausalLM bf16 (3.0 GB) + Q8_0/Q4_K_M GGUFs |
| Base Model (25.4B tok) | udgamlabs/alder-1.6b-base | Finished base step_012100 (2K context, 0.6720 bpb panel) |
| GGUF Suite (Ollama / llama.cpp) | udgamlabs/alder-1.6b-GGUF | F16, Q8_0, Q6_K, Q5_K_M, Q4_K_M, Q3_K_M + Ollama Modelfile |
| Apple Silicon MLX (8-bit / 4-bit) | alder-1.6b-mlx-8bit ยท alder-1.6b-mlx-4bit | 85.8 tok/s (1.6 GB, 1.79 GB peak RAM) and 854 MB 4-bit |
| All 41 Checkpoints | udgamlabs/alder-1.6b-checkpoints | All 33 pre-training + all 8 post-training stage checkpoints |
| Code, Evals & Spend Ledger | github.com/udgamlabs/alder | Full training code, converter, benchmark harness, CHAT.md, SPEND.md |
Architecture & Compatibility
- Parameters:
1,590,731,520(1.59Bdense Transformer) - Geometry:
24layers,hidden_size=2304,18Q /6KV heads (3:1 GQA),head_dim=128, SwiGLU6144, RMSNorm + QK-Norm, untied embeddings - Context & RoPE (Base Stage):
2,048context length,RoPE base = 10,000(later extended to32,768/RoPE base = 2,000,000in post-training) - Native
Qwen3ForCausalLMexport: Lossless mathematical conversion (max_abs_logit_diff < 1e-3in fp32, identical argmax), requiring zerotrust_remote_code - Tokenizer:
gpt2-ctl16(GPT-2 BPE + 16 reserved control tokens, vocab50,273). Trained BOS-aligned (<|endoftext|>, token ID50256, at position 0 โ prependtok.bos_tokenwhen prompting the base model).
Quick Start
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "udgamlabs/alder-1.6b-base"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
prompt = tok.bos_token + "The invention of the printing press in the fifteenth century"
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=120, do_sample=True, temperature=0.7, repetition_penalty=1.08)
print(tok.decode(out[0], skip_special_tokens=True))
Base Model Benchmarks (step_012100, 25.4B Tokens)
Scored with add_bos_token=True in the same harness as udgamlabs/alder-1.6b across 32,169 public multiple-choice test items:
| Benchmark | Metric | Alder-1.6B-Base | Alder-1.6B (Final) | Post-Training Delta |
|---|---|---|---|---|
| ARC-Easy (0-shot, n=2,376) | acc / acc_norm | 65.15% / 58.16% | 65.15% / 60.40% | +2.24 pp (norm) |
| ARC-Challenge (0-shot, n=1,172) | acc / acc_norm | 30.97% / 33.28% | 32.08% / 35.58% | +2.30 pp (norm) |
| HellaSwag (0-shot, n=10,042) | acc / acc_norm | 39.61% / 51.46% | 39.66% / 51.53% | +0.07 pp (norm) |
| WinoGrande (0-shot xl, n=1,267) | acc | 56.75% | 56.99% | +0.24 pp |
| BoolQ (0-shot, n=3,270) | acc | 62.63% | 59.02% | -3.61 pp |
| MMLU (5-shot, n=14,042) | acc | 24.34% | 26.38% | +2.04 pp |
| Held-out 5-subject base panel | bits per byte | 0.6720 bpb | โ | โ |
Comparison Against Peer 1.1Bโ1.9B Open Models
Alder-1.6B numbers below are [MEASURED] in our Step 8 harness; peer multiple-choice numbers are [EXTERNAL] published author figures for context alongside token counts and compute scale.
| Model | Source | Params | Pre-train tokens | vs Alder | ARC-E | HellaSwag | WinoGrande | MMLU | GSM8K |
|---|---|---|---|---|---|---|---|---|---|
| Alder-1.6B ($703 train / $980 all-in) | Measured | 1.59B | 25.4B | 1ร | 65.2% | 51.5% | 57.0% | 26.4% | 3.3% (no tool) |
| nanochat d32 (~$800โ$1,000, 2K ctx) | Published | 1.9B | ~38B | 1.5ร | ~68โ73% | โ | โ | ~40โ43% | ~13โ20% (Python) |
| Pythia-1.4B | Published | 1.4B | 300B | 12ร | 54โ57% | 52.0% | 57.4% | ~31.5% | โ |
| OLMo-1B | Published | 1.2B | 2.0T | 79ร | 57โ60% | 56โ62% | 56โ63% | ~32.2% | โ |
| TinyLlama-1.1B | Published | 1.1B | 3.0T | 118ร | 55.3% | 59.2% | 59.1% | ~32.8% | โ |
| SmolLM2-1.7B-Instruct | Published | 1.7B | 11.0T | 433ร | ~60+ | 66.1% | 59.4% | ~48.8% | 48.2% (5-shot) |
| Qwen2.5-1.5B-Instruct | Published | 1.5B | 18.0T | 709ร | ~75+ | ~75.0% | 65.0% | 60.9% | ~50.8% |
On our own same-harness 14-tape 3-shot reasoning suite (eval/rivals/RIVALS_V3_2026-11-19.md), even Alder-1.6B-Base (-0.971 mean net score across all 14 tapes) outperformed nanochat d32 (-1.414 on the 8 new tapes) while trailing trillion-token Qwen3-1.7B-Base (-0.526).
Where Alder-1.6B-Base Falls Short
- Base continuation model only: Does not follow chat instructions, call tools, or decline unanswerable questions. Use udgamlabs/alder-1.6b for chat, 32K context, and tool use.
- 25.4B pre-training tokens: Beats older 300Bโ3T open bases (
Pythia-1.4B,OLMo-1B,TinyLlama-1.1B) on ARC-Easy (65.2%vs55โ59%), but trails modern trillion-token 1.5Bโ1.7B models (SmolLM2-1.7Bat 11T,Qwen2.5-1.5Bat 18T) on world knowledge (MMLU 24.34%). - 2,048 context length: Base pre-training used 2K context (
RoPE base = 10,000); 32K context was added in Step 4 (posttrain/lc2_32k_step_000340). English only.
Full Transparent Cost Accounting ($980.28 All-In Across All 173 Runs)
A. Direct Model Training & Final Eval (Steps 1โ8 ยท 34 runs ยท $702.96)
| Step | Stage | Summary | Cost (USD) |
|---|---|---|---|
| 1 | Base pre-training, part 1 | 20.9B tokens, 2K context (trunk) | $444.23 |
| 2 | Base pre-training, part 2 | +4.4B tokens cooldown (25.4B total, 0.6720 bpb panel) |
$105.63 |
| 3 | First SFT (sft1) + data |
2K chat/tool/think proof-of-concept + data build | $6.37 |
| 4 | Long-context (lc1) + data |
Staged 8K -> 32K -> 64K (734M tok); selected 32K (+0.0008 bpb) |
$79.04 |
| 5 | 32K SFT (sft2) + data |
272M tokens at 32K with zero-leak masking (-42.4% val loss) | $35.18 |
| 6 | Verifiable RL (rl1) |
400 GRPO steps on tools, passages, calc & declines | $25.55 |
| 7 | Preference & identity (dpo1 + dpo2) |
Pure DPO failed identity ($3.01); micro-SFT + light DPO passed ($2.38) | $5.39 |
| 8 | Final benchmarks (aldereval3) |
32K-item MC suite + GSM8K + 904 RL + 32K NIAH + 36 chat prompts | $1.57 |
| Direct Training & Eval Subtotal | What it takes to reproduce Alder end-to-end | $702.96 |
B. R&D, Data Prep, Experiments, Rehearsals & Probes (139 runs ยท $277.32)
| Category | Runs | What was tested / built | Cost (USD) |
|---|---|---|---|
| Pre-training rehearsals | 3 | Full-scale 8รH100 dress rehearsals (2 failed attempts caught save/check bugs before #3 passed) | $97.59 |
| Small architecture, lever & speed experiments | 46 | Control vs. 5 ablations, throughput/batch/precision tuning | $59.58 |
| 4-way data recipe comparison | 9 | Head-to-head screening of 4 pre-training data recipes to pick the winner | $48.79 |
| Mid-run LR & cooldown probes | 6 | Short rate-schedule & cooldown checks off intermediate checkpoints | $25.01 |
| Pre-training corpus & tokenizer prep | 26 | Building & validating the 25.4B pre-training corpus and tokenizer | $21.90 |
| Rival baselines & base-model eval | 15 | Scoring peer small models and Alder base (aldereval1) |
$17.66 |
| Pool checks, envpack builds & smoke tests | 34 | Environment builds, spot/pool health & kernel parity checks | $6.79 |
| R&D & Prep Subtotal | 139 | Every prep run, experiment & failed attempt from Day 1 | $277.32 |
| ALL-IN PROJECT GRAND TOTAL (A + B) | 173 | Still $19.72 under $1,000 all-in | $980.28 |
License & Citation
Released under Apache-2.0.
@misc{prasad2026alder,
title={Alder-1.6B: Training a 1.59B Reasoning and Tool-Use Language Model from Scratch in the Open for \$980 All-In},
author={Prasad, Jitesh K and {Udgam Labs}},
year={2026},
url={https://udgamlabs.com/research/alder}
}
- Downloads last month
- -