BAAI / AquilaCode-py

huggingface.co
Total runs: 245
24-hour runs: 9
7-day runs: 21
30-day runs: 17
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

245
Total runs
9
24-hour runs
12
3-day runs
21
7-day runs
17
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: 63.3M
Run Growth: -4.1M
Growth Rate: -6.52%
Updated:February 22 2024
huggingface.co

Total runs: 35.9M
Run Growth: 191.9K
Growth Rate: 0.53%
Updated:July 03 2024
huggingface.co

Total runs: 10.2M
Run Growth: -1.9M
Growth Rate: -18.87%
Updated:February 21 2024
huggingface.co

Total runs: 9.8M
Run Growth: -3.6M
Growth Rate: -36.14%
Updated:February 21 2024
huggingface.co

Total runs: 1.9M
Run Growth: 542.2K
Growth Rate: 28.48%
Updated:April 17 2024
huggingface.co

Total runs: 815.1K
Run Growth: -378.3K
Growth Rate: -44.42%
Updated:April 02 2024
huggingface.co

Total runs: 677.9K
Run Growth: -429.6K
Growth Rate: -62.18%
Updated:October 12 2023
huggingface.co

Total runs: 204.7K
Run Growth: -661.2K
Growth Rate: -320.59%
Updated:December 13 2023
huggingface.co

Total runs: 75.1K
Run Growth: 70.7K
Growth Rate: 94.19%
Updated:October 12 2023
huggingface.co

Total runs: 60.4K
Run Growth: -12.9K
Growth Rate: -21.01%
Updated:July 13 2026
huggingface.co

Total runs: 52.0K
Run Growth: 690
Growth Rate: 1.34%
Updated:October 12 2023
huggingface.co

Total runs: 46.3K
Run Growth: -42.7K
Growth Rate: -94.45%
Updated:October 12 2023
huggingface.co

Total runs: 41.1K
Run Growth: -2.0K
Growth Rate: -4.87%
Updated:January 15 2025
huggingface.co

Total runs: 40.0K
Run Growth: 1.6K
Growth Rate: 4.03%
Updated:November 14 2023
huggingface.co

Total runs: 15.9K
Run Growth: 62
Growth Rate: 0.39%
Updated:April 16 2025
huggingface.co

Total runs: 10.4K
Run Growth: 10.4K
Growth Rate: 100.00%
Updated:September 16 2026
huggingface.co

Total runs: 9.1K
Run Growth: -10.2K
Growth Rate: -111.49%
Updated:October 12 2023
huggingface.co

Total runs: 5.8K
Run Growth: -2.1K
Growth Rate: -37.71%
Updated:May 20 2025
huggingface.co

Total runs: 4.7K
Run Growth: 3.2K
Growth Rate: 68.72%
Updated:April 19 2024
huggingface.co

Total runs: 2.4K
Run Growth: 549
Growth Rate: 22.94%
Updated:April 10 2026
huggingface.co

Total runs: 2.4K
Run Growth: 472
Growth Rate: 19.43%
Updated:September 11 2026
huggingface.co

Total runs: 1.8K
Run Growth: -13.4K
Growth Rate: -671.92%
Updated:January 15 2025
huggingface.co

Total runs: 1.8K
Run Growth: 969
Growth Rate: 53.77%
Updated:November 28 2024
huggingface.co

Total runs: 1.7K
Run Growth: 299
Growth Rate: 16.82%
Updated:April 10 2026
huggingface.co

Total runs: 1.6K
Run Growth: 733
Growth Rate: 43.37%
Updated:December 31 2022
huggingface.co

Total runs: 1.3K
Run Growth: 800
Growth Rate: 60.84%
Updated:September 11 2026
huggingface.co

Total runs: 727
Run Growth: -83
Growth Rate: -11.81%
Updated:May 23 2025
huggingface.co

Total runs: 698
Run Growth: -871
Growth Rate: -128.66%
Updated:February 07 2024
huggingface.co

Total runs: 669
Run Growth: -94
Growth Rate: -14.18%
Updated:October 24 2024
huggingface.co

