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 Settings
- llama.cpp
How to use ikawrakow/mixtral-instruct-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-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 serve -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
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
- Atomic Chat new
- 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
mixtral-instruct-8x7b-q3k-medium.gguf
There seems to be an issue with mixtral-instruct-8x7b-q3k-medium.gguf. It will give the first token then output garbage. The other quants are fine tho.
Exemple:
PS C:\Users\Windows\AI> C:\Users\Windows\AI\main.exe -m C:\Users\Windows\AI\models\mixtral-instruct-8x7b-q3k-medium.gguf -ngl 15 -t 7 --repeat_penalty 1 --no-penalize-nl --color --temp 0 --top-k 50 --top-p 1 -c 8192 -n -1 --seed 1 -p " [INST] You are an LLM trained to follow instructions. Here's an instruction: explain the incompleteness theorems [/INST] "
[...]
"Theβ
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
PS C:\Users\Windows\AI>
I observe similar behavior with mixtral-instruct-8x7b-q4k-medium.gguf, except I canΚΌt even get it to output a single good token. With --temp 0 it only outputs β
, and with higher temperatures only nonsense.
Not sure. With the above I get
The Incompleteness Theorems are two of the most famous theorems in mathematical logic, both proven by Kurt GΓΆdel in 1931.
The first theorem, known as GΓΆdel's First Incompleteness Theorem, states that no consistent, recursive axiomatic system can prove
all true statements about the natural numbers. This theorem implies that there are true statements that cannot be proven within any
given axiomatic system, demonstrating that mathematics is inherently incomplete.
The second theorem, GΓΆdel's Second Incompleteness Theorem, states that within any consistent, recursive axiomatic system, the
consistency of the system cannot be proven. This theorem highlights the limitations of formal systems and shows that mathematics
cannot be reduced to a set of axioms that can be proven to be consistent.
These theorems have profound implications for the foundations of mathematics and have been the subject of much debate and
discussion in the philosophical and mathematical communities. They demonstrate that there are limits to what can be proven within
formal systems and that mathematics is not just a matter of deduction from axioms, but also involves creativity and intuition. [end of text]
Yeah, mixtral-instruct-8x7b-q4k-medium.gguf is also borked here.
Llama.cpp was compiled with -DLLAMA_CUBLAS=ON -DLLAMA_CUDA_F16=ON so I recompiled without F16 but it has the same behavior.
I don't have those issues with the files that TheBloke have made available (but some didn't work in the past and they removed them).
IDK. Just to be thorough, I'm using CUDA 12.1, llama.cpp's master branch (latest commit cd108e6) on Windows 11 with an RTX 3060 12GB.
edit:
mixtral-instruct-8x7b-2.10bpw.gguf works fine
mixtral-instruct-8x7b-2.34bpw.gguf do not.
The file is 12,7 gb, the model size reported is wrong:
llm_load_print_meta: model ftype = unknown, may not work
llm_load_print_meta: model params = 46.70 B
llm_load_print_meta: model size = 42.15 GiB (7.75 BPW)
Llama.cpp crashes with
GGML_ASSERT: C:\Users\Windows\AI\llama.cpp\ggml-cuda.cu:7899: false