-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Model parallel v2 llama finetuning notebook fixes #4646
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@@ -27,7 +27,7 @@ def parse_args(): # pylint: disable=too-many-statements | |||
opt_grp.add_argument("--seed", type=int, default=12345) | |||
opt_grp.add_argument("--same_seed", type=int, default=0) | |||
opt_grp.add_argument("--bf16", default=1, type=int, help="automatic mixed precision training") | |||
opt_grp.add_argument("--fp8", default=1, type=int, help="fp8 mixed precision training") | |||
opt_grp.add_argument("--fp8", default=0, type=int, help="fp8 mixed precision training") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you run into any issues with the default enabled? Normally, fp8 will only be enabled for models that support fp8 and should switch to bf16 for other cases.
Description of changes:
Testing done:
Ran smp-finetuning-llama-fsdp-tp.ipynb in sagemaker notebook and ensured sagemaker training job succeded
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.black-nb -l 100 {path}/{notebook-name}.ipynb
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.