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 #159] Negative/Zero KL Divergence for Qwen3 LLMs #94

Closed
opened 2026-11-01 04:17:28 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @0xA50C1A1 on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/159

Heretic is producing invalid KL divergence values (-0.0000 and 0.0000) for Qwen3 8B/14B LLMs, while correctly working with Qwen3-4B-Instruct-2507. This appears to be specific to reasoning variants.

Running trial 96 of 100...
* Parameters:
  * direction_index = 22.47
  * attn.o_proj.max_weight = 1.42
  * attn.o_proj.max_weight_position = 24.63
  * attn.o_proj.min_weight = 0.26
  * attn.o_proj.min_weight_distance = 19.68
  * mlp.down_proj.max_weight = 1.35
  * mlp.down_proj.max_weight_position = 24.36
  * mlp.down_proj.min_weight = 1.31
  * mlp.down_proj.min_weight_distance = 18.66
* Resetting model...
* Abliterating...
* Evaluating...
  * Obtaining first-token probability distributions...
  * KL divergence: -0.0000
  * Counting model refusals...
  * Refusals: 22/100

Elapsed time: 10m 54s
Estimated remaining time: 27s
Resident system RAM: 13.71 GB
Allocated GPU VRAM: 27.77 GB
Reserved GPU VRAM: 31.10 GB

Running trial 97 of 100...
* Parameters:
  * direction_index = 20.46
  * attn.o_proj.max_weight = 1.44
  * attn.o_proj.max_weight_position = 24.12
  * attn.o_proj.min_weight = 0.18
  * attn.o_proj.min_weight_distance = 17.06
  * mlp.down_proj.max_weight = 1.31
  * mlp.down_proj.max_weight_position = 26.23
  * mlp.down_proj.min_weight = 1.13
  * mlp.down_proj.min_weight_distance = 16.42
* Resetting model...
* Abliterating...
* Evaluating...
  * Obtaining first-token probability distributions...
  * KL divergence: 0.0000
  * Counting model refusals...
  * Refusals: 59/100

I think this is related to #141.

Originally created by @0xA50C1A1 on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/159 Heretic is producing invalid KL divergence values (-0.0000 and 0.0000) for Qwen3 8B/14B LLMs, while correctly working with Qwen3-4B-Instruct-2507. This appears to be specific to reasoning variants. ``` Running trial 96 of 100... * Parameters: * direction_index = 22.47 * attn.o_proj.max_weight = 1.42 * attn.o_proj.max_weight_position = 24.63 * attn.o_proj.min_weight = 0.26 * attn.o_proj.min_weight_distance = 19.68 * mlp.down_proj.max_weight = 1.35 * mlp.down_proj.max_weight_position = 24.36 * mlp.down_proj.min_weight = 1.31 * mlp.down_proj.min_weight_distance = 18.66 * Resetting model... * Abliterating... * Evaluating... * Obtaining first-token probability distributions... * KL divergence: -0.0000 * Counting model refusals... * Refusals: 22/100 Elapsed time: 10m 54s Estimated remaining time: 27s Resident system RAM: 13.71 GB Allocated GPU VRAM: 27.77 GB Reserved GPU VRAM: 31.10 GB Running trial 97 of 100... * Parameters: * direction_index = 20.46 * attn.o_proj.max_weight = 1.44 * attn.o_proj.max_weight_position = 24.12 * attn.o_proj.min_weight = 0.18 * attn.o_proj.min_weight_distance = 17.06 * mlp.down_proj.max_weight = 1.31 * mlp.down_proj.max_weight_position = 26.23 * mlp.down_proj.min_weight = 1.13 * mlp.down_proj.min_weight_distance = 16.42 * Resetting model... * Abliterating... * Evaluating... * Obtaining first-token probability distributions... * KL divergence: 0.0000 * Counting model refusals... * Refusals: 59/100 ``` I think this is related to #141.
Author
Owner

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

This should be fixed in #194.

<!-- gh-comment-id:4065815608 --> @p-e-w commented on GitHub (Mar 16, 2026): This should be fixed in #194.
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#94
No description provided.