melon-1b

The original 1B base model, pretrained for 11,450 steps of 1M tokens (~12B tokens) with a warmup-stable-decay schedule.

Part of Melon, a language model trainer written from scratch in Rust on Candle, with its own tokenizer, kernels and training pipeline. These weights are a research artifact, not a production model.

Not a transformers model. The architecture is Melon's own, so loading it needs the Melon code (melon-llm). config.json here is Melon's config, not a Hugging Face one.

Architecture

  • 1,312M parameters in total (fp32 safetensors), including the input embedding, an untied output head and 1 value-embedding table; the name is the run's internal size label
  • 20 layers, d_model 2048, 32 heads, context 4096, vocab 49152
  • RoPE, RMSNorm, relu2 MLP, QK-norm, logit soft-cap 15, value embeddings, gated attention, learned residual scalars

Training

Pretraining mix (configs/data-1b.toml): 45% FineWeb-Edu, 30% DCLM-Baseline, 20% GitHub code, 5% FineMath, tokenized with a 49,152-entry BPE trained on the same mix.

Training tokens: ~12B. The exact run config is in train.toml; the step count is in training-state.json.

Chat benchmark

Our multi-turn chat benchmark (facts, math, riddles, code, and recalling earlier turns): every reply is scored 0–10 by Claude Sonnet, with the same sampling settings (temperature 0.7, top-p 0.9, top-k 50) for every model. Only the SFT chat models were run; base models were not. DRY is a repetition-penalty setting in melon-llm chat (off = --dry-multiplier 0). Differences under about 0.5 overall are within run-to-run noise. The other models also had far larger post-training (SFT, RLHF, distillation from bigger models).

Params are total parameters including embeddings (* Qwen3.5 counts include its vision encoder). Train tokens are pretraining tokens as stated by each model's authors; Melon's exclude SFT.

Main set (v200: 20 conversations, 200 turns)

Model Params Train tokens Overall Facts Math Riddles Code Memory
Qwen2.5-1.5B-Instruct 1.54B 18T 7.08 7.85 9.22 4.75 8.53 5.08
Qwen3.5-2B 2.27B* not disclosed 6.76 5.60 9.03 5.08 7.60 6.53
SmolLM2-1.7B-Instruct 1.71B 11T 6.24 7.65 8.25 3.02 7.20 5.05
Llama-3.2-1B-Instruct 1.24B up to 9T 6.21 6.78 8.97 2.40 6.42 6.47
Gemma-3-1B-it 1.00B 2T 6.17 7.15 7.65 4.58 7.10 4.38
Qwen3.5-0.8B 0.87B* not disclosed 5.32 4.20 8.38 2.52 6.08 5.42
melon-1b-ext2-sft-targeted (DRY off) 1.31B 11.8B 5.21 3.88 7.22 4.28 5.55 5.10
MiniCPM-1B-SFT 1.36B not disclosed 5.16 6.88 6.83 2.21 6.66 3.23
melon-1b-ext2-sft-targeted (DRY 0.5, mean of 3 runs) 1.31B 11.8B 4.70 3.31 7.03 3.75 5.14 4.28
Qwen1.5-1.8B-Chat 1.84B not disclosed 3.96 4.47 5.75 1.32 4.65 3.58
Phi-1.5-Instruct 1.42B 150B 3.68 5.10 5.20 2.52 5.15 0.42
melon-1b-ext2-sft (DRY 0.5) 1.31B 11.8B 3.12 4.42 3.95 1.35 3.20 2.65
TinyLlama-1.1B-Chat 1.10B 3T 2.60 5.28 0.53 1.40 3.83 1.98
melon-1b-ext2-sft (DRY off) 1.31B 11.8B 2.56 3.00 2.38 1.38 3.60 2.45

Fresh held-out set (200 new turns, checked for no overlap with the SFT data)

Harder than v200 for every model (scores drop 0.65–1.0), and the fairest test of the targeted SFT.

