Instructions to use QuixiAI/DeepMixtral-8x7b-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuixiAI/DeepMixtral-8x7b-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuixiAI/DeepMixtral-8x7b-Instruct", 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("QuixiAI/DeepMixtral-8x7b-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use QuixiAI/DeepMixtral-8x7b-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuixiAI/DeepMixtral-8x7b-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuixiAI/DeepMixtral-8x7b-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuixiAI/DeepMixtral-8x7b-Instruct
- SGLang
How to use QuixiAI/DeepMixtral-8x7b-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 "QuixiAI/DeepMixtral-8x7b-Instruct" \ --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": "QuixiAI/DeepMixtral-8x7b-Instruct", "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 "QuixiAI/DeepMixtral-8x7b-Instruct" \ --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": "QuixiAI/DeepMixtral-8x7b-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use QuixiAI/DeepMixtral-8x7b-Instruct with Docker Model Runner:
docker model run hf.co/QuixiAI/DeepMixtral-8x7b-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<p align="center"> <img src="https://huggingface.co/
|
|
|
|
| 1 |
+
<p align="center"> <img src="https://cdn-lfs-us-1.huggingface.co/repos/58/11/5811c78d8fc8a7e29f637f442dc17b5fdc3ee97e6ce5e3ead6c9eaeed704e08f/d3361e486321ecfc3366f6e38d50272c5c547e5853346f7cbe35a9e0d1c159f4?response-content-disposition=inline%3B+filename*%3DUTF-8%27%27download.png%3B+filename%3D%22download.png%22%3B&response-content-type=image%2Fpng&Expires=1715147646&Policy=eyJTdGF0ZW1lbnQiOlt7IkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcxNTE0NzY0Nn19LCJSZXNvdXJjZSI6Imh0dHBzOi8vY2RuLWxmcy11cy0xLmh1Z2dpbmdmYWNlLmNvL3JlcG9zLzU4LzExLzU4MTFjNzhkOGZjOGE3ZTI5ZjYzN2Y0NDJkYzE3YjVmZGMzZWU5N2U2Y2U1ZTNlYWQ2YzllYWVlZDcwNGUwOGYvZDMzNjFlNDg2MzIxZWNmYzMzNjZmNmUzOGQ1MDI3MmM1YzU0N2U1ODUzMzQ2ZjdjYmUzNWE5ZTBkMWMxNTlmND9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPSomcmVzcG9uc2UtY29udGVudC10eXBlPSoifV19&Signature=mmUEo1q2soeQvw1ExdYdu8pnf3mPZkDBSg3HVHrSI-emS5cNHKuKf01UeQstFCOWXpji6K83fzNB-pSXNDg7E9xMZHSER15mvFF9uuZJoHzo%7Ebq4gxAlM1O%7E8OM-wfMYHEb02TMKv6VpQx-o5rltE%7EtR6UdiUyiNBlqu2su-ZGM0DEuA243geOnNbiamiF2Ct6nNsH7X950fXC7kOPPRCq0lSL5YmPftMr%7EHIcg9oT6LAlXtzeadMOnhXa4PlsOi5%7Ea4bi52LHNUrR2XY6QkS0lUHjN85b5f4u4NTNgSpMRiDnV0EFnZSYebHDuVUKjk2fcD1qv5soQgN1C1lvi3MA__&Key-Pair-Id=KCD77M1F0VK2B" width="auto" title="LlaMoE-Medium model image"> </p>
|