BAAI / Aquila2-34B

huggingface.co
Total runs: 327
24-hour runs: 4
7-day runs: 3
30-day runs: 46
Model's Last Updated: July 13 2026
text-generation

Introduction of Aquila2-34B

Model Details of Aquila2-34B

Aquila_logo

English | 简体中文 |

We opensource our Aquila2 series, now including Aquila2 , the base language models, namely Aquila2-7B and Aquila2-34B , as well as AquilaChat2 , the chat models, namely AquilaChat2-7B and AquilaChat2-34B , as well as the long-text chat models, namely AquilaChat2-7B-16k and AquilaChat2-34B-16k

The additional details of the Aquila model will be presented in the official technical report. Please stay tuned for updates on official channels.

Updates 2024.6.6

We have updated the basic language model Aquila2-34B , which has the following advantages compared to the previous model:

  • Replaced tokenizer with higher compression ratio:
Tokenizer Size Zh En Code Math Average
Aquila2-original 100k 4.70 4.42 3.20 3.77 4.02
Qwen1.5 151k 4.27 4.51 3.62 3.35 3.94
Llama3 128k 3.45 4.61 3.77 3.88 3.93
Aquila2-new 143k 4.60 4.61 3.78 3.88 4.22
  • The maximum processing length supported by the model has increased from 2048 to 8192
Quick Start Aquila2-34B
1. Inference

Aquila2-34B is a base model that can be used for continuation.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import BitsAndBytesConfig

device= "cuda:0"

# Model Name
model_name = 'BAAI/Aquila2-34B'

# load model and tokenizer
quantization_config=BitsAndBytesConfig(
                        load_in_4bit=True,
                        bnb_4bit_use_double_quant=True,
                        bnb_4bit_quant_type="nf4",
                        bnb_4bit_compute_dtype=torch.bfloat16,
                    )
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, trust_remote_code=True,
                        # quantization_config=quantization_config # Uncomment this one for 4-bit quantization
                        )

tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)

model.eval()

model.to(device)

# Example
text = "The meaning of life is"
tokens = tokenizer.encode_plus(text)['input_ids']
tokens = torch.tensor(tokens)[None,].to(device)

with torch.no_grad():
        out = model.generate(tokens, do_sample=False, max_length=128, eos_token_id=tokenizer.eos_token_id)[0]
        out = tokenizer.decode(out.cpu().numpy().tolist())
        print(out)
License

Aquila2 series open-source model is licensed under BAAI Aquila Model Licence Agreement

Runs of BAAI Aquila2-34B on huggingface.co

327
Total runs
4
24-hour runs
14
3-day runs
3
7-day runs
46
30-day runs

More Information About Aquila2-34B huggingface.co Model

More Aquila2-34B license Visit here:

https://choosealicense.com/licenses/other

Aquila2-34B huggingface.co

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

Aquila2-34B huggingface.co Url

https://huggingface.co/BAAI/Aquila2-34B

BAAI Aquila2-34B online free

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

BAAI Aquila2-34B online free url in huggingface.co:

https://huggingface.co/BAAI/Aquila2-34B

Aquila2-34B install

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

Aquila2-34B install url in huggingface.co:

https://huggingface.co/BAAI/Aquila2-34B

Url of Aquila2-34B

Aquila2-34B huggingface.co Url

Provider of Aquila2-34B huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 63.9M
Run Growth: -10.4M
Growth Rate: -16.30%
Updated:February 22 2024
huggingface.co

Total runs: 37.5M
Run Growth: 1.9M
Growth Rate: 5.14%
Updated:July 03 2024
huggingface.co

Total runs: 12.4M
Run Growth: -282.1K
Growth Rate: -2.27%
Updated:February 21 2024
huggingface.co

Total runs: 10.4M
Run Growth: -1.1M
Growth Rate: -10.92%
Updated:February 21 2024
huggingface.co

Total runs: 2.3M
Run Growth: 1.8M
Growth Rate: 77.47%
Updated:April 17 2024
huggingface.co

Total runs: 793.7K
Run Growth: -699.0K
Growth Rate: -88.07%
Updated:October 12 2023
huggingface.co

Total runs: 223.4K
Run Growth: -1.3M
Growth Rate: -594.34%
Updated:December 13 2023
huggingface.co

Total runs: 66.7K
Run Growth: -1.1K
Growth Rate: -1.63%
Updated:July 13 2026
huggingface.co

Total runs: 54.9K
Run Growth: -117.3K
Growth Rate: -213.62%
Updated:October 12 2023
huggingface.co

Total runs: 54.8K
Run Growth: -32.9K
Growth Rate: -60.02%
Updated:October 12 2023
huggingface.co

Total runs: 54.1K
Run Growth: 46.4K
Growth Rate: 85.83%
Updated:October 12 2023
huggingface.co

Total runs: 48.1K
Run Growth: 25.2K
Growth Rate: 52.47%
Updated:November 14 2023
huggingface.co

Total runs: 37.7K
Run Growth: -24.0K
Growth Rate: -63.66%
Updated:January 15 2025
huggingface.co

Total runs: 15.7K
Run Growth: 553
Growth Rate: 3.52%
Updated:April 16 2025
huggingface.co

Total runs: 10.9K
Run Growth: -15.4K
Growth Rate: -141.08%
Updated:October 12 2023
huggingface.co

Total runs: 5.5K
Run Growth: 4.9K
Growth Rate: 89.99%
Updated:April 19 2024
huggingface.co

