Skip to content

Commit 638cc7a

Browse files
committed
fix position id
1 parent 66eb307 commit 638cc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specforge/modeling/draft/llama3_eagle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def forward(
681681
cos, sin = self.rotary_emb(query_states, seq_len=q_len + lck)
682682
cos, sin = cos.to(query_states.device), sin.to(query_states.device)
683683
query_states, key_states = apply_rotary_pos_emb(
684-
query_states, key_states, cos, sin, position_ids
684+
query_states, key_states, cos, sin, position_ids + lck
685685
)
686686

687687
key_states = repeat_kv(key_states, self.num_key_value_groups)

0 commit comments

Comments
 (0)