alt.freeweights.kimi / Moonlight-16B-A3B
From: moonshotai <huggingface.co/moonshotai>Newsgroups: alt.freeweights.kimiSubject:

Moonlight-16B-A3B

Date: 2026-11-15Commit: 476b36aSigned: 2DC28CC7B26A283B ✓

Text generation model with 16B parameters. Safetensors weights, 31.9 GB in all. Published by moonshotai under MIT.

16B params31.9GBMoonlight-16B-A3Bsafetensorspermissive
FactsParams16BSize31.9 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get moonshotai/Moonlight-16B-A3B
# manifest sha256 f9186d1bfee8… · 31.9 GB · 45 files
$ fw verify ./Moonlight-16B-A3B moonshotai/Moonlight-16B-A3B
From sourceHosted (signed)moonshotai/Moonlight-16B-A3BLast check: 2026-11-15 02:41 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
31.9 GB
Weights
31.9 GB (safetensors)
Parameters
16B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
45, each with a sha256
Publisher
moonshotai
Added
2026-11-15
Section
alt.freeweights.kimi
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:41 UTCpassed

Model card

From the publisher at commit 476b36a. Shown as plain text with links; images open at the publisher.

https://github.com/MoonshotAI/Moonlight

Tech Report | HuggingFace | Megatron(coming soon)

Abstract#

Recently, the Muon optimizer has demonstrated strong results in training small-scale language models, but the scalability to larger models has not been proven. We identify two crucial techniques for scaling up Muon:

  • Weight Decay: Critical for scaling to larger models
  • Consistent RMS Updates: Enforcing a consistent root mean square on model updates

These techniques allow Muon to work out-of-the-box on large-scale training without the need of hyper-parameter tuning. Scaling law experiments indicate that Muon is $\sim2\times$ more sample efficient than Adam with compute optimal training.

Based on these improvements, we introduce Moonlight, a 3B/16B-parameter Mixture-of-Expert (MoE) model trained with 5.7T tokens using Muon. Our model improves the current Pareto frontier, achieving better performance with much fewer training FLOPs compared to prior models.

We open-source our Muon implementation that is memory optimal and communication efficient. We also release the pretrained, instruction-tuned, and intermediate checkpoints to support future research.

Our code is available at MoonshotAI/Moonlight.

Key Ingredients#

Our work builds upon Muon while systematically identifying and resolving its limitations in large-scale training scenarios. Our technical contributions include:

  • Analysis for Effective Scaling of Muon: Through extensive analysis, we identify that weight decay plays a crucial roles in Muon's scalability. Besides, we proposed to keep a consistent update root mean square (RMS) across different matrix and non-matrix parameters through parameter-wise update scale adjustments. Such adjustments significantly enhanced training stability.
  • Efficient Distributed Implementation: We develop a distributed version of Muon with ZeRO-1 style optimization, achieving optimal memory efficiency and reduced communication overhead while preserving the mathematical properties of the algorithm.
  • Scaling Law Validation: We performed scaling law research that compares Muon with strong AdamW baselines, and showed the superior performance of Muon (see Figure 1). Based on the scaling law results, Muon achieves comparable performance to AdamW trained counterparts while requiring only approximately 52% of the training FLOPs.

Image: image Scaling up with Muon. (a) Scaling law experiments comparing Muon and Adam. Muon is 2 times more sample efficient than Adam. (b) The MMLU performance of our Moonlight model optimized with Muon and other comparable models. Moonlight advances the Pareto frontier of performance vs training FLOPs.

Performance#

We compared Moonlight with SOTA public models at similar scale:

  • LLAMA3-3B is a 3B-parameter dense model trained with 9T tokens
  • Qwen2.5-3B is a 3B-parameter dense model trained with 18T tokens
  • Deepseek-v2-Lite is a 2.4B/16B-parameter MOE model trained with 5.7T tokens
