Text Generation
Transformers
PyTorch
English
Chinese
aquiladense
Mixture of Experts
conversational
custom_code
Instructions to use BAAI/AquilaDense-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AquilaDense-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BAAI/AquilaDense-7B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BAAI/AquilaDense-7B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BAAI/AquilaDense-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BAAI/AquilaDense-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BAAI/AquilaDense-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BAAI/AquilaDense-7B
- SGLang
How to use BAAI/AquilaDense-7B 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/AquilaDense-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BAAI/AquilaDense-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/AquilaDense-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BAAI/AquilaDense-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BAAI/AquilaDense-7B with Docker Model Runner:
docker model run hf.co/BAAI/AquilaDense-7B
Commit History
-
Update README.md
Verified signaturebbd91b0
-
Upload 2 files
Verified signaturef4ca900
-
Update config.json
Verified signaturef66731c
-
Upload assets/wechat-qrcode.jpg with huggingface_hub
Verified signature4a9e3d2 -
Upload assets/6eea11dd-4554-44ca-9459-f5e0177b510b.png with huggingface_hub
Verified signature7cc70d2 -
Upload assets/4d716d22-98b1-4f15-a40e-f16070cf76fa.png with huggingface_hub
Verified signature7b03d13 -
Upload assets/1280X1280.PNG with huggingface_hub
Verified signature079fd4c -
Upload tokenizer_config.json with huggingface_hub
Verified signature095eb32 -
Upload tokenizer.tiktoken with huggingface_hub
Verified signaturea60fdd5 -
Upload tokenization.py with huggingface_hub
Verified signature969b9c7 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturea263231 -
Upload pytorch_model.bin.index.json with huggingface_hub
Verified signaturee7170f1 -
Upload pytorch_model-00009-of-00009.bin with huggingface_hub
Verified signature47576f3 -
Upload pytorch_model-00008-of-00009.bin with huggingface_hub
Verified signature81fd6d9 -
Upload pytorch_model-00007-of-00009.bin with huggingface_hub
Verified signature812384f -
Upload pytorch_model-00006-of-00009.bin with huggingface_hub
Verified signature13e9892 -
Upload pytorch_model-00005-of-00009.bin with huggingface_hub
Verified signature3db16a3 -
Upload pytorch_model-00004-of-00009.bin with huggingface_hub
Verified signature722a6dc -
Upload pytorch_model-00003-of-00009.bin with huggingface_hub
Verified signature140f01c -
Upload pytorch_model-00002-of-00009.bin with huggingface_hub
Verified signature28d7e8e -
Upload pytorch_model-00001-of-00009.bin with huggingface_hub
Verified signature4081259 -
Upload modeling_aquiladense.py with huggingface_hub
Verified signature4f116a3 -
Upload generation_config.json with huggingface_hub
Verified signature05bd437 -
Upload configuration_aquiladense.py with huggingface_hub
Verified signature8163d0d -
Upload config.json with huggingface_hub
Verified signatureb1a194e -
Upload README.md with huggingface_hub
Verified signature6730ca2 -
Upload README.md with huggingface_hub
Verified signature96f06f3 -
initial commit
Verified signature3198c9d