trohrbaugh commited on
Commit
d6adf83
·
verified ·
1 Parent(s): a0da17d

aux-rescue+moe-fuse: refresh banner

Browse files
Files changed (1) hide show
  1. README.md +31 -11
README.md CHANGED
@@ -21,7 +21,7 @@ tags:
21
  > registered in the loaded model class's `state_dict()` were silently
22
  > dropped on save.
23
  >
24
- > **Symptom:** Affected workflows that depend on these tensors will fail to load. Other workflows were unaffected.
25
  >
26
  > **Status:** fixed on 2026-05-02 by uploading `model-auxiliary.safetensors` and
27
  > patching `model.safetensors.index.json`. The repo now carries an
@@ -35,6 +35,36 @@ tags:
35
 
36
  <!-- aux-rescue-banner: end -->
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  # This is a decensored version of [Qwen/Qwen3.5-35B-A3B](https://huggingface.co/Qwen/Qwen3.5-35B-A3B), made using [Heretic](https://github.com/p-e-w/heretic) v1.2.0
39
 
40
  ## Abliteration parameters
@@ -60,7 +90,6 @@ tags:
60
 
61
  -----
62
 
63
-
64
  # Qwen3.5-35B-A3B
65
 
66
  <img width="400px" src="https://qianwen-res.oss-accelerate.aliyuncs.com/logo_qwen3.5.png">
@@ -94,12 +123,10 @@ Qwen3.5 features the following enhancement:
94
 
95
  - **Next-Generation Training Infrastructure**: Near-100% multimodal training efficiency compared to text-only training and asynchronous RL frameworks supporting massive-scale agent scaffolds and environment orchestration.
96
 
97
-
98
  ![Benchmark Results](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3.5/Figures/qwen3.5_middle_size_score.png)
99
 
