Instructions to use localslm/Qwen3.5-9B-MTP-Uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use localslm/Qwen3.5-9B-MTP-Uncensored 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 localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M # Run inference directly in the terminal: llama cli -hf localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M # Run inference directly in the terminal: llama cli -hf localslm/Qwen3.5-9B-MTP-Uncensored: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 localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf localslm/Qwen3.5-9B-MTP-Uncensored: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 localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
Use Docker
docker model run hf.co/localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use localslm/Qwen3.5-9B-MTP-Uncensored with Ollama:
ollama run hf.co/localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
- Unsloth Studio
How to use localslm/Qwen3.5-9B-MTP-Uncensored 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 localslm/Qwen3.5-9B-MTP-Uncensored 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 localslm/Qwen3.5-9B-MTP-Uncensored to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for localslm/Qwen3.5-9B-MTP-Uncensored to start chatting
- Pi
How to use localslm/Qwen3.5-9B-MTP-Uncensored with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf localslm/Qwen3.5-9B-MTP-Uncensored: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": "localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use localslm/Qwen3.5-9B-MTP-Uncensored with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf localslm/Qwen3.5-9B-MTP-Uncensored: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 "localslm/Qwen3.5-9B-MTP-Uncensored: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 localslm/Qwen3.5-9B-MTP-Uncensored with Docker Model Runner:
docker model run hf.co/localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
- Lemonade
How to use localslm/Qwen3.5-9B-MTP-Uncensored with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-9B-MTP-Uncensored-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use localslm/Qwen3.5-9B-MTP-Uncensored with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf localslm/Qwen3.5-9B-MTP-Uncensored: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 localslm/Qwen3.5-9B-MTP-Uncensored:Q4_K_M
Run Hermes
hermes
- Atomic Chat
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": "localslm/Qwen3.5-9B-MTP-Uncensored:"
}
]
}
}
}Run Pi
# Start Pi in your project directory:
piUncensored Qwen3.5-9B-MTP GGUF
Example Hybrid Setup: CPU (LLM) + GPU (Vision, ~4GB VRAM)
This setup launches a highly optimized hybrid CPU/GPU vision-enabled server using llama.cpp, specifically tuned for maximum performance, minimal memory footprint, and high-quality generation on budget hardware:
- Fast CPU Text Generation: Leverages Multi-Token Prediction (MTP) speculative decoding. The process is pinned to physical CPU cores, dramatically increasing cache hits and reducing latency.
- Instant Image Preprocessing (~1 second): Offloads the multimodal projector to even a low-end GPU (4GB VRAM). Even with a massive budget of 4,096 visual tokens, image processing takes under a second on GPU.
- Massive 49K Context Window: Achieved within standard RAM limits by utilizing 4-bit KV-cache quantization.
- Advanced Repetition Control: Uses DRY (Don't Repeat Yourself) sampling instead of static penalties to ensure natural, loop-free text generation.
- WebUI & API: Features an OpenAI-compatible local API/WebUI server on port 8080.
llama-server.exe ^
-m "D:\LLMs\Qwen3.5-9B-MTP-Uncensored\model.gguf" ^
--mmproj "D:\LLMs\Qwen3.5-9B-MTP-Uncensored\mmproj.gguf" ^
--seed -1 ^
-np 1 ^
--image-min-tokens 4096 ^
--image-max-tokens 4096 ^
-t 6 --threads-batch 6 ^
-Cr 0-5 --cpu-strict 1 ^
--prio 2 --poll 100 ^
-b 4224 -ub 2048 --mtmd-batch-max-tokens 2048 ^
-ctk q4_0 -ctv q4_0 ^
-ctkd q4_0 -ctvd q4_0 ^
--cache-reuse 256 ^
--cache-prompt ^
--slot-prompt-similarity 0.0 ^
--swa-full ^
-lm mlock ^
-ngl 0 ^
--mmproj-offload ^
-fa on ^
-c 49152 ^
--temp 0.3 ^
--min-p 0.05 ^
--top-p 0.95 ^
--top-k 40 ^
--dry-multiplier 0.8 ^
--dry-base 1.75 ^
--dry-allowed-length 2 ^
--dry-penalty-last-n 256 ^
--presence-penalty 0.0 ^
--repeat-penalty 1.0 ^
--reasoning off ^
--jinja ^
--spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-p-min 0.20 ^
--metrics^
--host 127.0.0.1 --port 8080
This command launches llama-server.exe (the server binary provided by llama.cpp) to host a local REST API / web interface for a vision-enabled Qwen3.5-9B on Windows:
1. Model & Multimodal Files
-m&--mmproj
Paths to the main language model and the multimodal projector (vision encoder).--image-min-tokens 4096&--image-max-tokens 4096
Forces image processing to use a fixed allocation of 4,096 visual tokens per image input, ensuring maximum visual detail and OCR precision.--mmproj-offload
Crucial optimization: Offloads the heavy vision encoder to the GPU. Even on a cheap GPU, processing 4,096 visual tokens completes in < 1 second.
2. CPU Threading & Hardware Optimization
-t 6&--threads-batch 6
Allocates 6 CPU threads for token generation and batch processing.-Cr 0-5 --cpu-strict 1
Pins the process strictly to physical CPU cores 0 through 5. This prevents the OS from migrating threads across cores, vastly improving CPU cache hit rates and generation speed.--prio 2&--poll 100
Sets the server to high process priority (2) and lowers the polling interval (100ms) for faster API responsiveness.-lm mlock
Locks model memory directly in physical RAM, preventing the OS from swapping it to the disk/pagefile (replaces older--no-mmaparguments).-ngl 0
Forces the main LLM to run entirely on the CPU.-fa on
Enables FlashAttention to significantly reduce RAM usage during context processing.
3. Batching, Context, & KV-Cache (Memory Savings)
-c 49152&-np 1
Sets a massive 49,152 token context window, optimized for a single user/slot (-np 1).-b 4224&-ub 2048
Sets the prompt batch size to4224and micro-batch size to2048, balancing RAM spikes and CPU load.--mtmd-batch-max-tokens 2048
Limits multimodal chunking to 2048 tokens, preventing Out-Of-Memory (OOM) errors during heavy image ingestion.-ctk q4_0 -ctv q4_0&-ctkd q4_0 -ctvd q4_0
Applies 4-bit quantization to the KV-cache (for both main and draft models). This is what makes the 49K context window possible on standard consumer RAM setups without degrading output quality.--cache-prompt,--cache-reuse 256,--slot-prompt-similarity 0.0
Enables aggressive prompt caching. This skips reprocessing the system prompt and chat history, drastically speeding up multi-turn conversations.--swa-full
Enables full Sliding Window Attention, further optimizing memory footprint.
4. Sampling & DRY Repetition Control
--temp 0.3,--top-p 0.95,--top-k 40,--min-p 0.05
A precise, low-temperature sampling setup that relies heavily on Min-P to truncate low-probability garbage tokens, leading to highly coherent and logical responses.--seed -1
Ensures a random seed for generation on every prompt.- DRY (Don't Repeat Yourself) Sampler (Replaces standard repetition penalties):
--dry-multiplier 0.8,--dry-base 1.75,--dry-allowed-length 2,--dry-penalty-last-n 256
Instead of statically penalizing words (which breaks formatting/code), DRY dynamically detects sequences of repeating tokens and exponentially penalizes them, effectively curing model loops.
--presence-penalty 0.0&--repeat-penalty 1.0
Standard penalties are disabled to allow the DRY sampler to work without interference.
5. Speculative Decoding & Template Settings
--spec-type draft-mtp
Enables Multi-Token Prediction (MTP).--spec-draft-n-max 2&--spec-draft-p-min 0.20
Generates up to 2 draft tokens per step, but only if the model is at least 20% confident (0.20). This prevents wasting CPU cycles on bad guesses, resulting in a smoother, faster generation rate.--reasoning off
Natively disables the DeepSeek/Qwen thinking/reasoning steps, guaranteeing immediate final-answer generation and saving compute time.--jinja&--metrics
Enables Jinja2 parsing for complex chat templates and exposes an endpoint for performance monitoring.
- Downloads last month
- 416
4-bit
6-bit
8-bit
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf localslm/Qwen3.5-9B-MTP-Uncensored: