Instructions to use BAAI/Aquila2-70B-Expr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/Aquila2-70B-Expr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BAAI/Aquila2-70B-Expr")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BAAI/Aquila2-70B-Expr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BAAI/Aquila2-70B-Expr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BAAI/Aquila2-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/Aquila2-70B-Expr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BAAI/Aquila2-70B-Expr
- SGLang
How to use BAAI/Aquila2-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/Aquila2-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/Aquila2-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/Aquila2-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/Aquila2-70B-Expr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BAAI/Aquila2-70B-Expr with Docker Model Runner:
docker model run hf.co/BAAI/Aquila2-70B-Expr
Commit History
-
Update README.md
Verified signature00f2618
-
Update README.md
32a2897 -
Update README.md
ebeceb5 -
Update README_zh.md
04097de -
Update README.md
7111256 -
Upload BAAI-Aquila-70B-Model-License-Agreement.pdf.pdf
c6cf6ef -
Delete BAAI-Aquila-Model-License-Agreement.pdf
cf910a2
-
Upload predict.py with huggingface_hub
b086ee4 -
Update config.json
1e4d600 -
Update README_zh.md
b9d2f60 -
Update README.md
f891e7c
-
Update README_zh.md
d716c0f -
Update README.md
8feab60 -
Update README.md
a17fcaa -
Update config.json
4233a20 -
Update README.md
d6f591b -
Update README_zh.md
3cb8073 -
Update README.md
5fd4dea
-
Upload vocab.json with huggingface_hub
d11d77e -
Upload tokenizer_config.json with huggingface_hub
8e764bf -
Upload tokenizer.json with huggingface_hub
04e0a90 -
Upload special_tokens_map.json with huggingface_hub
cb12b7b -
Upload pytorch_model.bin.index.json with huggingface_hub
1f7942d -
Upload pytorch_model-00082-of-00082.bin with huggingface_hub
0212276 -
Upload pytorch_model-00081-of-00082.bin with huggingface_hub
f043328 -
Upload pytorch_model-00080-of-00082.bin with huggingface_hub
b8db8d8 -
Upload pytorch_model-00079-of-00082.bin with huggingface_hub
e84aa57 -
Upload pytorch_model-00078-of-00082.bin with huggingface_hub
9046d53 -
Upload pytorch_model-00077-of-00082.bin with huggingface_hub
c1a14d0 -
Upload pytorch_model-00076-of-00082.bin with huggingface_hub
30f1ffe -
Upload pytorch_model-00075-of-00082.bin with huggingface_hub
750895e -
Upload pytorch_model-00074-of-00082.bin with huggingface_hub
eff7cc3 -
Upload pytorch_model-00073-of-00082.bin with huggingface_hub
5d93895 -
Upload pytorch_model-00072-of-00082.bin with huggingface_hub
98bce8f -
Upload pytorch_model-00071-of-00082.bin with huggingface_hub
11dfbc6 -
Upload pytorch_model-00070-of-00082.bin with huggingface_hub
b000906 -
Upload pytorch_model-00069-of-00082.bin with huggingface_hub
2915deb -
Upload pytorch_model-00068-of-00082.bin with huggingface_hub
babff14 -
Upload pytorch_model-00067-of-00082.bin with huggingface_hub
a37a856 -
Upload pytorch_model-00066-of-00082.bin with huggingface_hub
9c381d7 -
Upload pytorch_model-00065-of-00082.bin with huggingface_hub
ea6cf16 -
Upload pytorch_model-00064-of-00082.bin with huggingface_hub
44299a1 -
Upload pytorch_model-00063-of-00082.bin with huggingface_hub
e108386 -
Upload pytorch_model-00062-of-00082.bin with huggingface_hub
087a713 -
Upload pytorch_model-00061-of-00082.bin with huggingface_hub
1c9adfc -
Upload pytorch_model-00060-of-00082.bin with huggingface_hub
e2bc318 -
Upload pytorch_model-00059-of-00082.bin with huggingface_hub
33ec71a -
Upload pytorch_model-00058-of-00082.bin with huggingface_hub
b89c6a6 -
Upload pytorch_model-00057-of-00082.bin with huggingface_hub
4a33e78 -
Upload pytorch_model-00056-of-00082.bin with huggingface_hub
09b5b5c