Skip to content

fix pretrain gpt and llama bug #476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

9LLPPLL6
Copy link

@9LLPPLL6 9LLPPLL6 commented May 8, 2025

Fixed some issues when running gpt and llama pre-training

@@ -1654,7 +1654,7 @@ def get_num_experts_per_layer(num_experts: list, num_layers: int, expert_interva
num_experts = num_experts * (num_layers // expert_interval)
experts_per_layer = []
for i in range(num_layers):
layer_num = i + 1 + offset

Choose a reason for hiding this comment

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

Hi, why do we need to delete this offset ?

Copy link
Author

Choose a reason for hiding this comment

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

This would cause num_experts to go out of bounds
See this issue for details: issue

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