LEONW24 commited on
Commit
414641b
·
verified ·
1 Parent(s): 2afb6c3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +124 -3
README.md CHANGED
@@ -1,3 +1,124 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
+ base_model:
7
+ - Qwen/Qwen3-8B
8
+ - HauhauCS/Qwen3.5-9B-Uncensored-HauhauCS-Aggressive
9
+ tags:
10
+ - qwen3.5
11
+ - uncensored
12
+ - gguf
13
+ - ollama
14
+ library_name: gguf
15
+ pipeline_tag: text-generation
16
+ model-index:
17
+ - name: Qwen3.5-9B-Uncensored
18
+ results: []
19
+ ---
20
+
21
+ # Qwen3.5-9B-Uncensored (GGUF)
22
+
23
+ An uncensored GGUF merge of Qwen 3.5 9B, ready for local deployment with Ollama, llama.cpp, or any GGUF-compatible runtime.
24
+
25
+ ## Background
26
+
27
+ 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:
28
+
29
+ 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.
30
+ 2. **No multimodal input support** — The base model's input does not support multimodal data (e.g., images). This is a text-only model. For vision tasks, consider pairing it with a dedicated vision model such as `qwen3vl-8b`.
31
+
32
+ ## Quick Start
33
+
34
+ ### Ollama (Recommended)
35
+
36
+ 1. **Create a Modelfile:**
37
+
38
+ ```
39
+ FROM ./Qwen3.5-9B-Uncensored.gguf
40
+
41
+ PARAMETER temperature 0.7
42
+ PARAMETER top_p 0.9
43
+ PARAMETER num_ctx 16384
44
+
45
+ TEMPLATE """{{- if .System }}{{ .System }}{{ end }}
46
+ {{- range .Messages }}
47
+ <|im_start|>{{ .Role }}
48
+ {{ .Content }}<|im_end|>
49
+ {{ end }}<|im_start|>assistant
50
+ """
51
+
52
+ SYSTEM "You are a helpful assistant."
53
+ ```
54
+
55
+ 2. **Build and run:**
56
+
57
+ ```bash
58
+ # Download the GGUF file
59
+ huggingface-cli download LEONW24/Qwen3.5-9B-Uncensored Qwen3.5-9B-Uncensored.gguf --local-dir .
60
+
61
+ # Create the Ollama model
62
+ ollama create qwen35-uncensored -f Modelfile
63
+
64
+ # Run
65
+ ollama run qwen35-uncensored
66
+ ```
67
+
68
+ ### llama.cpp
69
+
70
+ ```bash
71
+ # Download
72
+ huggingface-cli download LEONW24/Qwen3.5-9B-Uncensored Qwen3.5-9B-Uncensored.gguf --local-dir .
73
+
74
+ # Run with llama-cli
75
+ llama-cli -m Qwen3.5-9B-Uncensored.gguf -p "Hello, who are you?" -n 256 -ngl 99
76
+ ```
77
+
78
+ ### llama-cpp-python (OpenAI-compatible API)
79
+
80
+ ```bash
81
+ pip install llama-cpp-python[server]
82
+
83
+ python -m llama_cpp.server \
84
+ --model Qwen3.5-9B-Uncensored.gguf \
85
+ --n_gpu_layers 99 \
86
+ --chat_format chatml
87
+ ```
88
+
89
+ Then call `http://localhost:8000/v1/chat/completions` with any OpenAI-compatible client.
90
+
91
+ ### Python (ctransformers / llama-cpp-python)
92
+
93
+ ```python
94
+ from llama_cpp import Llama
95
+
96
+ llm = Llama(
97
+ model_path="Qwen3.5-9B-Uncensored.gguf",
98
+ n_gpu_layers=-1, # offload all layers to GPU
99
+ n_ctx=16384,
100
+ )
101
+
102
+ output = llm.create_chat_completion(
103
+ messages=[{"role": "user", "content": "Hello!"}]
104
+ )
105
+ print(output["choices"][0]["message"]["content"])
106
+ ```
107
+
108
+ ## Model Details
109
+
110
+ | Property | Value |
111
+ |----------|-------|
112
+ | **Architecture** | Qwen 3.5 |
113
+ | **Parameters** | ~9B |
114
+ | **Format** | GGUF (single file) |
115
+ | **File size** | ~6.3 GB |
116
+ | **Context window** | Up to 131072 tokens |
117
+ | **Languages** | English, Chinese, multilingual |
118
+ | **License** | Apache 2.0 |
119
+
120
+ ## Notes
121
+
122
+ - This is an **uncensored** model — it has reduced safety filters compared to the official release. Use responsibly.
123
+ - GGUF format enables efficient CPU + GPU inference without requiring the full PyTorch/transformers stack.
124
+ - For multi-GPU setups with Ollama, set `OLLAMA_NUM_PARALLEL` and adjust `num_gpu` as needed.