alt.freeweights.text / AquilaDense-16B
From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.textSubject:

AquilaDense-16B

Date: 2026-11-15Commit: 68d294bSigned: 2DC28CC7B26A283B ✓

Text generation model with 16.7B parameters. Safetensors weights, 33.3 GB in all. Published by BAAI under Apache-2.0.

16.7B params33.3GBAquilaDense-16Bsafetensorspermissive
FactsParams16.7BSize33.3 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get BAAI/AquilaDense-16B
# manifest sha256 22e47d76dce5… · 33.3 GB · 23 files
$ fw verify ./AquilaDense-16B BAAI/AquilaDense-16B
From sourceHosted (signed)BAAI/AquilaDense-16BLast check: 2026-11-15 04:00 UTC

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

Works with

Overview

Size
33.3 GB
Weights
33.3 GB (safetensors)
Parameters
16.7B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
23, each with a sha256
Publisher
BAAI
Added
2026-11-15
Section
alt.freeweights.text
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 04:00 UTCpassed

Model card

From the publisher at commit 68d294b. Shown as plain text with links; images open at the publisher.

AquilaMoE: Efficient Training for MoE Models with Scale-Up and Scale-Out Strategies#

Language Foundation Model & Software Team

Beijing Academy of Artificial Intelligence (BAAI)

Image: image

Paper(released soon) Code github

We present AquilaMoE, a cutting-edge bilingual 8\*16B Mixture of Experts (MoE) language model developed using an innovative training methodology called EfficientScale. This approach optimizes performance while minimizing data requirements through a two-stage process. The first stage, termed Scale-Up, initializes the larger model with weights from a pre-trained smaller model, enabling substantial knowledge transfer and continuous pretraining with significantly less data. The second stage, Scale-Out, uses a pre-trained dense model to initialize the MoE experts, further enhancing knowledge transfer and performance. Extensive validation experiments on 1.8B and 7B models compared various initialization schemes, achieving models that maintain and reduce loss during continuous pretraining. Utilizing the optimal scheme, we successfully trained a 16B model and subsequently the 8\*16B AquilaMoE model, demonstrating significant improvements in performance and training efficiency.

Training Details#

Datasets#

We constructed a bilingual pretraining dataset of 4TB tokens in both Chinese and English. This dataset includes webpages, arXiv papers, encyclopedic data, books, codes, and QA pairs. It covers a wide range of high-quality open-source pretraining data such as RedPajama-Data-V2, falcon-refinedweb, C4, Pile, WuDaoCorporaText, ChineseWebText, etc. The above open-source data underwent language filtering to retain only Chinese and English texts, heuristic refinement to remove low-quality content, deduplication to maintain uniqueness, domain-specific filtering for relevance, data quality checks, removal of toxic and explicit content, and finally, data mixing in specified proportions.

Model Configurations#
Aquila3 7BAquila3 16BAquila3 8x16B
Context Length409640964096
QKV Biasyesyesyes
Layers324040
Hidden Dim409651205120
Intermediate Dim143362048020480
KV Group888
Trained Tokens3.6T1.2T545B
LR1.2e-34e-41.5e-4
Batch Size12M12M24M
Training Procedures#

The EfficientScale pipeline efficiently trains a large-scale Mixture of Experts (MoE) model by leveraging knowledge transfer from smaller models. It consists of three key phases: Preparation, Scale-Up, and Scale-Out, each ensuring effective knowledge transfer and continuous learning for an optimized MoE model.

1. Preparation Phase#

In the preparation phase, a small dense model is trained, and datasets are prepared for the following stages. This phase ensures the initial model has adequate transferable knowledge and that data is ready for effective training and validation.

  • Model Preparation: Train a small dense model from scratch on a large number of tokens or use a pre-trained small model. This step ensures the model accumulates sufficient transferable knowledge to serve as a strong foundation.
  • Data Preparation: Collect, clean, and preprocess the training and validation datasets. This step ensures the data is suitable for effective training and validation.
  • Validation Setup: Develop training and validation datasets to monitor model performance. Continuous tracking of the model's loss on the validation dataset ensures the initialized models retain transferred knowledge and effectively learn new information.
