Text Generation
Transformers
Safetensors
Chinese
English
mixtral
Mixture of Experts
text-generation-inference
Instructions to use hfl/chinese-mixtral-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hfl/chinese-mixtral-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hfl/chinese-mixtral-instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hfl/chinese-mixtral-instruct") model = AutoModelForCausalLM.from_pretrained("hfl/chinese-mixtral-instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hfl/chinese-mixtral-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hfl/chinese-mixtral-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hfl/chinese-mixtral-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hfl/chinese-mixtral-instruct
- SGLang
How to use hfl/chinese-mixtral-instruct 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 "hfl/chinese-mixtral-instruct" \ --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": "hfl/chinese-mixtral-instruct", "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 "hfl/chinese-mixtral-instruct" \ --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": "hfl/chinese-mixtral-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hfl/chinese-mixtral-instruct with Docker Model Runner:
docker model run hf.co/hfl/chinese-mixtral-instruct
Commit History
-
Update README.md
Verified signatureb171ea0
-
Update README.md
Verified signature219c9d6
-
Update README.md
Verified signature5f5a6ce
-
Update README.md
Verified signaturec7971dc -
Upload model-00019-of-00019.safetensors with huggingface_hub
Verified signaturea30f38f -
Upload model-00018-of-00019.safetensors with huggingface_hub
Verified signatureb8a7ec5 -
Upload model-00017-of-00019.safetensors with huggingface_hub
Verified signature52823ef -
Upload model-00016-of-00019.safetensors with huggingface_hub
Verified signaturedc16141 -
Upload model-00015-of-00019.safetensors with huggingface_hub
Verified signature3d83da6 -
Upload model-00014-of-00019.safetensors with huggingface_hub
Verified signaturee96fb10 -
Upload model-00013-of-00019.safetensors with huggingface_hub
Verified signature0cee289 -
Upload model-00012-of-00019.safetensors with huggingface_hub
Verified signature983b294 -
Upload model-00011-of-00019.safetensors with huggingface_hub
Verified signature46807bf -
Upload model-00010-of-00019.safetensors with huggingface_hub
Verified signaturefa36525 -
Upload model-00009-of-00019.safetensors with huggingface_hub
Verified signature638a5bc -
Upload model-00008-of-00019.safetensors with huggingface_hub
Verified signaturece6c750 -
Upload model-00007-of-00019.safetensors with huggingface_hub
Verified signaturecf648d6 -
Upload model-00006-of-00019.safetensors with huggingface_hub
Verified signaturea842ef2 -
Upload model-00005-of-00019.safetensors with huggingface_hub
Verified signature1208146 -
Upload model-00004-of-00019.safetensors with huggingface_hub
Verified signaturef6d1245 -
Upload model-00003-of-00019.safetensors with huggingface_hub
Verified signature4ecac16 -
Update README.md
Verified signature003db07 -
Upload model-00002-of-00019.safetensors with huggingface_hub
Verified signature8748cdf -
Upload model-00001-of-00019.safetensors with huggingface_hub
Verified signature103de5a -
Update README.md
Verified signaturec52f0fe -
Update README.md
Verified signaturedb9d0e2 -
Upload 6 files
Verified signature0b21bb9
-
Update README.md
Verified signaturef9cf069
-
Update README.md
Verified signaturefe20cc8 -
Update README.md
Verified signature7df865c -
initial commit
Verified signature23ef1d2