Skip to content

Refactor common download logic into cli.py #407

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

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Conversation

GregoryComer
Copy link
Member

Introduce handle_common_args() in cli.py. Move model download call into handle_common_args.

Test Plan:

rm -rf .model-artifacts/stories15M
python torchchat.py generate storiest15M
# Test again now that the model is downloaded
python torchchat.py generate storiest15M

python torchchat.py eval stories15M
python torchchat.py export stories15M

@GregoryComer GregoryComer requested a review from mikekgfb April 23, 2024 05:36
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 23, 2024
Copy link
Contributor

@mikekgfb mikekgfb left a comment

Choose a reason for hiding this comment

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

Thank you!

@GregoryComer GregoryComer merged commit bb96974 into main Apr 23, 2024
@GregoryComer GregoryComer deleted the download-cli-py branch April 23, 2024 06:21
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 Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants