BAAI / AquilaCode-py

huggingface.co
Total runs: 241
24-hour runs: -5
7-day runs: -19
30-day runs: -99
Model's Last Updated: July 13 2026
text-generation

Introduction of AquilaCode-py

Model Details of AquilaCode-py

Aquila_logo

English | 简体中文 |

Aquila Language Model is the first open source language model that supports both Chinese and English knowledge, commercial license agreements, and compliance with domestic data regulations.

  • 🌟 Supports open source commercial licenses . The source code of the Aquila series models is based on the Apache 2.0 agreement , while the model weight is based on the BAAI Aquila Model License Agreement . Users can use it for commercial purposes as long as they meet the licensing restrictions.

  • ✍️ Possesses Chinese and English knowledge . The Aquila series model is trained from scratch on a high-quality corpus of Chinese and English languages, with Chinese corpora accounting for about 40%, ensuring that the model accumulates native Chinese world knowledge during the pre-training phase, rather than translated knowledge.

  • 👮‍♀️ Complies with domestic data regulations . The Chinese corpora of the Aquila series models come from Intelligence Source's accumulated Chinese datasets over the years, including Chinese internet data from over 10,000 sources (more than 99% of which are domestic sources), as well as high-quality Chinese literature and book data supported by authoritative domestic organizations. We will continue to accumulate high-quality and diverse datasets and incorporate them into the subsequent training of the Aquila base models.

  • 🎯 Continuous improvements and open sourcing . We will continue to improve training data, optimize training methods, and enhance model performance, cultivate a flourishing "model tree" on a better base model foundation, and continuously update open-source versions.

The additional details of the Aquila model will be presented in the official technical report. Please stay tuned for updates on official channels, including the FlagAI GitHub repository , FlagAI's Zhihu account and FlagAI's official technical communication group .

Model Model Type Description Status GPUs Used
Aquila-7B Base model, 7 billion parameters Aquila Base Model inherits the architectural design advantages of GPT-3 and LLaMA. It replaces a batch of more efficient underlying operator implementations, redesigns the implementation of bilingual tokenizer, upgrades BMTrain parallel training method, and achieves nearly 8 times the training efficiency of Magtron+DeepSpeed ZeRO-2. Released Nvidia-A100
Aquila-33B Base model, 33 billion parameters Same as above Coming soon Nvidia-A100
AquilaChat-7B SFT model, fine-tuned and RL based on Aquila-7B AquilaChat Dialog Model supports fluent text dialogue and multiple language generation tasks, and realizes the call of AquilaChat to other models and tools by defining an expandable special instruction specification, which is easy to extend. For example, calling the open source AltDiffusion multimodal language image generation model of Flagship Intelligence achieved smooth image generation capability. Together with Flagship Intelligence's InstructFace multi-step controllable text-picture model , it is easy to achieve multi-step controllable editing of human face images. Released Nvidia-A100
AquilaChat-33B SFT model, fine-tuned and RL based on Aquila-33B Same as above Coming soon Nvidia-A100
AquilaCode-multi Base model, "text-code" generation model, continue-pre-trained based on Aquila-7B. AquilaCode utilizes high-quality, filtered, and compliant open-source code data for training, with a dataset size of approximately 10-40% compared to other open-source code generation models. By following the provided official guidelines, developers can harness the power of the AquilaCode model to customize their own code assistant. Released Nvidia-A100
AquilaCode-py Base model, "text-code" generation model, continue-pre-trained based on Aquila-7B, trained on Horizon Robotics chips Same as above Released Nvidia-A100

We will continue to release improved versions of Aquila model as open source.

  • 2023/07/24 :release v0.9
    • AquilaCode-mutil-01 md5: e202e5b82db773ea369fe843fef1c34c
    • AquilaCode-mutil-02 md5: 3923b2b020e2af71755b11248076437f
    • AquilaCode-Python-01 md5: e202e5b82db773ea369fe843fef1c34c
    • AquilaCode-Python-02 md5: 3923b2b020e2af71755b11248076437f

Aquila-7B v0.8 has shown improvements in the FlagEval large model evaluation ("Objective") compared to version 0.7. It achieved improvements of approximately 10.07% on MMLU_Chinese, 14.84% on TruthfulQA, and 7.94% on MMLU datasets. For detailed evaluation results, please refer to the website http://flageval.baai.ac.cn . For detailed version change history, see Change Log .

Quick Start Aquila-7B
1. Inference
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_info = "BAAI/AquilaCode-py"
tokenizer = AutoTokenizer.from_pretrained(model_info, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_info, trust_remote_code=True)
model.eval()
model.to("cuda:4")

text = "#补全代码\ndef quick_sort(x):"

tokens = tokenizer.encode_plus(text)['input_ids'][:-1]

