Instructions to use BAAI/AquilaChat2-70B-Expr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AquilaChat2-70B-Expr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BAAI/AquilaChat2-70B-Expr")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BAAI/AquilaChat2-70B-Expr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BAAI/AquilaChat2-70B-Expr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BAAI/AquilaChat2-70B-Expr" # 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-70B-Expr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BAAI/AquilaChat2-70B-Expr
- SGLang
How to use BAAI/AquilaChat2-70B-Expr 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-70B-Expr" \ --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-70B-Expr", "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-70B-Expr" \ --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-70B-Expr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BAAI/AquilaChat2-70B-Expr with Docker Model Runner:
docker model run hf.co/BAAI/AquilaChat2-70B-Expr
Update README_zh.md
Browse files- README_zh.md +3 -3
README_zh.md
CHANGED
|
@@ -8,14 +8,14 @@ license: other
|
|
| 8 |
|
| 9 |
<h4 align="center">
|
| 10 |
<p>
|
| 11 |
-
<a href="https://huggingface.co/BAAI/AquilaChat2-70B/blob/main/README.md">English</a>
|
| 12 |
<b>简体中文</b> |
|
| 13 |
</p>
|
| 14 |
</h4>
|
| 15 |
|
| 16 |
# 悟道·天鹰(Aquila2)
|
| 17 |
|
| 18 |
-
我们开源了我们的 **Aquila2** 系列,现在包括基础语言模型 **Aquila2-7B**,**Aquila2-34B** 和 **Aquila2-70B** ,对话模型 **AquilaChat2-7B**,**AquilaChat2-34B** 和**AquilaChat2-70B** ,长文本对话模型**AquilaChat2-7B-16k** 和 **AquilaChat2-34B-16k**
|
| 19 |
|
| 20 |
悟道 · 天鹰 Aquila 模型的更多细节将在官方技术报告中呈现。请关注官方渠道更新。
|
| 21 |
|
|
@@ -45,4 +45,4 @@ print(out)
|
|
| 45 |
|
| 46 |
## 证书/License
|
| 47 |
|
| 48 |
-
Aquila2系列开源模型使用 [智源Aquila系列模型许可协议](https://huggingface.co/BAAI/AquilaChat2-70B/blob/main/BAAI-Aquila-Model-License-Agreement.pdf)
|
|
|
|
| 8 |
|
| 9 |
<h4 align="center">
|
| 10 |
<p>
|
| 11 |
+
<a href="https://huggingface.co/BAAI/AquilaChat2-70B-Expr/blob/main/README.md">English</a>
|
| 12 |
<b>简体中文</b> |
|
| 13 |
</p>
|
| 14 |
</h4>
|
| 15 |
|
| 16 |
# 悟道·天鹰(Aquila2)
|
| 17 |
|
| 18 |
+
我们开源了我们的 **Aquila2** 系列,现在包括基础语言模型 **Aquila2-7B**,**Aquila2-34B** 和 **Aquila2-70B-Expr** ,对话模型 **AquilaChat2-7B**,**AquilaChat2-34B** 和**AquilaChat2-70B-Expr** ,长文本对话模型**AquilaChat2-7B-16k** 和 **AquilaChat2-34B-16k**
|
| 19 |
|
| 20 |
悟道 · 天鹰 Aquila 模型的更多细节将在官方技术报告中呈现。请关注官方渠道更新。
|
| 21 |
|
|
|
|
| 45 |
|
| 46 |
## 证书/License
|
| 47 |
|
| 48 |
+
Aquila2系列开源模型使用 [智源Aquila系列模型许可协议](https://huggingface.co/BAAI/AquilaChat2-70B-Expr/blob/main/BAAI-Aquila-Model-License-Agreement.pdf)
|