2. Scale-Up Phase#

The Scale-Up phase involves initializing a larger dense model with the weights from a smaller model and performing continuous pretraining to enhance performance.

  • Weight Initialization Strategies: the weights from a small dense model are used to initialize a larger dense model using three strategies:
    • Function Preserving Initialization (FPI): Expands the model's width while preserving the same output, ensuring knowledge transfer from the smaller model [1].
    • Advanced Knowledge Initialization (AKI): Addresses symmetry issues in FPI by incorporating weights from both the same and upper layers of the smaller model and uses stacking for depth expansion [2].
    • AKI-Pro: Improves AKI with two refinements:
      1. Interpolation for Depth Growth: Uses interpolation instead of stacking for stable continuous training [3].
      2. GQA Compatibility: Adapts AKI for Group Query Attention models.
  • Continuous Pretraining Process: the scaled-up dense model undergoes continuous pretraining on a large amount of tokens, ensuring effective knowledge transfer and improved performance.
3. Scale-Out Phase#

The scale-out phase transforms a large dense model into a Mixture of Experts (MoE) model, including initializing MoE weights and continuous pretraining to enhance performance.

  • MoE Weight Initialization: Aquila-MoE is initialized using Sparse Upcycling [4, 5]. The dense model's MLP layers are replaced with MoE layers, exact replicas of the original, with router parameters initialized normally (mean = 0, variance = 0.02).
  • Continuous Pretraining of MoE: During training and inference, two of eight experts are activated per token, utilizing about 30B parameters. To prevent training collapse, load balancing loss [6] and max z-loss [7, 8] are applied, scaled by 0.001 and 0.01, respectively, ensuring balanced token distribution and stable training.

EfficientScale enables efficient large-scale model training by leveraging pre-trained smaller models, reducing data and computational needs, and ensuring effective knowledge transfer and continuous learning.

References#

[1] Chen, T., Goodfellow, I., & Shlens, J. (2016). Net2net: Accelerating learning via knowledge transfer. In Proceedings of ICLR 2016. [2] Chen, C., Yin, Y., Shang, L., Jiang, X., Qin, Y., Wang, F., Wang, Z., Chen, X., Liu, Z., & Liu, Q. (2022). bert2BERT: Towards reusable pretrained language models. In Proceedings of ACL 2022. [3] Pan, Y., Yuan, Y., Yin, Y., Shi, J., Xu, Z., Zhang, M., Shang, L., Jiang, X., & Liu, Q. (2024). Preparing lessons for progressive training on language models. arXiv:2401.09192. [4] Komatsuzaki, A., Puigcerver, J., Lee-Thorp, J., Riquelme Ruiz, C., Mustafa, B., Ainslie, J., Tay, Y., Dehghani, M., & Houlsby, N. (2022). Sparse upcycling: Training mixture-of-experts from dense checkpoints. arXiv:2212.05055. [5] Hu, S., Tu, Y., Han, X., He, C., Cui, G., Long, X., Zheng, Z., Fang, Y., Huang, Y., Zhao, W., et al. (2024). Minicpm: Unveiling the potential of small language models with scalable training strategies. arXiv:2404. [6] Fedus, W., Zoph, B., & Shazeer, N. (2022). Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. JMLR, 23(120), 1–39. [7] Chowdhery, A., Narang, S., Devlin, J., Bosma, M., Mishra, G., Roberts, A., Barham, P., Chung, H. W., Sutton, C., Gehrmann, S., et al. (2023). Palm: Scaling language modeling with pathways. JMLR, 24(240), 1–113. [8] Zoph, B., Bello, I., Kumar, S., Du, N., Huang, Y., Dean, J., Shazeer, N., & Fedus, W. (2022). St-moe: Designing stable and transferable sparse expert models. arXiv:2202.08906.

Training Loss#