tokens = torch.tensor(tokens)[None,].to("cuda:4")


with torch.no_grad():
    out = model.generate(tokens, do_sample=True, max_length=512, eos_token_id=100007)[0]

    out = tokenizer.decode(out.cpu().numpy().tolist())

    print(out)
License

Aquila-7B and AquilaChat-33B open-source model is licensed under BAAI Aquila Model Licence Agreement

Runs of BAAI AquilaCode-py on huggingface.co

241
Total runs
-5
24-hour runs
-10
3-day runs
-19
7-day runs
-99
30-day runs

More Information About AquilaCode-py huggingface.co Model

More AquilaCode-py license Visit here:

https://choosealicense.com/licenses/other

AquilaCode-py huggingface.co

AquilaCode-py huggingface.co is an AI model on huggingface.co that provides AquilaCode-py's model effect (), which can be used instantly with this BAAI AquilaCode-py model. huggingface.co supports a free trial of the AquilaCode-py model, and also provides paid use of the AquilaCode-py. Support call AquilaCode-py model through api, including Node.js, Python, http.

AquilaCode-py huggingface.co Url

https://huggingface.co/BAAI/AquilaCode-py

BAAI AquilaCode-py online free

AquilaCode-py huggingface.co is an online trial and call api platform, which integrates AquilaCode-py's modeling effects, including api services, and provides a free online trial of AquilaCode-py, you can try AquilaCode-py online for free by clicking the link below.

BAAI AquilaCode-py online free url in huggingface.co:

https://huggingface.co/BAAI/AquilaCode-py

AquilaCode-py install

AquilaCode-py is an open source model from GitHub that offers a free installation service, and any user can find AquilaCode-py on GitHub to install. At the same time, huggingface.co provides the effect of AquilaCode-py install, users can directly use AquilaCode-py installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

AquilaCode-py install url in huggingface.co:

https://huggingface.co/BAAI/AquilaCode-py

Url of AquilaCode-py

AquilaCode-py huggingface.co Url

Provider of AquilaCode-py huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 36.6M
Run Growth: 1.2M
Growth Rate: 3.21%
Updated:July 03 2024
huggingface.co

Total runs: 13.7M
Run Growth: 278.2K
Growth Rate: 2.04%
Updated:February 21 2024
huggingface.co

Total runs: 12.2M
Run Growth: 3.6M
Growth Rate: 29.65%
Updated:February 21 2024
huggingface.co

Total runs: 1.2M
Run Growth: -738.0K
Growth Rate: -61.03%
Updated:October 12 2023
huggingface.co

Total runs: 1.1M
Run Growth: 574.1K
Growth Rate: 51.65%
Updated:April 17 2024
huggingface.co

Total runs: 1.0M
Run Growth: -518.3K
Growth Rate: -50.44%
Updated:December 13 2023
huggingface.co

Total runs: 107.0K
Run Growth: -113.4K
Growth Rate: -106.02%
Updated:October 12 2023
huggingface.co

Total runs: 74.8K
Run Growth: 49.3K
Growth Rate: 65.89%
Updated:July 13 2026
huggingface.co

Total runs: 64.8K
Run Growth: -51.7K
Growth Rate: -79.71%
Updated:October 12 2023
huggingface.co

Total runs: 49.2K
Run Growth: -23.8K
Growth Rate: -48.40%
Updated:January 15 2025
huggingface.co

Total runs: 36.5K
Run Growth: 16.3K
Growth Rate: 44.61%
Updated:November 14 2023
huggingface.co

Total runs: 20.4K
Run Growth: -4.5K
Growth Rate: -22.03%
Updated:October 12 2023
huggingface.co

Total runs: 16.4K
Run Growth: -15.0K
Growth Rate: -91.54%
Updated:April 16 2025
huggingface.co

Total runs: 15.2K
Run Growth: 14.2K
Growth Rate: 92.91%
Updated:January 15 2025
huggingface.co

Total runs: 11.6K
Run Growth: 1.6K
Growth Rate: 13.85%
Updated:May 20 2025
huggingface.co

Total runs: 4.8K
Run Growth: -112.4K
Growth Rate: -2358.13%
Updated:October 12 2023
huggingface.co

Total runs: 2.2K
Run Growth: 700
Growth Rate: 31.77%
Updated:April 10 2026
huggingface.co

Total runs: 1.9K
Run Growth: 723
Growth Rate: 37.62%
Updated:March 01 2026
huggingface.co

Total runs: 1.6K
Run Growth: -859
Growth Rate: -53.55%
Updated:April 10 2026
huggingface.co

Total runs: 1.6K
Run Growth: 246
Growth Rate: 15.77%
Updated:February 07 2024
huggingface.co

Total runs: 1.5K
Run Growth: 803
Growth Rate: 53.89%
Updated:April 19 2024
huggingface.co

