Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
Add opt-in thinking-aware uncensor preset for Qwen
YanissAmz3bbee7baeaf0
diff --git a/presets/qwen-uncensor-think/README.md b/presets/qwen-uncensor-think/README.mdnew file mode 100644index 0000000..d6e4960--- /dev/null+++ b/presets/qwen-uncensor-think/README.md@@ -0,0 +1,22 @@+# Qwen3.8-Flash-Next: thinking-aware uncensor preset (opt-in)++The default preset in the model repo was fitted on non-thinking chat. This one also uses thinking-mode activations, so it holds up better with thinking on.++Use it by pointing the runtime at the spec (the direction file must sit next to it):++```+EXL3_ABLIT_RUNTIME=/path/to/presets/qwen-uncensor-think/uncensor_spec.json+```++Measured on Qwen3.8-Flash-Next-EXL3-Yamz, batch 1:++| | default preset | this preset |+|---|---|---|+| Refusals, harmful set, thinking on (n=100) | 15 | 9 |+| Refusals, harmful set, thinking off, greedy (n=100) | 14 | 5 |+| XSTest over-refusal, thinking on (n=50) | - | 0 |+| KL vs base, thinking off / top-1 | 0.013 / 0.988 | 0.017 / 0.985 |+| KL vs base, thinking on / top-1 | 0.032 / 0.946 | 0.078 / 0.906 |+| Greedy loops, thinking on (20 prompts) | - | 0 |++It moves the model more than the default in thinking mode, so it stays opt-in for now.diff --git a/presets/qwen-uncensor-think/SHA256SUMS b/presets/qwen-uncensor-think/SHA256SUMSnew file mode 100644index 0000000..cebcf59--- /dev/null+++ b/presets/qwen-uncensor-think/SHA256SUMS@@ -0,0 +1,2 @@+c3b1f5b70f9679fb9b14cc360bb357e05466c6dfa386288ce4f3753caa551a6a uncensor_spec.json+c88aff3bdc2b1956d99acf491bf591011954e8211de1f04fb27fc0131d00c355 uncensor_direction.stdiff --git a/presets/qwen-uncensor-think/uncensor_direction.st b/presets/qwen-uncensor-think/uncensor_direction.stnew file mode 100644index 0000000..bb5cf29Binary files /dev/null and b/presets/qwen-uncensor-think/uncensor_direction.st differdiff --git a/presets/qwen-uncensor-think/uncensor_spec.json b/presets/qwen-uncensor-think/uncensor_spec.jsonnew file mode 100644index 0000000..d996a93--- /dev/null+++ b/presets/qwen-uncensor-think/uncensor_spec.json@@ -0,0 +1,126 @@+{+ "model": "Qwen3.8-Flash-Next-EXL3-Yamz (v2-bal)",+ "hidden": 2560,+ "n_layers": 48,+ "arm": "A",+ "readout": "mix refit: 50/50 pool of the shipped c_bal50 means (non-thinking + tool-context) and thinking-mode means (100+100 collect prompts, hc-mean residual, mean of positions inside the think block (last 4 tokens of an 80-token think prefix) and at the answer start after a forced </think>); interp f=36.52 minus harmless-mean(L31) component, renormalised; single dir all layers",+ "candidate": "unc_think_mix_x1.25",+ "direction_mode": "single-projected",+ "direction_index": 36.51597053324758,+ "attn": {+ "max_w": 2.3540852281015407,+ "peak": 41.71377467788413,+ "min_w": 2.0177779558851703,+ "width": 23.2056476050286+ },+ "mlp": {+ "max_w": 0.5793353930340558,+ "peak": 30.334596885485396,+ "min_w": 0.49918711488667084,+ "width": 24.089900179629904+ },+ "attn_w": [+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 2.531133015098919,+ 2.549248609088176,+ 2.5673642030774326,+ 2.5854797970666885,+ 2.6035953910559457,+ 2.6217109850452025,+ 2.639826579034459,+ 2.6579421730237156,+ 2.676057767012972,+ 2.694173361002229,+ 2.712288954991485,+ 2.7304045489807423,+ 2.7485201429699986,+ 2.7666357369592554,+ 2.7847513309485117,+ 2.8028669249377685,+ 2.820982518927025,+ 2.8390981129162816,+ 2.8572137069055383,+ 2.875329300894795,+ 2.8934448948840514,+ 2.911560488873308,+ 2.9296760828625645,+ 2.9374213934020306,+ 2.9193057994127742,+ 2.901190205423517,+ 2.883074611434261,+ 2.864959017445004,+ 2.8468434234557476+ ],+ "mlp_w": [+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.0,+ 0.6271250574391002,+ 0.6312838686810391,+ 0.635442679922978,+ 0.639601491164917,+ 0.6437603024068559,+ 0.6479191136487948,+ 0.6520779248907338,+ 0.6562367361326726,+ 0.6603955473746116,+ 0.6645543586165504,+ 0.6687131698584894,+ 0.6728719811004282,+ 0.6770307923423673,+ 0.6811896035843061,+ 0.6853484148262451,+ 0.6895072260681839,+ 0.6936660373101229,+ 0.6978248485520617,+ 0.7019836597940008,+ 0.7061424710359397,+ 0.7103012822778786,+ 0.7144600935198175,+ 0.7186189047617564,+ 0.7227777160036953,+ 0.7214019553395052,+ 0.7172431440975663,+ 0.7130843328556274,+ 0.7089255216136885,+ 0.7047667103717496,+ 0.7006078991298106,+ 0.6964490878878717,+ 0.6922902766459328,+ 0.6881314654039938,+ 0.683972654162055,+ 0.679813842920116,+ 0.6756550316781772,+ 0.6714962204362382,+ 0.6673374091942994,+ 0.6631785979523603,+ 0.6590197867104215,+ 0.6548609754684825+ ],+ "norm_preserve": false,+ "apply": "runtime projection: block_out <- block_out - w(L) * r_hat (r_hat . block_out) on every attn and MLP/MoE block output; MTP layers untouched.",+ "note": "shipped attn/mlp weights x1.25",+ "strength_scale_vs_shipped": 1.25+}\ No newline at end of file