Instructions to use voodooquant/Qwen3.5-2B-MTP-Voodoo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="voodooquant/Qwen3.5-2B-MTP-Voodoo") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("voodooquant/Qwen3.5-2B-MTP-Voodoo", dtype="auto") - llama-cpp-python
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="voodooquant/Qwen3.5-2B-MTP-Voodoo", filename="Qwen3.5-2B-MTP.Voodoo25_TQ1_0.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo 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 voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M # Run inference directly in the terminal: llama cli -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M # Run inference directly in the terminal: llama cli -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
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 voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
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 voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Use Docker
docker model run hf.co/voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "voodooquant/Qwen3.5-2B-MTP-Voodoo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voodooquant/Qwen3.5-2B-MTP-Voodoo", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
- SGLang
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo 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 "voodooquant/Qwen3.5-2B-MTP-Voodoo" \ --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": "voodooquant/Qwen3.5-2B-MTP-Voodoo", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "voodooquant/Qwen3.5-2B-MTP-Voodoo" \ --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": "voodooquant/Qwen3.5-2B-MTP-Voodoo", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with Ollama:
ollama run hf.co/voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
- Unsloth Studio
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo 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 voodooquant/Qwen3.5-2B-MTP-Voodoo 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 voodooquant/Qwen3.5-2B-MTP-Voodoo to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for voodooquant/Qwen3.5-2B-MTP-Voodoo to start chatting
- Pi
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with Docker Model Runner:
docker model run hf.co/voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
- Lemonade
How to use voodooquant/Qwen3.5-2B-MTP-Voodoo with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull voodooquant/Qwen3.5-2B-MTP-Voodoo:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-2B-MTP-Voodoo-Q4_K_M
List all available models
lemonade list
BitTern / CAT-Q: Cost-efficient and Accurate Ternary Quantization for LLMs
Great work on your low bit quantisations!
I stumbled across this cool Intel collaboration paper and was wondering if you'd weigh in on what you think of it:
https://arxiv.org/html/2606.26650v1
Not yet open source:
https://github.com/IntelChina-AI/BitTern
It's surprising it works so well using a much smaller dataset, 512 x 2048, so 1 million tokens, and the loss being minimized is not KL divergence on the text generation, but layer by layer reconstruction error inside the model.
The way they learn to scale and shift blocks of parameters seems conceptually similar, but rather than then applying hard quants, backpropping steadily more aggressive soft ternerizaition using layer reconstruction loss, that seems to be the novel bit.
Do you think it's cost effective for you to fine tune weights in this way to lower perplexity / KLD further?
Thank you! My instinct is that direction will have issues with catastrophic forgetting outside the calibration dataset because it involves finetuning. I think that in order to be more faithful to the original model's post training, you need to blindly quantize the weights of the model. That way the calibration dataset fit is an emergent byproduct instead of a direct fit which more specifically directs outcomes. Dynamic quantization is always bound to overfit to some degree so I think making the least decisions about the model as possible will lead to stronger generalization.
Interesting take, thank you!
I didn't really see it as fine tuning, because the backprop signal is not coming from the text. I was thinking it was more like just using sample data to create a diverse set of N reference forward passes, so you can ensure each layers behaviour hasn't drifted too far by aggressive quantisation.
However, if it is as aggressive and impactful on KL as you suggest, is there a softer incarnation, so during your normal quantisation process you effectively have a choice for each weight, up or down, and rather than a simple absolute difference measure, you could use layer by layer reconstruction loss (because it's cheaper than checking the full text generation KL divergence on a massive dataset) to decide on a weight by weight basis to round up or down? And in theory better layer by layer reconstruction will reduce KL divergence overall?
My take is as good as yours since I haven't studied their work in detail, its just my instinct as I said. I'm curious if you're right.
So as I mentioned my belief is that any decision made that is not data agnostic is bound to overfit. The representations created by MLPs are very durable as we see here, but fundamentally the precision is eventually needed for some critical unknown weights. We can't reveal what those weights are with any amount of economical analysis up to a full retrain because the function of gradient descent is the accumulation of all steps. This is of course obvious, but what I am saying is that any training is essentially changing that function to bias toward the chosen dataset, which will lead to it erasing valuable representations except in very sparse circumstances. So you are right that this direction will improve results, but the question is which results?
I've studied LLMs at very small constrained sizes considerably which led to my work here. This study has changed my perspective on how representations form and change over training fundamentally compared to established opinions. You can check out some of my previous work:
https://huggingface.co/buckets/curvedinf/exodus-18m-training
https://github.com/curvedinf/k-splanifolds
I love talking about this stuff so by all means share your thoughts, especially if they are contrary or i didnt understand you.