Skip to content
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

Disable logging during precompilation #539

Merged
merged 10 commits into from
Mar 29, 2024

Conversation

michaelbenayoun
Copy link
Member

@michaelbenayoun michaelbenayoun commented Mar 28, 2024

What does this PR do?

  • Disables logging during precompilation. This is because neuron_parallel_compile reads the logs to extract the HLO graphs to compile. For some reason, strange characters are logged which makes neuron_parallel_compile fail when it tries to read the file, resulting in only a small portion of the total number of graphs being compiled. This in turn results in compilation during actual training which makes things prohibitively long. To avoid all of this we simply do not log.
  • Sets the main process fo callbacks to be dp_rank=tp_rank=0 and pp_rank = pp_size - 1 under PP setting so that Wandb and other callback can actually track the loss. While this is not ideal, and will be improved in the coming days, it works for now.

@michaelbenayoun michaelbenayoun force-pushed the disable_logging_during_precompilation branch from ae57c3f to 7095426 Compare March 28, 2024 15:51
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@michaelbenayoun michaelbenayoun marked this pull request as ready for review March 28, 2024 16:22
Copy link
Collaborator

@dacorvo dacorvo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@dacorvo
Copy link
Collaborator

dacorvo commented Mar 29, 2024

The inf2 builders have changed, and for the TGI workflow that uses the Makefile, it is missing the gawk package that was previously there.

@michaelbenayoun michaelbenayoun merged commit e908847 into main Mar 29, 2024
10 of 11 checks passed
@michaelbenayoun michaelbenayoun deleted the disable_logging_during_precompilation branch March 29, 2024 10:38
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.

4 participants