Skip to content

fix uneven heads issue#25

Merged
delock merged 1 commit intodelock:gma/run-opt-branchfrom
Yejing-Lai:lyj/fix_uneven_heads
Oct 31, 2023
Merged

fix uneven heads issue#25
delock merged 1 commit intodelock:gma/run-opt-branchfrom
Yejing-Lai:lyj/fix_uneven_heads

Conversation

@Yejing-Lai
Copy link

Make AutoTP work when split_shape % num_kv_heads != 0.

@@ -20,16 +20,13 @@ def get_num_kv_heads():
def get_shard_size(total_size, mp_size, rank=None):
global num_kv_heads
# When we have num_kv_heads defined, uneven division is possible, otherwise enforce even division
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change 'otherwise enforce even division' to 'otherwise enforce near even division'

@Yejing-Lai Yejing-Lai force-pushed the lyj/fix_uneven_heads branch from 9c0aff6 to 26bb7c7 Compare October 31, 2023 08:20
@delock delock merged commit 57ff508 into delock:gma/run-opt-branch Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants