Instructions to use vicky4s4s/Mixtral-instruct-56B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vicky4s4s/Mixtral-instruct-56B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vicky4s4s/Mixtral-instruct-56B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("vicky4s4s/Mixtral-instruct-56B") model = AutoModelForCausalLM.from_pretrained("vicky4s4s/Mixtral-instruct-56B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vicky4s4s/Mixtral-instruct-56B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vicky4s4s/Mixtral-instruct-56B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vicky4s4s/Mixtral-instruct-56B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vicky4s4s/Mixtral-instruct-56B
- SGLang
How to use vicky4s4s/Mixtral-instruct-56B 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 "vicky4s4s/Mixtral-instruct-56B" \ --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": "vicky4s4s/Mixtral-instruct-56B", "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 "vicky4s4s/Mixtral-instruct-56B" \ --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": "vicky4s4s/Mixtral-instruct-56B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use vicky4s4s/Mixtral-instruct-56B with Docker Model Runner:
docker model run hf.co/vicky4s4s/Mixtral-instruct-56B
Commit History
-
Update README.md
Verified signaturec5ccdb6
-
Upload model-00019-of-00019.safetensors with huggingface_hub
Verified signature5470547 -
Upload model-00018-of-00019.safetensors with huggingface_hub
Verified signature420e332 -
Update README.md
Verified signatured96e7cf -
Upload model-00017-of-00019.safetensors with huggingface_hub
Verified signature15ea521
-
Upload model-00016-of-00019.safetensors with huggingface_hub
Verified signature7db293a -
Upload model-00015-of-00019.safetensors with huggingface_hub
Verified signature8815b04 -
Upload model-00014-of-00019.safetensors with huggingface_hub
Verified signatureb53424b -
Upload model-00013-of-00019.safetensors with huggingface_hub
Verified signatureb80c6d4 -
Upload model-00012-of-00019.safetensors with huggingface_hub
Verified signature46760ae -
Upload model-00011-of-00019.safetensors with huggingface_hub
Verified signature9e271b4 -
Upload model-00009-of-00019.safetensors with huggingface_hub
Verified signature7777846 -
Upload model-00010-of-00019.safetensors with huggingface_hub
Verified signature35193c5 -
Upload model-00009-of-00019.safetensors with huggingface_hub
Verified signature5972654 -
Upload model-00009-of-00019.safetensors with huggingface_hub
Verified signature0524684 -
Upload model-00008-of-00019.safetensors with huggingface_hub
Verified signaturee389dac -
Upload model-00007-of-00019.safetensors with huggingface_hub
Verified signature70fceda
-
Upload model-00006-of-00019.safetensors with huggingface_hub
Verified signature58084d9 -
Upload model-00005-of-00019.safetensors with huggingface_hub
Verified signature10bc564 -
Upload model-00004-of-00019.safetensors with huggingface_hub
Verified signatureb4dabce -
Upload model-00003-of-00019.safetensors with huggingface_hub
Verified signature600dea1 -
Update transformers_inference_example.py
Verified signature221aaf5 -
Upload transformers_inference_example.py
Verified signature9da167a -
Upload model-00002-of-00019.safetensors with huggingface_hub
Verified signature30d49e3 -
Upload model-00001-of-00019.safetensors with huggingface_hub
Verified signature6d35c9d -
Update README.md
Verified signature624079a -
Update README.md
Verified signatureeecd5f1 -
Update README.md
Verified signatureb8139c9 -
Update README.md
Verified signaturec272d21 -
Create README.md
Verified signature347fcc5 -
Upload 7 files
Verified signature7ff0299 -
initial commit
Verified signature19fd66e