Total runs: 4.5K
Run Growth: -9.3K
Growth Rate: -205.29%
Updated:May 20 2025
huggingface.co

Total runs: 3.5K
Run Growth: 2.6K
Growth Rate: 73.28%
Updated:September 11 2026
huggingface.co

Total runs: 1.9K
Run Growth: 1.2K
Growth Rate: 63.81%
Updated:December 31 2022
huggingface.co

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

Total runs: 1.5K
Run Growth: -526
Growth Rate: -35.88%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -1.1K
Growth Rate: -77.14%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -51
Growth Rate: -3.70%
Updated:November 28 2024
huggingface.co

Total runs: 1.3K
Run Growth: 602
Growth Rate: 47.82%
Updated:October 23 2024
huggingface.co

Total runs: 1.2K
Run Growth: 307
Growth Rate: 24.84%
Updated:September 11 2026
huggingface.co

Total runs: 1.1K
Run Growth: 779
Growth Rate: 74.05%
Updated:October 24 2024
huggingface.co

Total runs: 998
Run Growth: -351
Growth Rate: -33.18%
Updated:February 07 2024
huggingface.co

Total runs: 788
Run Growth: -130
Growth Rate: -16.50%
Updated:May 23 2025
huggingface.co

Total runs: 594
Run Growth: -168
Growth Rate: -28.28%
Updated:July 13 2026
huggingface.co

Total runs: 479
Run Growth: -22
Growth Rate: -4.59%
Updated:July 13 2026
huggingface.co

Total runs: 453
Run Growth: 146
Growth Rate: 32.23%
Updated:April 10 2026
huggingface.co

Total runs: 414
Run Growth: -424
Growth Rate: -102.42%
Updated:April 18 2023
huggingface.co

Total runs: 396
Run Growth: -154
Growth Rate: -38.89%
Updated:October 27 2023
huggingface.co

Total runs: 391
Run Growth: -250
Growth Rate: -63.94%
Updated:August 11 2026
huggingface.co

Total runs: 364
Run Growth: -871
Growth Rate: -239.29%
Updated:August 11 2026
huggingface.co

Total runs: 346
Run Growth: -332
Growth Rate: -95.95%
Updated:December 25 2025
huggingface.co

Total runs: 342
Run Growth: 158
Growth Rate: 46.20%
Updated:July 13 2026
huggingface.co

Total runs: 300
Run Growth: 213
Growth Rate: 71.00%
Updated:August 18 2026
huggingface.co

Total runs: 291
Run Growth: -937
Growth Rate: -321.99%
Updated:December 25 2025
huggingface.co

Total runs: 291
Run Growth: -63
Growth Rate: -21.65%
Updated:July 13 2026
huggingface.co

Total runs: 288
Run Growth: -147
Growth Rate: -52.13%
Updated:March 07 2024
huggingface.co

Total runs: 276
Run Growth: -3.9K
Growth Rate: -1400.36%
Updated:April 10 2026
huggingface.co

Total runs: 260
Run Growth: 20
Growth Rate: 7.69%
Updated:February 11 2025
huggingface.co

Total runs: 248
Run Growth: -118
Growth Rate: -47.58%
Updated:April 10 2026
huggingface.co

Total runs: 218
Run Growth: -100
Growth Rate: -45.87%
Updated:July 17 2026
huggingface.co

Total runs: 211
Run Growth: -125
Growth Rate: -59.24%
Updated:June 06 2025
huggingface.co

Total runs: 208
Run Growth: -81
Growth Rate: -38.94%
Updated:July 13 2026
huggingface.co

Total runs: 195
Run Growth: -60
Growth Rate: -30.77%
Updated:July 13 2026
huggingface.co

Total runs: 194
Run Growth: 55
Growth Rate: 28.35%
Updated:April 02 2024
huggingface.co

Total runs: 181
Run Growth: -143
Growth Rate: -79.01%
Updated:October 23 2024
huggingface.co

Total runs: 179
Run Growth: 15
Growth Rate: 8.38%
Updated:July 13 2026
huggingface.co

Total runs: 169
Run Growth: -100
Growth Rate: -59.17%
Updated:May 13 2024
huggingface.co

Total runs: 167
Run Growth: -995
Growth Rate: -595.81%
Updated:June 24 2024
huggingface.co

Total runs: 167
Run Growth: 49
Growth Rate: 29.34%
Updated:August 23 2023
huggingface.co

Total runs: 165
Run Growth: -27
Growth Rate: -16.36%
Updated:May 13 2024
huggingface.co

Total runs: 162
Run Growth: -76
Growth Rate: -46.91%
Updated:April 10 2026
huggingface.co

Total runs: 162
Run Growth: -20
Growth Rate: -12.35%
Updated:May 31 2024
huggingface.co

Total runs: 161
Run Growth: -18
Growth Rate: -11.18%
Updated:May 13 2024
huggingface.co

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

Total runs: 160
Run Growth: 100
Growth Rate: 65.79%
Updated:November 02 2025
huggingface.co

Total runs: 157
Run Growth: 33
Growth Rate: 21.02%
Updated:July 13 2026
huggingface.co

Total runs: 150
Run Growth: -50
Growth Rate: -33.33%
Updated:July 13 2026
huggingface.co

Total runs: 149
Run Growth: 51
Growth Rate: 34.23%
Updated:March 13 2026