Model Params Train tokens Overall Facts Math Riddles Code Memory
Qwen2.5-1.5B-Instruct 1.54B 18T 6.17 4.97 8.00 4.50 7.30 6.08
Llama-3.2-1B-Instruct 1.24B up to 9T 6.16 5.50 7.47 2.40 6.40 9.03
SmolLM2-1.7B-Instruct 1.71B 11T 5.98 6.12 6.08 3.90 6.30 7.50
Gemma-3-1B-it 1.00B 2T 5.58 4.35 8.22 2.62 5.50 7.22
Qwen3.5-0.8B 0.87B* not disclosed 4.67 2.52 7.08 2.55 5.25 5.92
Qwen1.5-1.8B-Chat 1.84B not disclosed 3.05 3.15 4.75 0.88 2.95 3.52
melon-1b-ext2-sft-targeted (DRY off) 1.31B 11.8B 3.02 2.52 3.15 2.45 2.83 4.17
melon-1b-ext2-sft-targeted (DRY 0.5) 1.31B 11.8B 2.71 2.42 3.00 2.02 2.95 3.17
Phi-1.5-Instruct 1.42B 150B 2.67 2.33 3.15 2.10 4.80 1.00
melon-1b-ext2-sft (DRY off) 1.31B 11.8B 2.02 2.30 2.35 0.57 1.57 3.27
melon-1b-ext2-sft (DRY 0.5) 1.31B 11.8B 1.80 1.90 2.05 0.75 1.85 2.48

Earlier set (72 conversations' worth of prompts, 144 turns)

The only set that scored melon-1b-sft. Two Melon rows per model are two separate runs.

Model Params Train tokens Overall Facts Math Riddles Code Memory
Gemma-3-1B-it 1.00B 2T 7.72 8.55 7.97 7.87 7.86 4.14
Llama-3.2-1B-Instruct 1.24B up to 9T 7.33 8.22 8.53 5.30 7.18 6.14
SmolLM2-1.7B-Instruct 1.71B 11T 7.05 8.93 8.61 2.27 8.36 5.64
Qwen3.5-0.8B 0.87B* not disclosed 5.39 5.92 7.89 1.43 6.73 3.43
Qwen1.5-1.8B-Chat 1.84B not disclosed 4.49 5.95 5.21 1.33 5.82 3.00
melon-1b-ext2-sft 1.31B 11.8B 4.18 / 3.70 5.78 / 4.95 5.13 / 4.47 1.90 / 2.03 4.73 / 4.55 1.07 / 0.29
melon-1b-sft 1.31B 12B 3.57 / 4.13 6.47 / 7.05 2.39 / 2.92 1.13 / 2.50 4.41 / 3.91 2.36 / 2.93
TinyLlama-1.1B-Chat 1.10B 3T 3.58 6.92 1.76 0.97 5.36 1.71

Melon's main weaknesses: factual recall, multi-digit or decimal arithmetic, and sometimes denying that the user said something earlier in the conversation.

Evaluation

Zero-shot, log-likelihood scoring of the answer choices (acc_norm for HellaSwag, ARC-Challenge and PIQA; acc for ARC-Easy, LAMBADA and WinoGrande). Melon numbers come from Melon's own evaluator; the Hubble-1B row comes from lm-evaluation-harness, so treat it as approximately comparable.

Params are total parameters including embeddings (* Qwen3.5 counts include its vision encoder). Train tokens are pretraining tokens as stated by each model's authors; Melon's exclude SFT.

Model Params Train tokens HellaSwag ARC-Easy ARC-Challenge PIQA LAMBADA WinoGrande
Melon 1B 1.31B 12B .522 .653 .337 .708 .481 .563
Melon 1B SFT 1.31B 12B .527 .616 .340 .693 .452 –
Melon 1B ext2 1.31B 11.8B .467 .633 .338 .674 .391 .533
Melon 1B ext2 SFT 1.31B 11.8B .460 .598 .323 .671 .413 –
Melon 1B ext2 targeted SFT 1.31B 11.8B .454 .606 – .665 – .541
Hubble-1B (reference, DCLM) 1.18B 500B – .694 .369 .759 – .625

Usage

melon-llm chat <path-to-this-repo> --prompt "What is photosynthesis?"   # add --cuda on NVIDIA GPUs
melon-llm eval <path-to-this-repo>

Limitations

Small model, trained on about 12B tokens or fewer. It makes factual mistakes, is weak at arithmetic, and has no safety tuning. Do not rely on its output.

Downloads last month
161
Safetensors
Model size
1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support