Instructions to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ikawrakow/mixtral-instruct-8x7b-quantized-gguf", filename="mixtral-instruct-8x7b-iq3-xxs.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf # Run inference directly in the terminal: llama-cli -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf # Run inference directly in the terminal: llama-cli -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf # Run inference directly in the terminal: ./llama-cli -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf ikawrakow/mixtral-instruct-8x7b-quantized-gguf
Use Docker
docker model run hf.co/ikawrakow/mixtral-instruct-8x7b-quantized-gguf
- LM Studio
- Jan
- Ollama
How to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with Ollama:
ollama run hf.co/ikawrakow/mixtral-instruct-8x7b-quantized-gguf
- Unsloth Studio new
How to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ikawrakow/mixtral-instruct-8x7b-quantized-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ikawrakow/mixtral-instruct-8x7b-quantized-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ikawrakow/mixtral-instruct-8x7b-quantized-gguf to start chatting
- Docker Model Runner
How to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with Docker Model Runner:
docker model run hf.co/ikawrakow/mixtral-instruct-8x7b-quantized-gguf
- Lemonade
How to use ikawrakow/mixtral-instruct-8x7b-quantized-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ikawrakow/mixtral-instruct-8x7b-quantized-gguf
Run and chat with the model
lemonade run user.mixtral-instruct-8x7b-quantized-gguf-{{QUANT_TAG}}List all available models
lemonade list
This repository contains alternative Mixtral-instruct-8x7B (https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1) quantized models in GGUF format for use with llama.cpp.
The models are fully compatible with the oficial llama.cpp release and can be used out-of-the-box.
I'm carefull to say "alternative" rather than "better" or "improved" as I have not put any effort into evaluating performance
differences in actual usage. Perplexity is lower compared to the "official" llama.cpp quantization, but perplexity is not
necessarily a good measure for real world performance. Nevertheless, perplexity does measure quantization error, so below is a table
comparing perplexities of these quantized models to the current llama.cpp quantization approach on Wikitext for a context length of 512 tokens.
The "Quantization Error" columns in the table are defined as (PPL(quantized model) - PPL(fp16))/PPL(fp16).
| Quantization | Model file | PPL(llama.cpp) | Quantization Error | PPL(new quants) | Quantization Error |
|---|---|---|---|---|---|
| Q2_K | mixtral-instruct-8x7b-q2k.gguf | 6.8953 | 56.4% | 5.2679 | 19.5% |
| Q3_K_S | mixtral-instruct-8x7b-q3k-small.gguf | 4.7038 | 6.68% | 4.6401 | 5.24% |
| Q3_K_M | mixtral-instruct-8x7b-q3k-medium.gguf | 4.6663 | 5.83% | 4.5608 | 3.44% |
| Q4_K_S | mixtral-instruct-8x7b-q4k-small.gguf | 4.5105 | 2.30% | 4.4630 | 1.22% |
| Q4_K_M | mixtral-instruct-8x7b-q4k-medium.gguf | 4.5105 | 2.30% | 4.4568 | 1.08% |
| Q5_K_S | mixtral-instruct-8x7b-q5k-small.gguf | 4.4402 | 0.71% | 4.4277 | 0.42% |
| Q4_0 | mixtral-instruct-8x7b-q40.gguf | 4.5102 | 2.29% | 4.4908 | 1.85% |
| Q4_1 | mixtral-instruct-8x7b-q41.gguf | 4.5415 | 3.00% | 4.4612 | 1.18% |
| Q5_0 | mixtral-instruct-8x7b-q50.gguf | 4.4361 | 0.61% | 4.4297 | 0.47% |
- Downloads last month
- 140
We're not able to determine the quantization variants.