The plot illustrates the training loss versus log FLOPs for the three stages of model training: AquilaDense-7B, AquilaDense-16B, and AquilaMoE.

  1. Each Stage's Decrease: Throughout the training process, we observe a steady decrease in training loss as log FLOPs increase for each stage. The AquilaDense-7B (blue line) stage shows a gradual reduction in loss, followed by the AquilaDense-16B (orange line) stage, which continues the trend.
  2. Quick Recovery at Transition Points: When transitioning from AquilaDense-7B to AquilaDense-16B, and from AquilaDense-16B to AquilaMoE (light blue line), the training loss quickly recovers to the range of the previous stage with minimal additional compute. This indicates that each new stage rapidly achieves the performance level of the preceding stage before further improvements.
  3. Increasing Slope: A notable observation is that the slope of the training loss curve becomes progressively steeper with each stage, indicating an increasingly efficient reduction in training loss. This means that as the model scales and transitions from one stage to the next, the efficiency of training improves, resulting in faster decreases in training loss.

This plot effectively demonstrates the combined benefits of continuous loss reduction, quick recovery at stage transitions, and increasing efficiency in training.

Image: image

Performance#

The performance of the AquilaMoE model series improves significantly across multiple tasks as the parameter size increases. Both scale-up and scale-out strategies are highly effective in enhancing model performance.

Image: image

Foundation Models#
ModelAquilaDense-7BAquilaDense-16BAquilaMoE
ARC-c-ppl37.6338.3143.05
ARC-e-ppl56.0852.265.61
hellaswag-ppl67.4971.6273.94
gsm8k-gen7.8128.5154.51
humaneval-gen14.0229.8815.85
mmlu-ppl46.4757.1161
winograd-ppl50.5354.0455.4
math-gen1.324.2410.4
mbpp-gen15.636.437.2
drop-gen4.3533.3537.62
agieval-gen14.4718.57-
bbh-gen34.5141.4546.04
nq-gen8.619.9410.78
piqa-ppl76.7179.2280.3

*Table: Overall evaluation results of AquilaDense and AquilaMoE (AquilaMoE-8\16B).

Fine-tuned AquilaMoE#
ModelAquilaMoE-SFT
ARC-c-ppl49.15
ARC-e-ppl69.49
hellaswag-ppl69.77
gsm8k-gen71.27
humaneval-gen40.24
mmlu-ppl59.93
winograd-ppl57.5
ModelGPT 3.5 Turbo (11/06)GPT 3.5 Turbo (03/01)AquilaMoE-SFT
AlpacaEval 2.019.318.121.1

*Table: Performance of AquilaMoE-SFT (16\8B) on various benchmarks.

License Agreement#

The AquilaMoE project is based on the Apache 2.0 license; The AquilaMoE series models are based on the BAAI Aquila Model License Agreement.

Limitations#

The AquilaMoE Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance. It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.

Contact Us#

If you are interested, please join our WeChat groups!

Image: image

Citation#

Our paper, detailing the efficient training methods for MoE models using Scale-Up and Scale-Out strategies, will be released soon on arXiv. Stay tuned!

@article{AquilaMoE2024,
  title={AquilaMoE: Efficient Training for MoE Models with Scale-Up and Scale-Out Strategies},
  author={{Language Foundation Model \& Software Team, Beijing Academy of Artificial Intelligence (BAAI)}},
  journal={arXiv preprint arXiv:2406.XXXX},
  year={2024}
}

Acknowledgements#

This work is supported by the National Science and Technology Major Project (No. 2022ZD0116300). 本项目受新一代人工智能国家科技重大专项(No. 2022ZD0116300)支持。

Files

