BAAI / Aquila2-7B

huggingface.co
Total runs: 747
24-hour runs: -44
7-day runs: -136
30-day runs: 53
Model's Last Updated: June 07 2024
text-generation

Introduction of Aquila2-7B

Model Details of Aquila2-7B

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-7B , 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-7B
1. Inference

Aquila2-7B 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-7B'

# 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-7B on huggingface.co

747
Total runs
-44
24-hour runs
-106
3-day runs
-136
7-day runs
53
30-day runs

More Information About Aquila2-7B huggingface.co Model

More Aquila2-7B license Visit here:

https://choosealicense.com/licenses/other

Aquila2-7B huggingface.co

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

Aquila2-7B huggingface.co Url

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

BAAI Aquila2-7B online free

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

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

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

Aquila2-7B install

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

Aquila2-7B install url in huggingface.co:

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

Url of Aquila2-7B

Aquila2-7B huggingface.co Url

Provider of Aquila2-7B huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 6.0M
Run Growth: 852.8K
Growth Rate: 14.30%
Updated: February 22 2024
huggingface.co

Total runs: 2.2M
Run Growth: -2.2M
Growth Rate: -99.23%
Updated: February 21 2024
huggingface.co

Total runs: 2.1M
Run Growth: -121.3K
Growth Rate: -5.70%
Updated: July 03 2024
huggingface.co

Total runs: 1.6M
Run Growth: -447.1K
Growth Rate: -27.49%
Updated: February 21 2024
huggingface.co

Total runs: 781.8K
Run Growth: 111.7K
Growth Rate: 14.29%
Updated: December 13 2023
huggingface.co

Total runs: 449.9K
Run Growth: 21.0K
Growth Rate: 4.66%
Updated: October 12 2023
huggingface.co

Total runs: 192.5K
Run Growth: 15.1K
Growth Rate: 7.83%
Updated: November 14 2023
huggingface.co

Total runs: 137.3K
Run Growth: 61.6K
Growth Rate: 44.88%
Updated: October 12 2023
huggingface.co

Total runs: 52.6K
Run Growth: -21.1K
Growth Rate: -40.18%
Updated: April 17 2024
huggingface.co

Total runs: 33.5K
Run Growth: 32.0K
Growth Rate: 95.64%
Updated: October 12 2023
huggingface.co

Total runs: 28.0K
Run Growth: 10.7K
Growth Rate: 38.01%
Updated: October 12 2023
huggingface.co

Total runs: 24.9K
Run Growth: -2.1K
Growth Rate: -8.35%
Updated: October 12 2023
huggingface.co

Total runs: 20.5K
Run Growth: -9.0K
Growth Rate: -44.04%
Updated: January 15 2025
huggingface.co

Total runs: 5.6K
Run Growth: 741
Growth Rate: 13.18%
Updated: December 26 2022
huggingface.co

Total runs: 5.0K
Run Growth: 945
Growth Rate: 18.84%
Updated: September 21 2023
huggingface.co

Total runs: 4.9K
Run Growth: 116
Growth Rate: 2.34%
Updated: August 15 2024
huggingface.co

Total runs: 4.5K
Run Growth: -8.6K
Growth Rate: -193.53%
Updated: February 22 2024
huggingface.co

Total runs: 2.7K
Run Growth: -434
Growth Rate: -16.02%
Updated: October 12 2023
huggingface.co

Total runs: 2.5K
Run Growth: 1.7K
Growth Rate: 67.84%
Updated: September 18 2023
huggingface.co

Total runs: 2.5K
Run Growth: 752
Growth Rate: 30.03%
Updated: August 15 2024
huggingface.co

Total runs: 2.4K
Run Growth: -11.8K
Growth Rate: -272.27%
Updated: October 23 2024
huggingface.co

Total runs: 2.3K
Run Growth: 576
Growth Rate: 24.56%
Updated: February 07 2024
huggingface.co

Total runs: 1.9K
Run Growth: -401
Growth Rate: -21.46%
Updated: November 28 2024
huggingface.co

Total runs: 1.5K
Run Growth: -3.5K
Growth Rate: -136.57%
Updated: October 23 2024
huggingface.co

Total runs: 1.3K
Run Growth: -3.0K
Growth Rate: -174.67%
Updated: October 24 2024
huggingface.co

Total runs: 771
Run Growth: 315
Growth Rate: 49.45%
Updated: April 02 2024
huggingface.co

Total runs: 732
Run Growth: -9.0K
Growth Rate: -1226.09%
Updated: March 07 2024
huggingface.co

Total runs: 615
Run Growth: 86
Growth Rate: 13.98%
Updated: October 27 2023
huggingface.co

Total runs: 558
Run Growth: 0
Growth Rate: 0.00%
Updated: January 15 2025
huggingface.co

Total runs: 439
Run Growth: 0
Growth Rate: 0.00%
Updated: January 14 2025
huggingface.co

Total runs: 301
Run Growth: 294
Growth Rate: 97.67%
Updated: April 18 2023
huggingface.co

Total runs: 146
Run Growth: -241
Growth Rate: -165.07%
Updated: August 15 2024
huggingface.co

Total runs: 114
Run Growth: 0
Growth Rate: 0.00%
Updated: January 20 2025
huggingface.co

Total runs: 96
Run Growth: -6
Growth Rate: -6.25%
Updated: December 21 2023
huggingface.co

Total runs: 96
Run Growth: 49
Growth Rate: 51.04%
Updated: August 23 2023
huggingface.co

Total runs: 84
Run Growth: 42
Growth Rate: 50.00%
Updated: August 15 2024
huggingface.co

Total runs: 65
Run Growth: 0
Growth Rate: 0.00%
Updated: January 01 2025
huggingface.co

Total runs: 64
Run Growth: -245
Growth Rate: -382.81%
Updated: June 21 2024
huggingface.co

Total runs: 59
Run Growth: 8
Growth Rate: 13.56%
Updated: August 23 2023
huggingface.co

Total runs: 52
Run Growth: -260
Growth Rate: -500.00%
Updated: June 24 2024
huggingface.co

Total runs: 47
Run Growth: -16
Growth Rate: -34.04%
Updated: October 27 2023
huggingface.co

Total runs: 46
Run Growth: -59
Growth Rate: -128.26%
Updated: December 21 2023
huggingface.co

Total runs: 46
Run Growth: -155
Growth Rate: -336.96%
Updated: April 19 2024
huggingface.co

Total runs: 39
Run Growth: -12
Growth Rate: -30.77%
Updated: August 15 2024
huggingface.co

Total runs: 37
Run Growth: 4
Growth Rate: 10.81%
Updated: August 28 2024
huggingface.co

Total runs: 36
Run Growth: -10.2K
Growth Rate: -28375.00%
Updated: February 07 2024
huggingface.co

Total runs: 34
Run Growth: -272
Growth Rate: -800.00%
Updated: June 24 2024
huggingface.co

Total runs: 26
Run Growth: 11
Growth Rate: 42.31%
Updated: July 24 2023
huggingface.co

Total runs: 21
Run Growth: -56
Growth Rate: -266.67%
Updated: December 31 2022
huggingface.co

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

Total runs: 17
Run Growth: -23
Growth Rate: -135.29%
Updated: July 02 2024
huggingface.co

Total runs: 15
Run Growth: -20
Growth Rate: -133.33%
Updated: December 25 2023