Instructions to use BAAI/AquilaChat2-34B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AquilaChat2-34B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BAAI/AquilaChat2-34B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BAAI/AquilaChat2-34B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BAAI/AquilaChat2-34B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BAAI/AquilaChat2-34B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BAAI/AquilaChat2-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BAAI/AquilaChat2-34B
- SGLang
How to use BAAI/AquilaChat2-34B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "BAAI/AquilaChat2-34B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BAAI/AquilaChat2-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "BAAI/AquilaChat2-34B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BAAI/AquilaChat2-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BAAI/AquilaChat2-34B with Docker Model Runner:
docker model run hf.co/BAAI/AquilaChat2-34B
Commit ·
bebf30b
1
Parent(s): 1cce454
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,8 +19,8 @@ We opensource our **Aquila2** series, now including **Aquila2**, the base langua
|
|
| 19 |
The additional details of the Aquila model will be presented in the official technical report. Please stay tuned for updates on official channels.
|
| 20 |
|
| 21 |
|
| 22 |
-
2023.10.25 🔥 Version 1.2 of
|
| 23 |
-
|
| 24 |
|
| 25 |
## Quick Start AquilaChat2-34B(Chat model)
|
| 26 |
|
|
|
|
| 19 |
The additional details of the Aquila model will be presented in the official technical report. Please stay tuned for updates on official channels.
|
| 20 |
|
| 21 |
|
| 22 |
+
2023.10.25 🔥 Version 1.2 of AquilaChat2-34B models have been updated on [ModelHub](https://model.baai.ac.cn/model-detail/100116) and Hugging Face.
|
| 23 |
+
The AquilaChat2-34B model is close to or exceeds the level of GPT3.5 in the subjective evaluation of 8 secondary ability dimensions.
|
| 24 |
|
| 25 |
## Quick Start AquilaChat2-34B(Chat model)
|
| 26 |
|