Instructions to use LEONW24/Qwen3.5-9B-Uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use LEONW24/Qwen3.5-9B-Uncensored with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="LEONW24/Qwen3.5-9B-Uncensored", filename="Qwen3.5-9B-Uncensored-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M # Run inference directly in the terminal: llama cli -hf LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M # Run inference directly in the terminal: llama cli -hf LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
Use Docker
docker model run hf.co/LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use LEONW24/Qwen3.5-9B-Uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LEONW24/Qwen3.5-9B-Uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LEONW24/Qwen3.5-9B-Uncensored", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
- Ollama
How to use LEONW24/Qwen3.5-9B-Uncensored with Ollama:
ollama run hf.co/LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
- Unsloth Studio
How to use LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for LEONW24/Qwen3.5-9B-Uncensored to start chatting
- Pi
How to use LEONW24/Qwen3.5-9B-Uncensored with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LEONW24/Qwen3.5-9B-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": "LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use LEONW24/Qwen3.5-9B-Uncensored with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LEONW24/Qwen3.5-9B-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 "LEONW24/Qwen3.5-9B-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 LEONW24/Qwen3.5-9B-Uncensored with Docker Model Runner:
docker model run hf.co/LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
- Lemonade
How to use LEONW24/Qwen3.5-9B-Uncensored with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LEONW24/Qwen3.5-9B-Uncensored:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-9B-Uncensored-Q4_K_M
List all available models
lemonade list
| license: apache-2.0 | |
| language: | |
| - en | |
| - zh | |
| base_model: | |
| - Qwen/Qwen3-8B | |
| - HauhauCS/Qwen3.5-9B-Uncensored-HauhauCS-Aggressive | |
| tags: | |
| - qwen3.5 | |
| - uncensored | |
| - gguf | |
| - ollama | |
| library_name: gguf | |
| pipeline_tag: text-generation | |
| model-index: | |
| - name: Qwen3.5-9B-Uncensored | |
| results: [] | |
| # Qwen3.5-9B-Uncensored (GGUF) | |
| An uncensored GGUF merge of Qwen 3.5 9B, ready for local deployment with Ollama, llama.cpp, or any GGUF-compatible runtime. | |
| ## Background | |
| This model is built upon [HauhauCS/Qwen3.5-9B-Uncensored-HauhauCS-Aggressive](https://huggingface.co/HauhauCS/Qwen3.5-9B-Uncensored-HauhauCS-Aggressive). The original base model has the following known issues: | |
| 1. **Ollama deployment failure** β The base model cannot be directly deployed via Ollama due to architecture/format incompatibilities. This GGUF version resolves the issue by converting and merging the weights into a single GGUF file that Ollama can load natively. | |
| 2. **Broken multimodal input** β The base model's packaging causes multimodal (e.g., image) input to malfunction. Although the underlying Qwen 3.5 architecture supports vision capabilities, the way the original model was packaged breaks multimodal inference. | |
| This repo provides a **Q4_K_M quantized** GGUF version that fixes the Ollama deployment issue while keeping the model compact and efficient. | |
| ## Quick Start | |
| ### Ollama (Recommended) | |
| 1. **Create a Modelfile:** | |
| ``` | |
| FROM ./Qwen3.5-9B-Uncensored-Q4_K_M.gguf | |
| PARAMETER temperature 0.7 | |
| PARAMETER top_p 0.9 | |
| PARAMETER num_ctx 16384 | |
| TEMPLATE """{{- if .System }}{{ .System }}{{ end }} | |
| {{- range .Messages }} | |
| <|im_start|>{{ .Role }} | |
| {{ .Content }}<|im_end|> | |
| {{ end }}<|im_start|>assistant | |
| """ | |
| SYSTEM "You are a helpful assistant." | |
| ``` | |
| 2. **Build and run:** | |
| ```bash | |
| # Download the GGUF file | |
| huggingface-cli download LEONW24/Qwen3.5-9B-Uncensored Qwen3.5-9B-Uncensored-Q4_K_M.gguf --local-dir . | |
| # Create the Ollama model | |
| ollama create qwen35-uncensored -f Modelfile | |
| # Run | |
| ollama run qwen35-uncensored | |
| ``` | |
| ### llama.cpp | |
| ```bash | |
| # Download | |
| huggingface-cli download LEONW24/Qwen3.5-9B-Uncensored Qwen3.5-9B-Uncensored-Q4_K_M.gguf --local-dir . | |
| # Run with llama-cli | |
| llama-cli -m Qwen3.5-9B-Uncensored-Q4_K_M.gguf -p "Hello, who are you?" -n 256 -ngl 99 | |
| ``` | |
| ### llama-cpp-python (OpenAI-compatible API) | |
| ```bash | |
| pip install llama-cpp-python[server] | |
| python -m llama_cpp.server \ | |
| --model Qwen3.5-9B-Uncensored-Q4_K_M.gguf \ | |
| --n_gpu_layers 99 \ | |
| --chat_format chatml | |
| ``` | |
| Then call `http://localhost:8000/v1/chat/completions` with any OpenAI-compatible client. | |
| ### Python (ctransformers / llama-cpp-python) | |
| ```python | |
| from llama_cpp import Llama | |
| llm = Llama( | |
| model_path="Qwen3.5-9B-Uncensored-Q4_K_M.gguf", | |
| n_gpu_layers=-1, # offload all layers to GPU | |
| n_ctx=16384, | |
| ) | |
| output = llm.create_chat_completion( | |
| messages=[{"role": "user", "content": "Hello!"}] | |
| ) | |
| print(output["choices"][0]["message"]["content"]) | |
| ``` | |
| ## Model Details | |
| | Property | Value | | |
| |----------|-------| | |
| | **Architecture** | Qwen 3.5 | | |
| | **Parameters** | ~9B | | |
| | **Format** | GGUF (Q4_K_M quantization) | | |
| | **File size** | ~6.3 GB | | |
| | **Context window** | Up to 131072 tokens | | |
| | **Languages** | English, Chinese, multilingual | | |
| | **License** | Apache 2.0 | | |
| ## Used In: PhdBooster | |
| This model serves as the **local fallback vision model** in [**PhdBooster**](https://github.com/LEONW24/PhdBooster) β an AI-powered browsing assistant that helps PhD students optimize their short video feeds. | |
| ### What is PhdBooster? | |
| PhD life is stressful. You open Douyin or Xiaohongshu to relax, but all you get is ads and news. **PhdBooster** is built on [OpenClaw](https://github.com/anthropics/openclaw) β it scrolls through short video platforms while you write papers, uses vision models to **actually "see"** every video, and automatically likes & bookmarks content matching your taste, training the recommendation algorithm to serve you better. | |
| ``` | |
| You're writing a paper | |
| -> PhdBooster is browsing videos for you | |
| -> AI "sees" each video | |
| -> Matches your taste? Auto like & bookmark | |
| -> Platform algorithm learns your preferences | |
| -> You open your phone β feed is perfect | |
| ``` | |
| ### How this model fits in | |
| PhdBooster uses a **two-stage filtering funnel**: | |
| 1. **Text quick-filter** β Parse title, hashtags, and author info to skip obvious non-targets (~60% filtered out) | |
| 2. **Visual deep-filter** β Screenshot the video and send to a vision model for analysis against your preference policy | |
| The vision analysis uses a **dual fallback** strategy: | |
| - **Primary**: Kimi 2.5 (Moonshot AI) β fast, high quality | |
| - **Fallback**: This model (**Qwen3.5-9B-Uncensored**) via local Ollama β completely free, works offline, no content filtering | |
| The uncensored nature of this model is important for PhdBooster's use case: it needs to analyze all types of visual content without refusals or safety-triggered false negatives. | |
| ### Tech Stack | |
| | Component | Choice | | |
| |-----------|--------| | |
| | Agent Framework | [OpenClaw](https://github.com/anthropics/openclaw) | | |
| | Browser Automation | OpenClaw Browser (Chrome CDP) | | |
| | Primary LLM | step-3.5-flash:free (OpenRouter) | | |
| | Primary Vision | Kimi 2.5 (Moonshot AI) | | |
| | Fallback Vision | **This model** (Ollama) | | |
| | Platforms | Douyin, Xiaohongshu | | |
| For more details, see the [PhdBooster README](https://github.com/LEONW24/PhdBooster). | |
| --- | |
| ## Notes | |
| - This is an **uncensored** model β it has reduced safety filters compared to the official release. Use responsibly. | |
| - GGUF format enables efficient CPU + GPU inference without requiring the full PyTorch/transformers stack. | |
| - For multi-GPU setups with Ollama, set `OLLAMA_NUM_PARALLEL` and adjust `num_gpu` as needed. | |