Instructions to use udgamlabs/alder-1.6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use udgamlabs/alder-1.6b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="udgamlabs/alder-1.6b") 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") model = AutoModelForCausalLM.from_pretrained("udgamlabs/alder-1.6b", 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
- llama.cpp
How to use udgamlabs/alder-1.6b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf udgamlabs/alder-1.6b:Q4_K_M # Run inference directly in the terminal: llama cli -hf udgamlabs/alder-1.6b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf udgamlabs/alder-1.6b:Q4_K_M # Run inference directly in the terminal: llama cli -hf udgamlabs/alder-1.6b:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf udgamlabs/alder-1.6b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf udgamlabs/alder-1.6b:Q4_K_M
Use Docker
docker model run hf.co/udgamlabs/alder-1.6b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use udgamlabs/alder-1.6b 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" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/udgamlabs/alder-1.6b:Q4_K_M
- SGLang
How to use udgamlabs/alder-1.6b 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use udgamlabs/alder-1.6b with Ollama:
ollama run hf.co/udgamlabs/alder-1.6b:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use udgamlabs/alder-1.6b with Docker Model Runner:
docker model run hf.co/udgamlabs/alder-1.6b:Q4_K_M
- Lemonade
How to use udgamlabs/alder-1.6b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull udgamlabs/alder-1.6b:Q4_K_M
Run and chat with the model
lemonade run user.alder-1.6b-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Alder-1.6B
Alder-1.6B is a 1.59B-parameter open language model trained from scratch in the open by Udgam Labs (founded by Jitesh K Prasad) for $702.96 in direct training & final evaluation โ and $980.28 all-in across all 173 GPU runs including every initial experiment, 4-way data recipe screen, corpus build, mid-run probe, rival check, and failed rehearsal.
Every weight, all 41 intermediate checkpoints, quantisations, evaluation transcripts, and training scripts for Alder are released openly under Apache-2.0.
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,18query heads /6KV heads (3:1 GQA),head_dim=128, SwiGLU6144, RMSNorm + QK-Norm, untied embeddings - Context & Position Encoding:
32,768native context (RoPE base = 2,000,000) - Tokenizer:
gpt2-ctl16(GPT-2 BPE + 16 reserved chat/reasoning/tool control tokens, vocab50,273) - Lossless Native
Qwen3ForCausalLM: Mathematically converted (max_abs_logit_diff = 1.43e-4in fp32, 100% identical argmax across all 24 layers, 100% exactchat_template.jinjaparity) โ zerotrust_remote_coderequired. Runs natively intransformers,vLLM,llama.cpp,Ollama,LM Studio, andMLX.
Quick Start
transformers (no trust_remote_code)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "udgamlabs/alder-1.6b"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": "Who are you and how were you trained?"}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200, do_sample=True, temperature=0.6, repetition_penalty=1.08)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Set enable_thinking=True to elicit step-by-step reasoning inside <|think|>...</think>.
Ollama / llama.cpp / Apple Silicon MLX
# Ollama (recommended 8-bit, 1.6 GB, ~79 tok/s on Apple Silicon)
ollama run hf.co/udgamlabs/alder-1.6b-GGUF:Q8_0
# Ollama (lightweight 4-bit, 931 MB, ~122 tok/s on Apple Silicon)
ollama run hf.co/udgamlabs/alder-1.6b-GGUF:Q4_K_M
# llama.cpp
llama-cli -hf udgamlabs/alder-1.6b-GGUF:Q8_0
# Apple Silicon MLX (85.8 tok/s, 1.79 GB peak RAM)
pip install mlx-lm
python -m mlx_lm generate --model udgamlabs/alder-1.6b-mlx-8bit --prompt "Who are you and how were you trained?" --max-tokens 150 --temp 0.6
Benchmarks & Honest Limitations
Evaluated head-to-head against udgamlabs/alder-1.6b-base (step_012100) on 32,169 standard public multiple-choice items, 1,319 GSM8K test problems, 904 verifiable RL held-out tasks, and 4Kโ32K needle-in-a-haystack retrieval.
Standard Public Benchmarks (Base -> Alder-1.6B)
| Benchmark | Metric | Alder-1.6B-Base | Alder-1.6B (Final) | 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_norm | 33.28% | 35.58% | +2.30 pp |
| HellaSwag (0-shot, n=10,042) | acc_norm | 51.46% | 51.53% | +0.07 pp |
| WinoGrande (0-shot xl, n=1,267) | acc | 56.75% | 56.99% | +0.24 pp |
| MMLU (5-shot, n=14,042) | acc | 24.34% | 26.38% | +2.04 pp |
| BoolQ (0-shot, n=3,270) | acc | 62.63% | 59.02% | -3.61 pp |
| GSM8K test (0-shot think, no tool, n=1,319) | exact numeric | โ | 3.34% (96.5% closed think) | โ |
Verifiable Skills & Honest Declines (904-Item Held-Out Suite)
| Capability | After 32K SFT | After RL (400 steps) | Alder-1.6B (Final) |
|---|---|---|---|
| Mean RL reward | +0.085 | +0.389 | +0.389 |
| Honest decline accuracy (unanswerable items) | 30.2% | 48.1% | 59.1% |
| Tool calling (exact JSON) | 93.5% | 96.8% | 95.7% (0% malformed) |
| Tool decline (when no tool fits) | 78.4% | 87.6% | 86.6% |
| Passage-grounded QA | 53.0% | 97.0% | 86.0% |
| Passage decline (missing fact) | 42.0% | 96.0% | 93.0% |
Arithmetic with calculator (calc) |
59.0% | 87.0% | 73.0% |
Arithmetic decline (calc_missing) |
0.0% | 7.0% | 50.0% |
Long-Context Single-Needle Recall (Chat Mode, 5 Depths Each)
4K: 80% ยท 8K: 100% ยท 16K: 60% ยท 24K: 100% ยท 32K: 80% (84.0% mean across 4Kโ32K).
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 Falls Short
- Not a frontier trillion-token 1.5B rival: Modern 1.5Bโ1.7B models (
SmolLM2-1.7B,Qwen2.5-1.5B,Qwen3-1.7B) train on11Tโ36Ttokens (433รโ1,417รmore tokens than Alder's25.4B). Alder is strongest per-dollar and on structured tool-calling, passage-grounded lookup, and honest abstention. - Pure-text math without tools (
GSM8K 3.34%): Multi-step arithmetic without a calculator tool is weak at25.4Bpre-training tokens; pair Alder with tools or passages. - Greedy repetition: Under greedy decoding (
temperature=0), long open-ended explanations can occasionally repeat paragraphs; light sampling (temperature=0.6,repeat_penalty=1.08) prevents this. - No dedicated safety round: Trained for honest abstention, not adversarial safety refusals (1/30 unseen identity prompts followed a direct verbatim prompt-injection override). 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
- -