Total runs: 665
Run Growth: -423
Growth Rate: -63.23%
Updated:October 23 2024
huggingface.co

Total runs: 514
Run Growth: -375
Growth Rate: -77.00%
Updated:April 18 2023
huggingface.co

Total runs: 476
Run Growth: -243
Growth Rate: -53.06%
Updated:July 13 2026
huggingface.co

Total runs: 437
Run Growth: 40
Growth Rate: 9.20%
Updated:April 10 2026
huggingface.co

Total runs: 429
Run Growth: -121
Growth Rate: -29.80%
Updated:August 11 2026
huggingface.co

Total runs: 400
Run Growth: 227
Growth Rate: 61.68%
Updated:April 02 2024
huggingface.co

Total runs: 388
Run Growth: 60
Growth Rate: 15.71%
Updated:July 13 2026
huggingface.co

Total runs: 384
Run Growth: -35
Growth Rate: -9.43%
Updated:December 25 2025
huggingface.co

Total runs: 375
Run Growth: -413
Growth Rate: -115.36%
Updated:August 11 2026
huggingface.co

Total runs: 370
Run Growth: -201
Growth Rate: -57.43%
Updated:July 13 2026
huggingface.co

Total runs: 304
Run Growth: 59
Growth Rate: 20.00%
Updated:July 13 2026
huggingface.co

Total runs: 294
Run Growth: -362
Growth Rate: -130.22%
Updated:December 25 2025
huggingface.co

Total runs: 293
Run Growth: -111
Growth Rate: -38.68%
Updated:July 13 2026
huggingface.co

Total runs: 273
Run Growth: -150
Growth Rate: -51.55%
Updated:October 27 2023
huggingface.co

Total runs: 272
Run Growth: 19
Growth Rate: 6.96%
Updated:July 13 2026
huggingface.co

Total runs: 265
Run Growth: 55
Growth Rate: 21.24%
Updated:August 18 2026
huggingface.co

Total runs: 249
Run Growth: -192
Growth Rate: -75.89%
Updated:March 07 2024
huggingface.co

Total runs: 249
Run Growth: 241
Growth Rate: 100.00%
Updated:September 05 2026
huggingface.co

Total runs: 229
Run Growth: -72
Growth Rate: -31.17%
Updated:June 06 2025
huggingface.co

Total runs: 223
Run Growth: 24
Growth Rate: 10.81%
Updated:July 17 2026
huggingface.co

Total runs: 220
Run Growth: -1.9K
Growth Rate: -699.63%
Updated:April 10 2026
huggingface.co

Total runs: 215
Run Growth: 22
Growth Rate: 10.63%
Updated:July 13 2026
huggingface.co

Total runs: 212
Run Growth: 119
Growth Rate: 58.05%
Updated:November 28 2023
huggingface.co

Total runs: 210
Run Growth: -139
Growth Rate: -64.65%
Updated:April 10 2026
huggingface.co

Total runs: 199
Run Growth: 95
Growth Rate: 48.22%
Updated:July 13 2026
huggingface.co

Total runs: 199
Run Growth: 89
Growth Rate: 45.88%
Updated:July 13 2026
huggingface.co

Total runs: 192
Run Growth: -16
Growth Rate: -8.56%
Updated:October 23 2024
huggingface.co

Total runs: 191
Run Growth: 99
Growth Rate: 54.40%
Updated:March 13 2026
huggingface.co

Total runs: 180
Run Growth: 31
Growth Rate: 17.61%
Updated:June 24 2024
huggingface.co

Total runs: 178
Run Growth: -7
Growth Rate: -3.98%
Updated:May 13 2024
huggingface.co

Total runs: 177
Run Growth: 33
Growth Rate: 17.55%
Updated:May 13 2024
huggingface.co

Total runs: 177
Run Growth: 31
Growth Rate: 17.71%
Updated:June 24 2024
huggingface.co

Total runs: 176
Run Growth: 79
Growth Rate: 46.20%
Updated:December 21 2023
huggingface.co

Total runs: 173
Run Growth: 31
Growth Rate: 16.85%
Updated:May 13 2024