23 files · 33.3 GBWeights 33.3 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 23 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md13.6 KB4ac1d49735a1f689c527a0bee8c0488a712c332968f85a51baa003d1f60d5fec
assets/1280X1280.PNG181 KB55e61cc459b04d8ea3452dfe7e0d2eb3c2a5f84da5f451c744b096e69f4f77bc
assets/4d716d22-98b1-4f15-a40e-f16070cf76fa.png153 KB2d5df7382596f089c5d73923889583932a2838998a488786d8d883f7a2aaeb5e
assets/6eea11dd-4554-44ca-9459-f5e0177b510b.png237 KBfca69320a43efcd3327f3deef28dcbbf62253ee900e8981bbf867c11ee4eb25f
assets/baai.png105 KBdbb200d5cf452873f757698db3be38d673150ba750dfab8976fde017f3967f83
assets/wechat-qrcode.jpg58.4 KB44e5e360d2003220ae470567b6fb4934c186b8b1d9c717cdfecc79862e588627
config.json868 B955f6ff8e249f11e504e2f8058d63e6b2c5f4652d588f4daf80349c6c05738ca
configuration_aquiladense.py8.46 KB4ea5647f16a8dad9eeddcc2155a4a629a6bc7346d6fa327ac8ab6b6641437809
generation_config.json147 B7feffc9ce43c6c824fb098d5ebd77c756010a439f974e75ba8b7ff2fdff6a352
model-00001-of-00007.safetensors4.91 GB8d2c4e39b94e5819407652d09f84fdeff2288257206eff60beb625e73106bcbe
model-00002-of-00007.safetensors4.95 GBcf299554e5e39f2cafc9529cca806a3380b1c470b7573af3d58bc0623e637d71
model-00003-of-00007.safetensors4.87 GB8b1f8b6635857eafe7953b36010d76ca6712f43489d2ee53d5d12dbfe2973fdf
model-00004-of-00007.safetensors4.95 GBe84361987fec6f591c1c39eccc13f91bc9d7d6fc14b6cee44c75e528ddba4f79
model-00005-of-00007.safetensors4.87 GBe8896a45490e03dfb165e8c8778dcb9b5ec136a20c536c1c57b0d90a4adb89ce
model-00006-of-00007.safetensors4.95 GB7ac1d4d8fcb329e64c0a2cae0f4978de18542d4f574be12d875cef2ef8c2fc2f
model-00007-of-00007.safetensors3.82 GB79e46a8d2edfa3727177bc81365620f8b305e2e3ef465e8c628a846c8eccf22f
model.safetensors.index.json39.6 KB8a51321a76b6c0a29a01e17e43c8e902325fd806ade76a8cae0733c79d4e4fcb
modeling_aquiladense.py65.5 KB6ccef3984a55a1dac913451268dfd64e5c1677dfd76fe8ff4ec76529b3b001e1
special_tokens_map.json131 B79524fc72e5b290f052f183cabc9a48d1812eda332ad6916bbd21c614d1ed64a
tokenization.py9.63 KB6c4779db5e512908f3fb5d9270744a623ef899a5555901ea4f37c1d9793384f1
tokenizer.tiktoken2.56 MBb2b1b8dfb5cc5f024bafc373121c6aba3f66f9a5a0269e243470a1de16a33186
tokenizer_config.json718 B80857673ecfd147b132fb2b51a9a138eab189edfaf66c9185ab567509b024a37
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
68d294b1f4 pinned now2026-11-15 04:00 UTC23 files · 33.3 GB

Use it

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

License

Name
Apache License 2.0
Id
Apache-2.0
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
4ac1d49735a1f689c527a0bee8c0488a712c332968f85a51baa003d1f60d5fec
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: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.textSubject: AquilaDense-16BDate: 2026-11-15Commit: 68d294bSigned: 2DC28CC7B26A283B ✓
Upstream
BAAI/AquilaDense-16B
Pinned commit
68d294b1f4afd3317176b6e154bd5028b166d0e0
Manifest
AquilaDense-16B.json · .minisig
Manifest sha256
22e47d76dce505df68afd73956d0dba0fcc2ef233d64145e5d77bc8ca4fc1294
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:00 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/BAAI/AquilaDense-16B.json $ curl -O https://freeweights.allternit.com/manifests/BAAI/AquilaDense-16B.json.minisig $ minisign -Vm AquilaDense-16B.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

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/AquilaDense-16B
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. AquilaDense-16B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B