Benchmark (Metric)Llama3.2-3BQwen2.5-3BDSV2-LiteMoonlight
Activated Param†2.81B2.77B2.24B2.24B
Total Params†2.81B2.77B15.29B15.29B
Training Tokens9T18T5.7T5.7T
OptimizerAdamW*AdamWMuon
EnglishMMLU54.7565.658.370.0
MMLU-pro25.034.625.542.4
BBH46.856.344.165.2
TriviaQA‡59.651.165.166.3
CodeHumanEval28.042.129.948.1
MBPP48.757.143.263.8
MathGSM8K34.079.141.177.4
MATH8.542.617.145.3
CMath-80.058.481.1
ChineseC-Eval-75.060.377.2
CMMLU-75.064.378.2

Qwen 2 & 2.5 reports didn't disclose their optimizer information. †The reported parameter counts exclude the embedding parameters. ‡We test all listed models with the full set of TriviaQA.

Example usage#

Model Download#
Model#Total Params#Activated ParamsContext LengthDownload Link
Moonlight-16B-A3B16B3B8K🤗 Hugging Face
Moonlight-16B-A3B-Instruct16B3B8K🤗 Hugging Face
Inference with Hugging Face Transformers#

We introduce how to use our model at inference stage using transformers library. It is recommended to use python=3.10, torch>=2.1.0, and transformers=4.48.2 as the development environment.

For our pretrained model (Moonlight-16B-A3B):

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "moonshotai/Moonlight-16B-A3B"
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)

prompt = "1+1=2, 1+2="
inputs = tokenizer(prompt, return_tensors="pt", padding=True, truncation=True).to(model.device)
generated_ids = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.batch_decode(generated_ids)[0]
print(response)

For our instruct model (Moonlight-16B-A3B-Instruct):

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "moonshotai/Moonlight-16B-A3B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)

messages = [
    {"role": "system", "content": "You are a helpful assistant provided by Moonshot-AI."},
    {"role": "user", "content": "Is 123 a prime?"}
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
generated_ids = model.generate(inputs=input_ids, max_new_tokens=500)
response = tokenizer.batch_decode(generated_ids)[0]
print(response)

Moonlight has the same architecture as DeepSeek-V3, which is supported by many popular inference engines, such as VLLM and SGLang. As a result, our model can also be easily deployed using these tools.

Citation#

If you find Moonlight is useful or want to use in your projects, please kindly cite our paper:

@misc{liu2025muonscalablellmtraining,
      title={Muon is Scalable for LLM Training}, 
      author={Jingyuan Liu and Jianlin Su and Xingcheng Yao and Zhejun Jiang and Guokun Lai and Yulun Du and Yidao Qin and Weixin Xu and Enzhe Lu and Junjie Yan and Yanru Chen and Huabin Zheng and Yibo Liu and Shaowei Liu and Bohong Yin and Weiran He and Han Zhu and Yuzhi Wang and Jianzhou Wang and Mengnan Dong and Zheng Zhang and Yongsheng Kang and Hao Zhang and Xinran Xu and Yutao Zhang and Yuxin Wu and Xinyu Zhou and Zhilin Yang},
      year={2025},
      eprint={2502.16982},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2502.16982}, 
}

Files

