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

pin pytorch #570

Merged
merged 3 commits into from
Feb 3, 2024
Merged

pin pytorch #570

merged 3 commits into from
Feb 3, 2024

Conversation

kning
Copy link
Contributor

@kning kning commented Feb 2, 2024

Pin pytorch to previous version; latest version is causing issues with the nvidia cuda image.

Type of Change

  • New Example
  • Example updates (Bug fixes, new features, etc.)
  • Other (changes to the codebase, but not to examples)

Checklist

  • Example is testable in synthetic monitoring system, or lambda-test: false is added to example frontmatter
  • Example does not require third-party dependencies to be installed locally
  • Example pins all dependencies and specifies a python_version for the base image
  • Example is documented with comments throughout, in a Literate Programming style.

@kning kning requested a review from aksh-at February 2, 2024 23:08
Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

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

Auto-approved 👍. This diff qualified for automatic approval and doesn't need follow up review.

@kning kning requested a review from mwaskom February 2, 2024 23:36
Copy link
Contributor

@mwaskom mwaskom left a comment

Choose a reason for hiding this comment

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

Awesome!

Comment on lines 70 to 71
"torchvision==0.16.2",
"torchaudio==2.1.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need these for this example?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah I think we don't

# Use the barebones hf-transfer package for maximum download speeds. No progress bar, but expect 700MB/s.
.env({"HF_HUB_ENABLE_HF_TRANSFER": "1"})
.run_function(
download_model_to_folder,
secret=Secret.from_name("huggingface-secret"),
secrets=[Secret.from_name("huggingface-secret")],
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch, thanks.

Comment on lines 68 to 69
"torchvision==0.16.2",
"torchaudio==2.1.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Same Q as above

@mwaskom
Copy link
Contributor

mwaskom commented Feb 2, 2024

Argh sorry about the tests failing on secret= here. I can fix that and we can rebase on top of it.

@mwaskom
Copy link
Contributor

mwaskom commented Feb 3, 2024

done: #571

should be good to rebase

@aksh-at aksh-at force-pushed the kning/fix-pytorch-pin branch from 4dc7a68 to ba078e5 Compare February 3, 2024 02:49
@aksh-at aksh-at merged commit c4e1d01 into main Feb 3, 2024
5 checks passed
@aksh-at aksh-at deleted the kning/fix-pytorch-pin branch February 3, 2024 02:54
@kning
Copy link
Contributor Author

kning commented Feb 3, 2024

awesome thanks!

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.

3 participants