1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #190] 1.20 cannot load Qwen/Qwen3.5-27B #111

Closed
opened 2026-11-01 04:17:37 +07:00 by bsakaguchi · 13 comments
Owner

Originally created by @krpr on GitHub (Feb 25, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/190

Qwen3.5-32B is a multimodal model, just released in last 24h.
When use heretic Qwen/Qwen3.5-27B, it return with
AttributeError: 'Qwen3_5DecoderLayer' object has no attribute 'self_attn'
Maybe it's a transformer issue?

Originally created by @krpr on GitHub (Feb 25, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/190 Qwen3.5-32B is a multimodal model, just released in last 24h. When use ```heretic Qwen/Qwen3.5-27B```, it return with ```AttributeError: 'Qwen3_5DecoderLayer' object has no attribute 'self_attn'``` Maybe it's a transformer issue?
Author
Owner

@coder3101 commented on GitHub (Feb 25, 2026):

https://huggingface.co/coder3101/Qwen3.5-27B-heretic

<!-- gh-comment-id:3958514533 --> @coder3101 commented on GitHub (Feb 25, 2026): https://huggingface.co/coder3101/Qwen3.5-27B-heretic
Author
Owner

@krpr commented on GitHub (Feb 25, 2026):

https://huggingface.co/coder3101/Qwen3.5-27B-heretic

holly *!
👍👍👍 but how did you fix the AttributeError?

<!-- gh-comment-id:3958575866 --> @krpr commented on GitHub (Feb 25, 2026): > https://huggingface.co/coder3101/Qwen3.5-27B-heretic holly *! 👍👍👍 but how did you fix the AttributeError?
Author
Owner

@p-e-w commented on GitHub (Feb 25, 2026):

@krpr

Join the Discord, this is currently being discussed there.

<!-- gh-comment-id:3958880354 --> @p-e-w commented on GitHub (Feb 25, 2026): @krpr Join the Discord, this is currently being discussed there.
Author
Owner

@qazwsx954 commented on GitHub (Feb 25, 2026):

正在尝试

<!-- gh-comment-id:3958998276 --> @qazwsx954 commented on GitHub (Feb 25, 2026): 正在尝试
Author
Owner

@keypaa commented on GitHub (Feb 26, 2026):

Has anyone started to tinker with the Qwen 3.5 35B A3B ? I'm also facing issues.

<!-- gh-comment-id:3965508760 --> @keypaa commented on GitHub (Feb 26, 2026): Has anyone started to tinker with the Qwen 3.5 35B A3B ? I'm also facing issues.
Author
Owner

@p-e-w commented on GitHub (Feb 26, 2026):

Fix coming soon.

<!-- gh-comment-id:3966147291 --> @p-e-w commented on GitHub (Feb 26, 2026): Fix coming soon.
Author
Owner

@timrohrbaugh commented on GitHub (Feb 26, 2026):

completed for all of them. but lots of one off fixes for things like fused expert weights. The final trick is you need to modify the weights, store them and at reset put them back each trial.
or to say that was the only way I was able to get past the issues and make it decently fast.

Image

merge considerations:

Image
<!-- gh-comment-id:3968244909 --> @timrohrbaugh commented on GitHub (Feb 26, 2026): completed for all of them. but lots of one off fixes for things like fused expert weights. The final trick is you need to modify the weights, store them and at reset put them back each trial. or to say that was the only way I was able to get past the issues and make it decently fast. <img width="785" height="704" alt="Image" src="https://github.com/user-attachments/assets/36513b41-e79d-4d7f-891c-5d76705efeb3" /> merge considerations: <img width="770" height="433" alt="Image" src="https://github.com/user-attachments/assets/74b3f0ee-36f1-447c-98ca-4ce3f455e905" />
Author
Owner

@markrmiller commented on GitHub (Feb 26, 2026):

Interesting - I did something similar two days ago to abliterate Qwen3 Coder Next, except I did the projections with the LoRA and then fold them back in during merge (with a small approximation error). So no caching any weights, but in return for that approx error.

I ended up with KL divergence of 0.1038 and 8 out of 100 refusals.

<!-- gh-comment-id:3969657693 --> @markrmiller commented on GitHub (Feb 26, 2026): Interesting - I did something similar two days ago to abliterate Qwen3 Coder Next, except I did the projections with the LoRA and then fold them back in during merge (with a small approximation error). So no caching any weights, but in return for that approx error. I ended up with KL divergence of 0.1038 and 8 out of 100 refusals.
Author
Owner

@timrohrbaugh commented on GitHub (Feb 27, 2026):

markmiller: exactly. I had to do the same thing for that model, which seemed like a hack deviation but for me it was a warm up for 3.5 which really drove me into some long nights. I suspect we are fighting a cold war and both side of the battle will be inventing defenses and strategies to remove. This is just the start of many years of this if history is any indication. :)

<!-- gh-comment-id:3970488305 --> @timrohrbaugh commented on GitHub (Feb 27, 2026): markmiller: exactly. I had to do the same thing for that model, which seemed like a hack deviation but for me it was a warm up for 3.5 which really drove me into some long nights. I suspect we are fighting a cold war and both side of the battle will be inventing defenses and strategies to remove. This is just the start of many years of this if history is any indication. :)
Author
Owner

@markrmiller commented on GitHub (Feb 27, 2026):

I checked the kl divergence of the model + lora against the model with lora folded in using that method and it's not too bad: KL divergence: 0.001240

<!-- gh-comment-id:3973952543 --> @markrmiller commented on GitHub (Feb 27, 2026): I checked the kl divergence of the model + lora against the model with lora folded in using that method and it's not too bad: KL divergence: 0.001240
Author
Owner

@imezx commented on GitHub (Mar 8, 2026):

use pip install --force-reinstall --no-deps git+https://github.com/p-e-w/heretic.git, and ensure you have latest version of transformer too.

<!-- gh-comment-id:4019051410 --> @imezx commented on GitHub (Mar 8, 2026): use `pip install --force-reinstall --no-deps git+https://github.com/p-e-w/heretic.git`, and ensure you have latest version of transformer too.
Author
Owner

@p-e-w commented on GitHub (Mar 16, 2026):

Fixed on master.

<!-- gh-comment-id:4065821609 --> @p-e-w commented on GitHub (Mar 16, 2026): Fixed on master.
Author
Owner

@larpedd commented on GitHub (Mar 25, 2026):

tysm <3

<!-- gh-comment-id:4123428439 --> @larpedd commented on GitHub (Mar 25, 2026): tysm <3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#111
No description provided.