Update funpack.py

This commit is contained in:
aimfordeb
2026-04-19 05:22:52 +03:00
committed by GitHub
parent d67aaf5250
commit 2b5ae7c9b7
+1 -1
View File
@@ -253,7 +253,7 @@ class FunPackGemmaEmbeddingRefiner:
else:
new_delta = torch.randn_like(reference) * expl * 0.45
# Apply token importance — safely match current embedding length
# Apply token importance — always match current embedding length
if token_importance and cur_embeds.dim() > 1:
if cur_embeds.dim() == 3:
seq_len = cur_embeds.shape[1]