melon-45m-sft

melon-45m after chat SFT.

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

  • 46M parameters in total (fp32 safetensors), including the input embedding, an untied output head; the name is the run's internal size label
  • 12 layers, d_model 512, 8 heads, context 8192, vocab 8197
  • RoPE, RMSNorm, swiglu MLP

Training

Pretrained on a web/Wikipedia text mix, then context-extended to 8,192 tokens.

Supervised fine-tuning on 158k SmolTalk conversations (about 1,000 steps, loss on assistant tokens only).

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

Chat

Chat turns use special tokens added to the tokenizer (ids 49152–49155 on the 49k tokenizer); melon-llm chat applies the template.

This model was not run on our chat benchmark; see melon-1b-ext2-sft-targeted for the chat scores of the 1B models against Llama, Qwen, Gemma and others.

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 45M SFT 45M 1.55B .282 .341 .225 .548 .140 –
Melon 45M 45M 1.55B .274 .339 .218 .552 .139 –
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
184
Safetensors
Model size
45.5M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support