45 files · 31.9 GBWeights 31.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 45 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md8.36 KB4d74df70b1d105726ff2a6944fce443a8aee57671c5edaf1af5870a37d11c91b
config.json1.38 KB64513a4aa6ffd2337215ea80c880491ad54a180ffb66a53dd9e178c6f8e9f76c
configuration_deepseek.py10.7 KB54f29dd0d56e9a13f639c703e524daa71794e360050012aea3788ad7cfc38b17
figures/banner.png48.8 KB081bc2d39e0861090b616b909ff82616f4ef5ed000bf189c368da4cf2e6db046
figures/banner_short.png26.9 KBa53526a0d9fa7b723b67fa57324e650603d927bff4067ea5120f0853a8b2e3b4
figures/chinlaw_8k_flops_ratio.png145 KB19fab9dbdd3eea90793e0deac9990721c1c2da420fd3b8cc5f925e99f120bec4
figures/fig_MMLU_performance.png225 KB4051af07c1108e93920a4a87fc01dfa33b0b94eed47046e53c050ae03166fcbc
figures/fig_weight_decay.png416 KB95f32e184e4d41f48bea9209a744f5d9ca834397a5c155e685eda528eef85232
figures/logo.png13.1 KB7870b48105beb49cdb29bb3090abb7bbca688bef862507904c23d9c472df221c
figures/megatron.png1.99 KBc3b1ddd109c0b9456251bf20dff1696d54057fab35d6cf0e8ab5224a65d9f6fc
figures/scaling.png224 KB8de63f603f3f6e474d9f1f3fc2b29c7d066436c4a0f2eb1f3c76081aa6395fcb
generation_config.json61 Bc1fe3937583d200fe68c6394c91370ea9017e053481e228f6248e92f6e3bc91a
model-1-of-27.safetensors837 MB79cb3829ddfbed254255efad89a1907ee71ec1f9e09f7d0cc48603e921e7baa5
model-10-of-27.safetensors1.17 GBce32e60f8b8bfce2814e2044b8d8877cc65e6557b08556f5c06095677b1a6bcf
model-11-of-27.safetensors1.17 GB3e2b3ecc020277c988efdce178bafe474f2c1b02c819437e1f79e0516ae52eb7
model-12-of-27.safetensors1.17 GB486e401d3ebcc14dfb9c6cefdcf958386d6ae87ff2568a0281565d973533fa5b
model-13-of-27.safetensors1.17 GB3e2f9f1506bd824513dbaa7ebe8af09dc1f129727be6d9148e48f9d91e781b86
model-14-of-27.safetensors1.17 GBf6232cfa2d585f4ffecd9f85a6a78fa93100e31add9f03a3157a3412de7e0850
model-15-of-27.safetensors1.17 GB408c1899ebe16e7e4d061d7bbc2933cc0b955808d955857be363e7c58c0bfcb4
model-16-of-27.safetensors1.17 GB769854335bb14a4f7053d867f97a4f4c9eee1ebfc7a3d02db6b5ffc48d7a32b3
model-17-of-27.safetensors1.17 GBf52078a3ade9c1d7d26c52a6163ef5a1d8d829d3024c40b2795fb69ace95f250
model-18-of-27.safetensors1.17 GB7ffddc064f16f6bc20eafa2688314198ea3c592add2dc52cc9f1657053829bd4
model-19-of-27.safetensors1.17 GB136c7a8abf1cd011ba4f3844f53aa10ba40b3b6ef1361e77e97a597cf446fe42
model-2-of-27.safetensors1.17 GB7a7872bbb77ff9257bbfc7a2ea9de398e0d5b4db8bfab5bcaffb540623bdd7f8
model-20-of-27.safetensors1.17 GBc6ad4e78a732b4a2d9b99c5a3aebfebf19ce59b418841b997d7ad6076fe4d395
model-21-of-27.safetensors1.17 GB1aeb2f42713ba0f7286de2eaa24f9d22260fcd0bd8053417589dc9a7947419a2
model-22-of-27.safetensors1.17 GB112858c9136b4ec442851fdfa7da133bbc77d4a2d08145864d0f7d8f80797b66
model-23-of-27.safetensors1.17 GBef1244403f2f7cc6fb9833bb56e0d1bcd4de7e7e26ffac815e893745c6b001e4
model-24-of-27.safetensors1.17 GB7cf71ea82e990033f439a7fe015f95976ebc6f4a5a8abfe10cbc5d7b1375b6be
model-25-of-27.safetensors1.17 GBe4ed13fb45c416fd17a0b646d9f49539807b29dd0eb4cd1bad8543955a9fbd19
model-26-of-27.safetensors1.17 GB7406c344e7dca280eefdd52d1991059a397150d2d76753da8a14451d503920c3
model-27-of-27.safetensors1.84 GBdd596f8630bf8c18e286af6f0205d65438e5950e92ee642d04fbf755e323a78e
model-3-of-27.safetensors1.17 GB99c7afecb344b65affd9118f7275f94c4b682271832fd36a0145618efd352504
model-4-of-27.safetensors1.17 GB69bf60d1e42697b5f83a3f3513a4df864c2e516c03436f903a1360f6c7949464
model-5-of-27.safetensors1.17 GB290f1e691d7b35dccb13d4efd0b21be2ba241da691130049fa4e98fcca247326
model-6-of-27.safetensors1.17 GB3c5ba88a880427a4e6b1212ec7837256d4269cd06ceba4092170db58b6913b6a
model-7-of-27.safetensors1.17 GB88bc5ea0a361e973e71a798163d1b154398c348a8bb88572a0c677bb2cdc6d10
model-8-of-27.safetensors1.17 GB1466722412ecc31196006e69c1045dd9409872497472fd58ee34b11ed1456751
model-9-of-27.safetensors1.17 GBaad38ca78833b1c0d1daf784137153fee552087d57a81aa51a4f50e9721308cd
model.safetensors.index.json446 KBb21dee4e168d9967b4407bdf945cf382a5449ce5be4f60163119942b36c06aef
modeling_deepseek.py75.9 KBd213ef2ad5e8608427d27176aeb345add6f74405a346fb2734db8159697ee240
tiktoken.model2.80 MBb6c497a7469b33ced9c38afb1ad6e47f03f5e5dc05f15930799210ec050c5103
tokenization_moonshot.py11.1 KB11b6c72b07381146bbde5e987e927b134a5a1a7e22741693024237b53dd23557
tokenizer_config.json2.66 KB566eff6d3b862587c620edb402dc76417c582605c79e2c9a4bca333a73f44fcb
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
476b36a473 pinned now2026-11-15 02:41 UTC45 files · 31.9 GB

