Instructions to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF 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 jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-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 jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
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 jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
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 jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
Use Docker
docker model run hf.co/jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
- Ollama
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with Ollama:
ollama run hf.co/jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
- Unsloth Desktop
- Pi
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with Docker Model Runner:
docker model run hf.co/jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
- Lemonade
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
Run and chat with the model
lemonade run user.Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
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 jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16
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 "jackasda211233/Qwen3.5-27B-Uncensored-RYS-Reasoner-GGUF:BF16" \ --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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -104,15 +104,75 @@ The Splice method works because:
|
|
| 104 |
- The (26,34) config is the Pareto-optimal configuration validated by dnhkng's math+EQ probe sweep on the base model
|
| 105 |
- 78% uncensored layer ratio preserves the fine-tuned personality while the central reasoning zone provides disciplined inference
|
| 106 |
|
| 107 |
-
###
|
| 108 |
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
### Build Tools
|
| 118 |
|
|
@@ -189,9 +249,15 @@ We conducted head-to-head live coding tests against a HybridBase variant (same u
|
|
| 189 |
- 0 looping responses (repetition ratio check)
|
| 190 |
- 2 empty responses on very hard constraint prompts
|
| 191 |
|
| 192 |
-
### Expected Performance (Extrapolated from Source Models)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
|
| 194 |
-
|
|
|
|
|
|
|
| 195 |
|
| 196 |
| Benchmark | Qwen3.5-27B Official | Expected for this model |
|
| 197 |
|-----------|---------------------|------------------------|
|
|
@@ -202,7 +268,7 @@ Based on the official Qwen3.5-27B scores and the RYS method's documented impact:
|
|
| 202 |
| SWE-bench Verified | 72.4 | ~68-71 |
|
| 203 |
| HLE w/ CoT | 24.3 | ~22-24 |
|
| 204 |
|
| 205 |
-
*Note: These are estimates. The RYS method
|
| 206 |
|
| 207 |
## Usage with llama.cpp / ik_llama.cpp
|
| 208 |
|
|
@@ -266,6 +332,24 @@ Output Layer β Source
|
|
| 266 |
42β71 β HauhauCS Uncensored layers 34β63
|
| 267 |
```
|
| 268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
## Limitations
|
| 270 |
|
| 271 |
1. **Uncensored**: This model will follow most instructions without refusal. It is the user's responsibility to ensure ethical use.
|
|
|
|
| 104 |
- The (26,34) config is the Pareto-optimal configuration validated by dnhkng's math+EQ probe sweep on the base model
|
| 105 |
- 78% uncensored layer ratio preserves the fine-tuned personality while the central reasoning zone provides disciplined inference
|
| 106 |
|
| 107 |
+
### The Hybrid SSM Attention Constraint
|
| 108 |
|
| 109 |
+
Qwen3.5-27B is **not** a standard transformer β it uses a hybrid architecture where two types of layers alternate in a strict repeating pattern:
|
| 110 |
+
|
| 111 |
+
```
|
| 112 |
+
Layer Type Pattern (repeats every 4 layers):
|
| 113 |
+
[0] Linear Attention (Gated DeltaNet / SSM)
|
| 114 |
+
[1] Linear Attention (Gated DeltaNet / SSM)
|
| 115 |
+
[2] Linear Attention (Gated DeltaNet / SSM)
|
| 116 |
+
[3] Full Attention (GQA β 24 heads Q, 4 heads KV, 256 dim)
|
| 117 |
+
[4] Linear Attention ...
|
| 118 |
+
...repeating...
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
This pattern is governed by `full_attention_interval=4` in the model config. **The total layer count must be divisible by 4** for this pattern to remain valid. If violated, llama.cpp and other GGUF runtimes cannot reconcile the layer types and will crash at load.
|
| 122 |
+
|
| 123 |
+
This constraint eliminates many RYS configurations:
|
| 124 |
+
|
| 125 |
+
| RYS Config | Total Layers | Divisible by 4 | Status |
|
| 126 |
+
|------------|-------------|----------------|--------|
|
| 127 |
+
| (24,35) | 75 | β No | Crashes |
|
| 128 |
+
| **(24,36)** | **76** | **β
Yes** | **Works** |
|
| 129 |
+
| **(26,34)** | **72** | **β
Yes** | **Works (this model)** |
|
| 130 |
+
| (33,34) | 65 | β No | Crashes |
|
| 131 |
+
|
| 132 |
+
The (26,34) config duplicates 8 layers (26β33), which contains exactly **2 Full Attention layers** (at positions 27 and 31) and **6 Gated DeltaNet layers**. This preserves the 4-layer repeating pattern perfectly:
|
| 133 |
+
|
| 134 |
+
```
|
| 135 |
+
Layers 24-27: [DeltaNet, DeltaNet, DeltaNet, FullAttn] β original
|
| 136 |
+
Layers 28-31: [DeltaNet, DeltaNet, DeltaNet, FullAttn] β original
|
| 137 |
+
Layers 32-35: [DeltaNet, DeltaNet, DeltaNet, FullAttn] β DUPLICATED from 24-27
|
| 138 |
+
Layers 36-39: [DeltaNet, DeltaNet, DeltaNet, FullAttn] β DUPLICATED from 28-31
|
| 139 |
+
```
|
| 140 |
+
|
| 141 |
+
### F16 β BF16 Tensor Conversion
|
| 142 |
+
|
| 143 |
+
The dnhkng RYS source GGUF uses F16 (IEEE 754 half-precision), while the uncensored model uses BF16 (Brain Float 16). These are different 16-bit formats:
|
| 144 |
+
|
| 145 |
+
- **F16**: 1 sign + 5 exponent + 10 mantissa bits β higher precision, smaller range
|
| 146 |
+
- **BF16**: 1 sign + 8 exponent + 7 mantissa bits β lower precision, same range as float32
|
| 147 |
+
|
| 148 |
+
During the splice, F16 tensors are converted to BF16:
|
| 149 |
+
```
|
| 150 |
+
F16 β Float32 (lossless upcast) β BF16 (take upper 2 bytes of float32)
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
This conversion loses ~3 bits of mantissa precision but gains the dynamic range benefits of BF16, which is what the rest of the model uses. In practice, this has no measurable impact on output quality.
|
| 154 |
+
|
| 155 |
+
### Source Models & Attribution
|
| 156 |
+
|
| 157 |
+
This model would not exist without the work of these authors:
|
| 158 |
+
|
| 159 |
+
**1. [Qwen Team](https://huggingface.co/Qwen) β Qwen3.5-27B (Base Architecture)**
|
| 160 |
+
- [Qwen/Qwen3.5-27B](https://huggingface.co/Qwen/Qwen3.5-27B) β The foundation model. All 64 original layers, the tokenizer, the hybrid SSM architecture, and all training were done by the Qwen team. This model is a derivative work.
|
| 161 |
+
- License: Apache 2.0
|
| 162 |
+
|
| 163 |
+
**2. [HauhauCS](https://huggingface.co/HauhauCS) β Uncensored Fine-Tune**
|
| 164 |
+
- [HauhauCS/Qwen3.5-27B-Uncensored-HauhauCS-Aggressive](https://huggingface.co/HauhauCS/Qwen3.5-27B-Uncensored-HauhauCS-Aggressive) β Provides the uncensored weights used in **56 of 72 layers** (layers 0β25 and 42β71). This fine-tune removes the safety guardrails that interfere with legitimate coding workflows. The "Aggressive" variant was chosen for maximum uncensoring.
|
| 165 |
+
- Contribution: 78% of this model's total layer weights
|
| 166 |
+
|
| 167 |
+
**3. [dnhkng](https://github.com/dnhkng) β RYS Method & Validated Layer Configuration**
|
| 168 |
+
- [dnhkng/RYS-Qwen3.5-27B-FP8-XL](https://huggingface.co/dnhkng/RYS-Qwen3.5-27B-FP8-XL) β Provides the **duplicate zone layers** (layers 26β41). These are the base Qwen3.5-27B weights that went through FP8 quantization and were validated as the optimal duplication zone via systematic math+EQ probe sweeps.
|
| 169 |
+
- [RYS GitHub Repository](https://github.com/dnhkng/RYS) β The RYS method implementation
|
| 170 |
+
- [LLM Neuroanatomy: How I Topped the LLM Leaderboard Without Changing a Single Weight](https://dnhkng.github.io/posts/rys/) β Original RYS research
|
| 171 |
+
- [LLM Neuroanatomy II: Modern LLM Hacking and hints of a Universal Language?](https://dnhkng.github.io/posts/rys-ii/) β Extended research with Qwen3.5-27B, including the (26,34) Pareto-optimal configuration used in this model
|
| 172 |
+
- Contribution: 22% of this model's total layer weights (the critical reasoning duplication zone)
|
| 173 |
+
|
| 174 |
+
**4. [ikawrakow](https://github.com/ikawrakow) β ik_llama.cpp**
|
| 175 |
+
- Quantization tooling (llama-quantize) used to produce the Q8_0, Q6_K, and IQ4_NL variants
|
| 176 |
|
| 177 |
### Build Tools
|
| 178 |
|
|
|
|
| 249 |
- 0 looping responses (repetition ratio check)
|
| 250 |
- 2 empty responses on very hard constraint prompts
|
| 251 |
|
| 252 |
+
### Expected Performance (Extrapolated from Source Models & dnhkng's Research)
|
| 253 |
+
|
| 254 |
+
Performance expectations are derived from two sources:
|
| 255 |
+
1. The [official Qwen3.5-27B benchmark scores](https://huggingface.co/Qwen/Qwen3.5-27B)
|
| 256 |
+
2. dnhkng's [LLM Neuroanatomy II](https://dnhkng.github.io/posts/rys-ii/) research, which systematically measured the impact of RYS layer duplication on Qwen3.5-27B using math and EQ (emotional quotient) probe sets
|
| 257 |
|
| 258 |
+
In dnhkng's research, the (26,34) XL configuration achieved a combined delta of **+0.1288** across math and EQ probes with only 12.5% parameter overhead β sitting on the validated Pareto frontier of performance vs. compute cost. The full probe sweep tested all possible (i,j) configurations and identified four optimal variants (S, M, L, XL), with XL (26,34) being the maximum-performance option.
|
| 259 |
+
|
| 260 |
+
Based on these findings:
|
| 261 |
|
| 262 |
| Benchmark | Qwen3.5-27B Official | Expected for this model |
|
| 263 |
|-----------|---------------------|------------------------|
|
|
|
|
| 268 |
| SWE-bench Verified | 72.4 | ~68-71 |
|
| 269 |
| HLE w/ CoT | 24.3 | ~22-24 |
|
| 270 |
|
| 271 |
+
*Note: These are estimates based on dnhkng's published RYS research findings and the official Qwen3.5-27B scores. The RYS method was shown to improve reasoning capabilities (math +0.0755, EQ +0.0533 for the XL config in dnhkng's probe sweep) while potentially trading small amounts of instruction-following precision. The uncensored fine-tune may also shift absolute scores. Full standardized benchmark results were not completed due to infrastructure limitations (BF16 thinking mode inference at ~60-120s per request made large benchmark suites impractical). The live coding tests above provide the most reliable quality signal for this model's intended use case.*
|
| 272 |
|
| 273 |
## Usage with llama.cpp / ik_llama.cpp
|
| 274 |
|
|
|
|
| 332 |
42β71 β HauhauCS Uncensored layers 34β63
|
| 333 |
```
|
| 334 |
|
| 335 |
+
## Research Foundation
|
| 336 |
+
|
| 337 |
+
This project would not have been possible without [dnhkng's](https://github.com/dnhkng) groundbreaking RYS (Repeat Your Self) research. The key insights from their work that directly informed this model:
|
| 338 |
+
|
| 339 |
+
1. **Layer duplication enhances reasoning without training** ([LLM Neuroanatomy](https://dnhkng.github.io/posts/rys/)): dnhkng discovered that duplicating specific middle layers of a transformer creates a "deeper reasoning circuit" that measurably improves performance on math and emotional intelligence benchmarks β with zero training, zero weight modification, and zero data.
|
| 340 |
+
|
| 341 |
+
2. **Systematic configuration optimization** ([LLM Neuroanatomy II](https://dnhkng.github.io/posts/rys-ii/)): dnhkng conducted exhaustive sweeps of all possible (i,j) duplication configurations on Qwen3.5-27B, measuring each with dedicated math (Math120) and EQ (EQ140) probe sets. This identified four Pareto-optimal configurations:
|
| 342 |
+
- S (33,34): +1 layer, minimal overhead
|
| 343 |
+
- M (31,34): +3 layers, balanced
|
| 344 |
+
- L (30,35): +5 layers, strong
|
| 345 |
+
- **XL (26,34): +8 layers, maximum performance** β used in this model
|
| 346 |
+
|
| 347 |
+
3. **The hybrid SSM constraint**: dnhkng's work on Qwen3.5's hybrid Gated DeltaNet + Full Attention architecture revealed that the `full_attention_interval=4` pattern must be preserved post-duplication β a critical constraint for GGUF-based inference that is not documented elsewhere.
|
| 348 |
+
|
| 349 |
+
4. **Pareto-optimal validation**: The (26,34) configuration was validated not just on the initial scan but on larger probe sets, confirming it as the best performance-per-compute option at +0.1288 combined delta with 12.5% overhead.
|
| 350 |
+
|
| 351 |
+
The author's contribution was to combine these RYS findings with the HauhauCS uncensored fine-tune using the novel splice method β taking dnhkng's already-validated duplicate zone layers directly and embedding them within the uncensored model's layer stack, rather than re-duplicating from scratch.
|
| 352 |
+
|
| 353 |
## Limitations
|
| 354 |
|
| 355 |
1. **Uncensored**: This model will follow most instructions without refusal. It is the user's responsibility to ensure ethical use.
|