Text Generation
Transformers
Safetensors
English
Chinese
aquilamoe
Mixture of Experts
conversational
custom_code
Instructions to use BAAI/AquilaMoE-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/AquilaMoE-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BAAI/AquilaMoE-SFT", 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-SFT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BAAI/AquilaMoE-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BAAI/AquilaMoE-SFT" # 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-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BAAI/AquilaMoE-SFT
- SGLang
How to use BAAI/AquilaMoE-SFT 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-SFT" \ --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-SFT", "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-SFT" \ --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-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BAAI/AquilaMoE-SFT with Docker Model Runner:
docker model run hf.co/BAAI/AquilaMoE-SFT
Commit History
-
Update README.md
Verified signature564e1e9 -
Update README.md
Verified signature693bffd
-
Update README.md
Verified signatureefc015f -
Update README.md
Verified signaturea36fb03
-
Upload 2 files
Verified signature1aadb92
-
Upload model-00034-of-00043.safetensors with huggingface_hub
Verified signatureb94fbb8 -
Upload model-00020-of-00043.safetensors with huggingface_hub
Verified signature95abb86 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature4fc9d0a -
Upload model-00043-of-00043.safetensors with huggingface_hub
Verified signaturefea0511 -
Upload model-00042-of-00043.safetensors with huggingface_hub
Verified signaturea2c1641 -
Upload model-00041-of-00043.safetensors with huggingface_hub
Verified signature9e28129 -
Upload model-00040-of-00043.safetensors with huggingface_hub
Verified signature775ea52 -
Upload model-00039-of-00043.safetensors with huggingface_hub
Verified signature4ff902f -
Upload model-00038-of-00043.safetensors with huggingface_hub
Verified signature876e37d -
Upload model-00037-of-00043.safetensors with huggingface_hub
Verified signaturec6e0507 -
Upload model-00036-of-00043.safetensors with huggingface_hub
Verified signature5a20556 -
Upload model-00035-of-00043.safetensors with huggingface_hub
Verified signature3df3221 -
Upload model-00033-of-00043.safetensors with huggingface_hub
Verified signature373abcc -
Upload model-00032-of-00043.safetensors with huggingface_hub
Verified signatureff28f5d -
Upload model-00031-of-00043.safetensors with huggingface_hub
Verified signature04e8a22 -
Upload model-00030-of-00043.safetensors with huggingface_hub
Verified signaturea3e5a5f -
Upload model-00029-of-00043.safetensors with huggingface_hub
Verified signature06934a2 -
Upload model-00028-of-00043.safetensors with huggingface_hub
Verified signature2b310fc -
Upload model-00027-of-00043.safetensors with huggingface_hub
Verified signature5992fbc -
Upload model-00026-of-00043.safetensors with huggingface_hub
Verified signatureb4066ed -
Upload model-00025-of-00043.safetensors with huggingface_hub
Verified signaturebf9cddc -
Upload model-00024-of-00043.safetensors with huggingface_hub
Verified signaturea54b1be -
Upload model-00023-of-00043.safetensors with huggingface_hub
Verified signature3c1ecb1 -
Upload model-00022-of-00043.safetensors with huggingface_hub
Verified signature48bf6fe -
Upload model-00021-of-00043.safetensors with huggingface_hub
Verified signature73eaeb6 -
Upload model-00019-of-00043.safetensors with huggingface_hub
Verified signature5d60495 -
Upload model-00018-of-00043.safetensors with huggingface_hub
Verified signaturedb778bf -
Upload model-00017-of-00043.safetensors with huggingface_hub
Verified signaturec0db319 -
Upload model-00016-of-00043.safetensors with huggingface_hub
Verified signature802bbf4 -
Upload model-00015-of-00043.safetensors with huggingface_hub
Verified signatured2cbd0e -
Upload model-00014-of-00043.safetensors with huggingface_hub
Verified signature0cb7570 -
Upload model-00013-of-00043.safetensors with huggingface_hub
Verified signature1e69ac3 -
Upload model-00012-of-00043.safetensors with huggingface_hub
Verified signature2c0576e -
Upload model-00011-of-00043.safetensors with huggingface_hub
Verified signaturea0d8c20 -
Upload model-00010-of-00043.safetensors with huggingface_hub
Verified signaturee4a3707 -
Upload model-00009-of-00043.safetensors with huggingface_hub
Verified signature46c53b5 -
Upload model-00008-of-00043.safetensors with huggingface_hub
Verified signature90ca560 -
Upload model-00007-of-00043.safetensors with huggingface_hub
Verified signature19b45b3 -
Upload model-00006-of-00043.safetensors with huggingface_hub
Verified signature3922e4b -
Upload model-00005-of-00043.safetensors with huggingface_hub
Verified signature9c1f391 -
Upload model-00004-of-00043.safetensors with huggingface_hub
Verified signature2185efd -
Upload model-00003-of-00043.safetensors with huggingface_hub
Verified signaturec96a020 -
Update README.md
Verified signatured3c46ac -
Upload model-00002-of-00043.safetensors with huggingface_hub
Verified signature398c0f3 -
Upload model-00001-of-00043.safetensors with huggingface_hub
Verified signaturefd6a3cd