Use it

$ fw get moonshotai/Moonlight-16B-A3B
# manifest sha256 f9186d1bfee8… · 31.9 GB · 45 files
$ fw verify ./Moonlight-16B-A3B moonshotai/Moonlight-16B-A3B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/moonshotai/Moonlight-16B-A3B.json --dir ./Moonlight-16B-A3B $ python3 fw.py verify ./Moonlight-16B-A3B ./moonshotai__Moonlight-16B-A3B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download moonshotai/Moonlight-16B-A3B --revision 476b36a473d4467f94469414bef6cee75c9c8172 --local-dir ./Moonlight-16B-A3B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("moonshotai/Moonlight-16B-A3B", revision="476b36a473d4467f94469414bef6cee75c9c8172") model = AutoModelForCausalLM.from_pretrained("moonshotai/Moonlight-16B-A3B", revision="476b36a473d4467f94469414bef6cee75c9c8172", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve moonshotai/Moonlight-16B-A3B --revision 476b36a473d4467f94469414bef6cee75c9c8172

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
4d74df70b1d105726ff2a6944fce443a8aee57671c5edaf1af5870a37d11c91b
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: moonshotai <huggingface.co/moonshotai>Newsgroups: alt.freeweights.kimiSubject: Moonlight-16B-A3BDate: 2026-11-15Commit: 476b36aSigned: 2DC28CC7B26A283B ✓
Upstream
moonshotai/Moonlight-16B-A3B
Pinned commit
476b36a473d4467f94469414bef6cee75c9c8172
Manifest
Moonlight-16B-A3B.json · .minisig
Manifest sha256
f9186d1bfee853ee77056d2794f1f27f35588146cce28321af704d2fcda24b87
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:41 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/moonshotai/Moonlight-16B-A3B.json $ curl -O https://freeweights.allternit.com/manifests/moonshotai/Moonlight-16B-A3B.json.minisig $ minisign -Vm Moonlight-16B-A3B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Fine-tunes
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download moonshotai/Moonlight-16B-A3B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Moonlight-16B-A3B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: kimi-k2-r2egym_sandboxes-maxeps-32k
From: laion <huggingface.co/laion>Subject: kimi-k2t-freelancer-32ep-32k
From: laion <huggingface.co/laion>Subject: Kimi-K2T-ling-coder-sft-sandboxes-1-maxeps-32k
From: laion <huggingface.co/laion>Subject: Kimi-K2T-neulab-agenttuning-kg-sandboxes-maxeps-32k
From: laion <huggingface.co/laion>Subject: Kimi-K2T-neulab-agenttuning-mind2web-sandboxes-maxeps-32k
From: laion <huggingface.co/laion>Subject: Kimi-K2T-neulab-agenttuning-webshop-sandboxes-maxeps-32k