Skip to content

Commit 0f180cc

Browse files
committed
fix: different handle to A_log in Qwen3.5
- Change-Id: I1cd0460eab8545a54a418a7a3fcc9057aa0d0785
1 parent 08f9d41 commit 0f180cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/llm/Qwen3_5Converter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,8 @@ def gen_block_linear_attn_mlir(self, idx: int):
12241224
out_proj = TOP_PATH + "linear_attn.out_proj"
12251225
weight_file = f"block_{idx}_top_weights.npz"
12261226
A_log_data = self.model.read(A_log)
1227-
A_log_data = -np.exp(A_log_data)
1227+
if not isinstance(self.loader, GGUFModelHandle):
1228+
A_log_data = -np.exp(A_log_data)
12281229
chunk_size = 64
12291230

12301231
weight_dict = {A_log + ".weight": A_log_data}

0 commit comments

Comments
 (0)