100
  For more details, please refer to our blog post [Qwen3.5](https://qwen.ai/blog?id=qwen3.5).
101
 
102
-
103
  ## Model Overview
104
 
105
  - Type: Causal Language Model with Vision Encoder
@@ -125,7 +152,6 @@ For more details, please refer to our blog post [Qwen3.5](https://qwen.ai/blog?i
125
  - MTP: trained with multi-steps
126
  - Context Length: 262,144 natively and extensible up to 1,010,000 tokens.
127
 
128
-
129
  ## Benchmark Results
130
 
131
  ### Language
@@ -951,7 +977,6 @@ For more details, please refer to our blog post [Qwen3.5](https://qwen.ai/blog?i
951
  > Qwen3.5 models operate in thinking mode by default, generating thinking content signified by `<think>\n...</think>\n\n` before producing the final responses.
952
  > To disable thinking content and obtain direct response, refer to the examples [here](#instruct-or-non-thinking-mode).
953
 
954
-
955
  For streamlined integration, we recommend using Qwen3.5 via APIs. Below is a guide to use Qwen3.5 via OpenAI-compatible API.
956
 
957
  ### Serving Qwen3.5
@@ -959,7 +984,6 @@ For streamlined integration, we recommend using Qwen3.5 via APIs. Below is a gui
959
  Qwen3.5 can be served via APIs with popular inference frameworks.
960
  In the following, we show example commands to launch OpenAI-Compatible API servers for Qwen3.5 models.
961
 
962
-
963
  > [!Important]
964
  > Inference efficiency and throughput vary significantly across frameworks.
965
  > We recommend using the latest framework versions to ensure optimal performance and compatibility.
@@ -1103,7 +1127,6 @@ chat_response = client.chat.completions.create(
1103
  print("Chat response:", chat_response)
1104
  ```
1105
 
1106
-
1107
  #### Image Input
1108
 
1109
  ```python
@@ -1239,7 +1262,6 @@ print("Chat response:", chat_response)
1239
  > [!Note]
1240
  > If you are using APIs from Alibaba Cloud Model Studio, in addition to changing `model`, please use `"enable_thinking": False` instead of `"chat_template_kwargs": {"enable_thinking": False}`.
1241
 
1242
-
1243
  ## Agentic Usage
1244
 
1245
  Qwen3.5 excels in tool calling capabilities.
@@ -1319,7 +1341,6 @@ print(responses)
1319
 
1320
  ### Qwen Code
1321
 
1322
-
1323
  [Qwen Code](https://github.com/QwenLM/qwen-code) is an open-source AI agent for the terminal, optimized for Qwen models. It helps you understand large codebases, automate tedious work, and ship faster.
1324
 
1325
  For more information, please refer to [Qwen Code](https://qwenlm.github.io/qwen-code-docs/).
@@ -1398,7 +1419,6 @@ To achieve optimal performance, we recommend the following settings:
1398
 
1399
  Alternatively, override the default values via engine startup parameters. For implementation details, refer to: [vLLM](https://github.com/vllm-project/vllm/pull/34330) / [SGLang](https://github.com/sgl-project/sglang/pull/18467).
1400
 
1401
-
1402
  ### Citation
1403
 
1404
  If you find our work helpful, feel free to give us a cite.
 
21
  > registered in the loaded model class's `state_dict()` were silently
22
  > dropped on save.
23
  >
24
+ > **Symptom:** See per-fix sections below.
25
  >
26
  > **Status:** fixed on 2026-05-02 by uploading `model-auxiliary.safetensors` and
27
  > patching `model.safetensors.index.json`. The repo now carries an
 
35
 
36
  <!-- aux-rescue-banner: end -->
37
 
38
+ <!-- aux-rescue-banner: begin -->
39
+
40
+ > ## ⚠️ Update 2026-05-02 — please re-pull this model
41
+ >
42
+ > An earlier upload of this repo had its MoE expert weights in
43
+ > per-expert (unfused) form: separate `experts.{N}.gate_proj.weight`,
44
+ > `up_proj.weight`, `down_proj.weight` instead of the fused 3D
45
+ > `experts.gate_up_proj` / `experts.down_proj` tensors the loader
46
+ > expects. PEFT/LoRA wrapping during abliteration converts fused
47
+ > 3D tensors into per-expert Linear modules; `merge_and_unload` +
48
+ > `save_pretrained` then writes them in that wrong layout.
49
+ >
50
+ > **Symptom:** See per-fix sections below.
51
+ >
52
+ > **Status:** fixed on 2026-05-02 by re-fusing the per-expert tensors
53
+ > back into 3D form (40 layers, 80 fused tensors)
54
+ > and patching `model.safetensors.index.json`. The repo now carries
55
+ > a `.moe_fuse.json` marker file so this fact is programmatically
56
+ > verifiable. The original per-expert keys remain in the main shards
57
+ > as harmless 'unexpected' keys at load time.
58
+ >
59
+ > Source used for shape reference: [`Qwen/Qwen3.5-35B-A3B`](https://huggingface.co/Qwen/Qwen3.5-35B-A3B)
60
+ > (heretic's abliteration is preserved — fusion uses the dest's
61
+ > per-expert weights, not source's).
62
+ >
63
+ > If you cloned this repo before 2026-05-02, please pull again.
64
+ > Repaired with [`moe-fuse`](https://github.com/timrohrbaugh/aux-rescue).
65
+
66
+ <!-- aux-rescue-banner: end -->
67
+
68
  # This is a decensored version of [Qwen/Qwen3.5-35B-A3B](https://huggingface.co/Qwen/Qwen3.5-35B-A3B), made using [Heretic](https://github.com/p-e-w/heretic) v1.2.0
69
 
70
  ## Abliteration parameters
 
90
 
91
  -----
92
 
 
93
  # Qwen3.5-35B-A3B
94
 
95
  <img width="400px" src="https://qianwen-res.oss-accelerate.aliyuncs.com/logo_qwen3.5.png">
 
123
 
124
  - **Next-Generation Training Infrastructure**: Near-100% multimodal training efficiency compared to text-only training and asynchronous RL frameworks supporting massive-scale agent scaffolds and environment orchestration.
125
 
 
126
  ![Benchmark Results](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3.5/Figures/qwen3.5_middle_size_score.png)
127
 
128
  For more details, please refer to our blog post [Qwen3.5](https://qwen.ai/blog?id=qwen3.5).
129
 
 
130
  ## Model Overview
131
 
132
  - Type: Causal Language Model with Vision Encoder
 
152
  - MTP: trained with multi-steps
153
  - Context Length: 262,144 natively and extensible up to 1,010,000 tokens.
154
 
 
155
  ## Benchmark Results
156
 
157
  ### Language
 
977
  > Qwen3.5 models operate in thinking mode by default, generating thinking content signified by `<think>\n...</think>\n\n` before producing the final responses.
978
  > To disable thinking content and obtain direct response, refer to the examples [here](#instruct-or-non-thinking-mode).
979
 
 
980
  For streamlined integration, we recommend using Qwen3.5 via APIs. Below is a guide to use Qwen3.5 via OpenAI-compatible API.
981
 
982
  ### Serving Qwen3.5
 
984
  Qwen3.5 can be served via APIs with popular inference frameworks.
985
  In the following, we show example commands to launch OpenAI-Compatible API servers for Qwen3.5 models.
986
 
 
987
  > [!Important]
988
  > Inference efficiency and throughput vary significantly across frameworks.
989
  > We recommend using the latest framework versions to ensure optimal performance and compatibility.
 
1127
  print("Chat response:", chat_response)
1128
  ```
1129
 
 
1130
  #### Image Input
1131
 
1132
  ```python
 
1262
  > [!Note]
1263
  > If you are using APIs from Alibaba Cloud Model Studio, in addition to changing `model`, please use `"enable_thinking": False` instead of `"chat_template_kwargs": {"enable_thinking": False}`.
1264
 
 
1265
  ## Agentic Usage
1266
 
1267
  Qwen3.5 excels in tool calling capabilities.
 
1341
 
1342
  ### Qwen Code
1343
 
 
1344
  [Qwen Code](https://github.com/QwenLM/qwen-code) is an open-source AI agent for the terminal, optimized for Qwen models. It helps you understand large codebases, automate tedious work, and ship faster.
1345
 
1346
  For more information, please refer to [Qwen Code](https://qwenlm.github.io/qwen-code-docs/).
 
1419
 
1420
  Alternatively, override the default values via engine startup parameters. For implementation details, refer to: [vLLM](https://github.com/vllm-project/vllm/pull/34330) / [SGLang](https://github.com/sgl-project/sglang/pull/18467).
1421
 
 
1422
  ### Citation
1423
 
1424
  If you find our work helpful, feel free to give us a cite.