Total runs: 1.2K
Run Growth: 456
Growth Rate: 39.41%
Updated:October 23 2024
huggingface.co

Total runs: 1.1K
Run Growth: 977
Growth Rate: 86.00%
Updated:August 11 2026
huggingface.co

Total runs: 897
Run Growth: 245
Growth Rate: 27.31%
Updated:April 18 2023
huggingface.co

Total runs: 816
Run Growth: 279
Growth Rate: 34.19%
Updated:May 23 2025
huggingface.co

Total runs: 759
Run Growth: -8.2K
Growth Rate: -1081.82%
Updated:July 13 2026
huggingface.co

Total runs: 748
Run Growth: -1.0K
Growth Rate: -137.97%
Updated:November 28 2024
huggingface.co

Total runs: 688
Run Growth: 276
Growth Rate: 40.12%
Updated:October 24 2024
huggingface.co

Total runs: 643
Run Growth: -618
Growth Rate: -95.81%
Updated:December 25 2025
huggingface.co

Total runs: 583
Run Growth: 110
Growth Rate: 18.87%
Updated:August 07 2025
huggingface.co

Total runs: 582
Run Growth: 434
Growth Rate: 74.57%
Updated:August 11 2026
huggingface.co

Total runs: 564
Run Growth: -7.7K
Growth Rate: -1362.59%
Updated:July 13 2026
huggingface.co

Total runs: 503
Run Growth: -40
Growth Rate: -7.95%
Updated:December 25 2025
huggingface.co

Total runs: 469
Run Growth: -649
Growth Rate: -138.38%
Updated:December 31 2022
huggingface.co

Total runs: 438
Run Growth: 41
Growth Rate: 9.36%
Updated:October 27 2023
huggingface.co

Total runs: 407
Run Growth: 230
Growth Rate: 56.51%
Updated:March 07 2024
huggingface.co

Total runs: 405
Run Growth: 259
Growth Rate: 63.95%
Updated:July 13 2026
huggingface.co

Total runs: 391
Run Growth: 202
Growth Rate: 51.66%
Updated:April 10 2026
huggingface.co

Total runs: 376
Run Growth: 298
Growth Rate: 79.26%
Updated:February 11 2025
huggingface.co

Total runs: 363
Run Growth: 245
Growth Rate: 67.49%
Updated:April 10 2026
huggingface.co

Total runs: 334
Run Growth: -21
Growth Rate: -6.29%
Updated:July 13 2026
huggingface.co

Total runs: 300
Run Growth: 229
Growth Rate: 76.33%
Updated:June 06 2025
huggingface.co

Total runs: 253
Run Growth: 187
Growth Rate: 73.91%
Updated:February 07 2024
huggingface.co

Total runs: 249
Run Growth: 99
Growth Rate: 39.76%
Updated:April 10 2026
huggingface.co

Total runs: 245
Run Growth: 75
Growth Rate: 30.61%
Updated:July 13 2026
huggingface.co

Total runs: 237
Run Growth: 20
Growth Rate: 8.44%
Updated:July 17 2026
huggingface.co

Total runs: 230
Run Growth: -39
Growth Rate: -16.96%
Updated:July 13 2026
huggingface.co

Total runs: 225
Run Growth: -1
Growth Rate: -0.44%
Updated:October 23 2024
huggingface.co

Total runs: 209
Run Growth: 172
Growth Rate: 82.30%
Updated:August 18 2026
huggingface.co

Total runs: 193
Run Growth: -48
Growth Rate: -24.87%
Updated:May 13 2024
huggingface.co

Total runs: 192
Run Growth: 70
Growth Rate: 36.46%
Updated:July 13 2026
huggingface.co

Total runs: 183
Run Growth: 80
Growth Rate: 43.72%
Updated:May 31 2024
huggingface.co

Total runs: 179
Run Growth: 79
Growth Rate: 44.13%
Updated:May 13 2024
huggingface.co

Total runs: 178
Run Growth: 74
Growth Rate: 41.57%
Updated:May 13 2024
huggingface.co

Total runs: 159
Run Growth: -1.1K
Growth Rate: -668.55%
Updated:June 24 2024
huggingface.co

Total runs: 155
Run Growth: -1.0K
Growth Rate: -661.29%
Updated:June 24 2024
huggingface.co

Total runs: 147
Run Growth: 110
Growth Rate: 74.83%
Updated:July 02 2024
huggingface.co

Total runs: 144
Run Growth: -803
Growth Rate: -557.64%
Updated:December 21 2023
huggingface.co

Total runs: 141
Run Growth: 33
Growth Rate: 23.40%
Updated:July 05 2024
huggingface.co

Total runs: 139
Run Growth: 102
Growth Rate: 73.38%
Updated:November 02 2025