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")# pip install -U transformers accelerate # 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
Commit History
-
Update README.md
Verified signature01b3a04
-
Update README_zh.md
0df19b6 -
Update README.md
3ed4cdc -
Upload BAAI-Aquila-70B-Model-License-Agreement.pdf.pdf
ae63aa9 -
Delete BAAI-Aquila-Model-License-Agreement.pdf
4578ec1
-
Upload predict.py with huggingface_hub
c9ddf70 -
Update config.json
bd2b1bd
-
Update README_zh.md
6eeaab0 -
Update README.md
0aecd41 -
Update predict.py
589784e -
Update README_zh.md
e6d0e2d -
Update README.md
d184334 -
Update config.json
72625e8 -
Update modeling_aquila.py
7cd14e1 -
Update README_zh.md
6f06033 -
Update README_zh.md
962e0fc -
Update README.md
c105074
-
Upload vocab.json with huggingface_hub
46d15f0 -
Upload tokenizer_config.json with huggingface_hub
ac1daaa -
Upload tokenizer.json with huggingface_hub
477d2aa -
Upload special_tokens_map.json with huggingface_hub
36be72d -
Upload pytorch_model.bin.index.json with huggingface_hub
6344542 -
Upload pytorch_model-00082-of-00082.bin with huggingface_hub
1bc2e43 -
Upload pytorch_model-00081-of-00082.bin with huggingface_hub
8a0b08a -
Upload pytorch_model-00080-of-00082.bin with huggingface_hub
52a79ee -
Upload pytorch_model-00079-of-00082.bin with huggingface_hub
a7fa144 -
Upload pytorch_model-00078-of-00082.bin with huggingface_hub
99f274d -
Upload pytorch_model-00077-of-00082.bin with huggingface_hub
0fe889a -
Upload pytorch_model-00076-of-00082.bin with huggingface_hub
64b02c5 -
Upload pytorch_model-00075-of-00082.bin with huggingface_hub
a61d114 -
Upload pytorch_model-00074-of-00082.bin with huggingface_hub
01ff08d -
Upload pytorch_model-00073-of-00082.bin with huggingface_hub
ca56790 -
Upload pytorch_model-00072-of-00082.bin with huggingface_hub
b1b9e57 -
Upload pytorch_model-00071-of-00082.bin with huggingface_hub
4853218 -
Upload pytorch_model-00070-of-00082.bin with huggingface_hub
77e9e8c -
Upload pytorch_model-00069-of-00082.bin with huggingface_hub
2f296bf -
Upload pytorch_model-00068-of-00082.bin with huggingface_hub
5e4341b -
Upload pytorch_model-00067-of-00082.bin with huggingface_hub
7e380f1 -
Upload pytorch_model-00066-of-00082.bin with huggingface_hub
f20a33e -
Upload pytorch_model-00065-of-00082.bin with huggingface_hub
2ff5349 -
Upload pytorch_model-00064-of-00082.bin with huggingface_hub
e77d8fc -
Upload pytorch_model-00063-of-00082.bin with huggingface_hub
a55c633 -
Upload pytorch_model-00062-of-00082.bin with huggingface_hub
f02208e -
Upload pytorch_model-00061-of-00082.bin with huggingface_hub
2a0652e -
Upload pytorch_model-00060-of-00082.bin with huggingface_hub
c8f42d2 -
Upload pytorch_model-00059-of-00082.bin with huggingface_hub
3969d5d -
Upload pytorch_model-00058-of-00082.bin with huggingface_hub
c572599 -
Upload pytorch_model-00057-of-00082.bin with huggingface_hub
19f128f -
Upload pytorch_model-00056-of-00082.bin with huggingface_hub
cef2207 -
Upload pytorch_model-00055-of-00082.bin with huggingface_hub
237e6f8