Fix graph replay: remove extra token_id arg from forward_attention call
The forward_attention() signature has no token_id parameter, but the graph replay path was passing dec_tid32_per_gpu[gpu] between positions and compressor — causing the int tensor to be interpreted as compressor and triggering AttributeError: 'int' object has no attribute 'ratio'
This commit is contained in:
@@ -1841,7 +1841,7 @@ def main():
|
||||
# Run full attention eagerly (compressor + indexer + FMHA + o_proj)
|
||||
F_attn, _ = forward_attention(
|
||||
x_normed, layer_w[li], li, cfg, *rope_caches[gpu],
|
||||
kv_caches[li], dec_pos_per_gpu[gpu], dec_tid32_per_gpu[gpu],
|
||||
kv_caches[li], dec_pos_per_gpu[gpu],
|
||||
compressors.get(li), indexers.get(li), prod_lins.get(li),
|
||||
q_heads=q_heads, kv_3d=kv_3d, # pass pre-computed q/kv from graph A
|
||||
comp_rope_cos=comp_rope_caches[gpu][0] if comp_rope_caches else None,
|
||||
|
||||
Reference in New Issue
Block a user