Instructions to use ikawrakow/mixtral-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-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-8x7b-quantized-gguf", filename="mixtral-8x7b-iq3-xxs.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ikawrakow/mixtral-8x7b-quantized-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ikawrakow/mixtral-8x7b-quantized-gguf # Run inference directly in the terminal: llama cli -hf ikawrakow/mixtral-8x7b-quantized-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ikawrakow/mixtral-8x7b-quantized-gguf # Run inference directly in the terminal: llama cli -hf ikawrakow/mixtral-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-8x7b-quantized-gguf # Run inference directly in the terminal: ./llama-cli -hf ikawrakow/mixtral-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-8x7b-quantized-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf ikawrakow/mixtral-8x7b-quantized-gguf
Use Docker
docker model run hf.co/ikawrakow/mixtral-8x7b-quantized-gguf
- LM Studio
- Jan
- Ollama
How to use ikawrakow/mixtral-8x7b-quantized-gguf with Ollama:
ollama run hf.co/ikawrakow/mixtral-8x7b-quantized-gguf
- Unsloth Studio
How to use ikawrakow/mixtral-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-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-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-8x7b-quantized-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use ikawrakow/mixtral-8x7b-quantized-gguf with Docker Model Runner:
docker model run hf.co/ikawrakow/mixtral-8x7b-quantized-gguf
- Lemonade
How to use ikawrakow/mixtral-8x7b-quantized-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ikawrakow/mixtral-8x7b-quantized-gguf
Run and chat with the model
lemonade run user.mixtral-8x7b-quantized-gguf-{{QUANT_TAG}}List all available models
lemonade list
This repository contains improved Mixtral-8x7B 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.
The table shows a comparison between these models and the current llama.cpp quantization approach using Wikitext perplexities for a context length of 512 tokens.
The "Quantization Error" columns in the table are defined as (PPL(quantized model) - PPL(int8))/PPL(int8).
Running the full fp16 Mixtral8x7b model on the systems I have available takes too long, so I'm comparing against the 8-bit quantized model, where I get PPL = 4.1049.
From past experience the 8-bit quantization should be basically equivalent to fp16.
| Quantization | Model file | PPL(llama.cpp) | Quantization Error | PPL(new quants) | Quantization Error |
|---|---|---|---|---|---|
| Q2_K | mixtral-8x7b-q2k.gguf | 7.4660 | 81.9% | 5.0576 | 23.2% |
| Q3_K_S | mixtral-8x7b-q3k-small.gguf | 4.4601 | 8.65% | 4.3848 | 6.82% |
| Q3_K_M | mixtral-8x7b-q3k-medium.gguf | 4.4194 | 7.66% | 4.2884 | 4.47% |
| Q4_K_S | mixtral-8x7b-q4k-small.gguf | 4.2523 | 3.59% | 4.1764 | 1.74% |
| Q4_K_M | mistral-8x7b-q4k-medium.gguf | 4.2523 | 3.59% | 4.1652 | 1.47% |
| Q5_K_S | mixtral-7b-q5k-small.gguf | 4.1395 | 0.84% | 4.1278 | 0.56% |
| Q4_0 | mixtral-8x7b-q40.gguf | 4.2232 | 2.88% | 4.2001 | 2.32% |
| Q4_1 | mistral-8x7b-q41.gguf | 4.2547 | 3.65% | 4.1713 | 1.62% |
| Q5_0 | mistral-8x7b-q50.gguf | 4.1426 | 0.92% | 4.1335 | 0.70% |
- Downloads last month
- 175
We're not able to determine the quantization variants.
ollama run hf.co/ikawrakow/mixtral-8x7b-quantized-gguf