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
Download model-00009-of-00019.safetensors from hfl/chinese-mixtral-instruct: direct link, hf CLI and curl.
- Browser
- Download file 4.98 GB
-
https://huggingface.co/hfl/chinese-mixtral-instruct/resolve/b171ea0106aa74ae0f8e9d1ba1bf69f3954fbcc3/model-00009-of-00019.safetensors
- Command line
-
hf download hf://hfl/chinese-mixtral-instruct@b171ea0106aa74ae0f8e9d1ba1bf69f3954fbcc3/model-00009-of-00019.safetensors
-
curl -L -o model-00009-of-00019.safetensors https://huggingface.co/hfl/chinese-mixtral-instruct/resolve/b171ea0106aa74ae0f8e9d1ba1bf69f3954fbcc3/model-00009-of-00019.safetensors
4.98 GB
- Xet hash:
- 013fee593923e989ebd343940a07efcebd45b1e95be84db652ba1a6ff09bbb35
- Size of remote file:
- 4.98 GB
- SHA256:
- 76c061a7e51e3774d197bef9c23eb0e32904a3dc6971fd6a0e523ba1c6e72a31
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.