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

Fix config seed null error #186

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Fix config seed null error #186

merged 1 commit into from
Jan 12, 2024

Conversation

gokulavasan
Copy link
Contributor

Changelog

  • Without this, we hit an error:

Traceback (most recent call last):
File "/home/daniellepintz/torchtune/recipes/finetune_llm.py", line 330, in
sys.exit(recipe(kwargs))
File "/home/daniellepintz/torchtune/recipes/finetune_llm.py", line 61, in recipe
seed(kwargs["seed"] + rank)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

Test plan

  • Tested using

tune finetune_llm --config alpaca_llama2_finetune and finetune starts without the above error

Copy link

netlify bot commented Jan 12, 2024

Deploy Preview for torchtune-preview ready!

Name Link
🔨 Latest commit e3976e1
🔍 Latest deploy log https://app.netlify.com/sites/torchtune-preview/deploys/65a16fc6ebad3600080d30a9
😎 Deploy Preview https://deploy-preview-186--torchtune-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 12, 2024
Copy link
Contributor

@daniellepintz daniellepintz 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!!

@gokulavasan gokulavasan merged commit 5ff0034 into main Jan 12, 2024
15 checks passed
@gokulavasan gokulavasan deleted the fix-config-failure branch January 12, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants