You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop the unused kv-head override from the shard-size helpers
The override existed because get_shard_size read a process-wide num_kv_heads
that was only set during AutoTP replacement. The inference engine patches the
alibi helpers before that happens, so it probed the head count itself and passed
it in to bypass the uninitialized global. That was the parameter's only caller.
With the count carried by a per-model AutoTPMeta, the alibi path receives its
own model's value like everyone else, and the previous commit removed the
round trip that read meta.num_kv_heads only to pass it straight back. Nothing
outside tp_shard supplies the argument now, so remove it and the two tests
written against it; get_shard_size has a single source for the head count again.
Signed-off-by: Guokai Ma <guokai.ma@intel.com>
0 commit comments