Text Generation
Transformers
Safetensors
English
Chinese
aquilamoe
Mixture of Experts
conversational
custom_code
Instructions to use BAAI/AquilaMoE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AquilaMoE with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BAAI/AquilaMoE", 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/AquilaMoE", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BAAI/AquilaMoE with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BAAI/AquilaMoE" # 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/AquilaMoE", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BAAI/AquilaMoE
- SGLang
How to use BAAI/AquilaMoE 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/AquilaMoE" \ --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/AquilaMoE", "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/AquilaMoE" \ --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/AquilaMoE", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BAAI/AquilaMoE with Docker Model Runner:
docker model run hf.co/BAAI/AquilaMoE
Commit History
-
Update README.md
Verified signature1588401
-
Update README.md
Verified signatureaee0091
-
Upload 2 files
Verified signatured28630e
-
Update README.md
Verified signature8298da2
-
Update tokenizer_config.json
Verified signature1b9b2ce -
Update modeling_aquilamoe.py
Verified signature09b2038 -
Update configuration_aquilamoe.py
Verified signature751176a
-
Update modeling_aquilamoe.py
Verified signature99c576b -
Update configuration_aquilamoe.py
Verified signature813c71b -
Upload model-00030-of-00043.safetensors with huggingface_hub
Verified signatureb8d1abd -
Update modeling_aquilamoe.py
Verified signature97bc553 -
Update configuration_aquilamoe.py
Verified signature7c80ad4 -
Update config.json
Verified signatureb309c82 -
Update configuration_aquilamoe.py
Verified signature5542af7 -
Update config.json
Verified signature089e36a -
Upload 4 files
Verified signature9546ef2 -
Create README.md
Verified signature34b5692 -
Upload generation_utils.py
Verified signature550db20 -
add config
Verified signatureb28e08b -
Delete tokenization_qwen.py
Verified signaturecfa8206 -
Delete tokenizer_config.json
Verified signaturec7bd7e3 -
Rename qwen.tiktoken to tokenizer.tiktoken
Verified signature040fb01 -
Delete config.json
Verified signature8cd9bfb -
Delete configuration_mixtral.py
Verified signatureb876185 -
Delete modeling_mixtral.py
Verified signaturee2c2f6f -
Delete qwen_generation_utils.py
Verified signaturee2d9c3f -
Delete AquilaMoE/model-00030-of-00043.safetensors
Verified signature452fb36 -
Upload AquilaMoE/model-00030-of-00043.safetensors with huggingface_hub
Verified signaturede0c754 -
Upload tokenizer_config.json with huggingface_hub
Verified signature27e1590 -
Upload tokenization_qwen.py with huggingface_hub
Verified signaturef563b8a -
Upload special_tokens_map.json with huggingface_hub
Verified signaturecc53815 -
Upload qwen_generation_utils.py with huggingface_hub
Verified signature5a72169 -
Upload qwen.tiktoken with huggingface_hub
Verified signatured8a29ed -
Upload modeling_mixtral.py with huggingface_hub
Verified signatureea5c121 -
Upload model.safetensors.index.json with huggingface_hub
Verified signatureedb34ca -
Upload model-00043-of-00043.safetensors with huggingface_hub
Verified signature4da3e8b -
Upload model-00042-of-00043.safetensors with huggingface_hub
Verified signature47256d5 -
Upload model-00041-of-00043.safetensors with huggingface_hub
Verified signature2752940 -
Upload model-00040-of-00043.safetensors with huggingface_hub
Verified signaturef2b9024 -
Upload model-00039-of-00043.safetensors with huggingface_hub
Verified signaturebe4838b -
Upload model-00038-of-00043.safetensors with huggingface_hub
Verified signatureca75f60 -
Upload model-00037-of-00043.safetensors with huggingface_hub
Verified signature5dd47a4 -
Upload model-00036-of-00043.safetensors with huggingface_hub
Verified signaturef56f246 -
Upload model-00035-of-00043.safetensors with huggingface_hub
Verified signature12374b9 -
Upload model-00034-of-00043.safetensors with huggingface_hub
Verified signature392e039 -
Upload model-00033-of-00043.safetensors with huggingface_hub
Verified signatureb88e5da -
Upload model-00032-of-00043.safetensors with huggingface_hub
Verified signature1a7cf7c -
Upload model-00031-of-00043.safetensors with huggingface_hub
Verified signature829a3c5 -
Upload model-00029-of-00043.safetensors with huggingface_hub
Verified signatureb95ea25 -
Upload model-00028-of-00043.safetensors with huggingface_hub
Verified signaturea08be0d