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

Quick pull request resolving #8 now pytorch 1.13.1 is released #13

Merged
merged 4 commits into from
Jan 26, 2023

Conversation

philswatton
Copy link
Contributor

Installation now works fine without OS/architecture-specific URLs

@lannelin
Copy link
Contributor

just pulling down to verify on my x86 mac with a fresh environment install, @philswatton have you verified the same on your ARM-based laptop?

Copy link
Contributor

@lannelin lannelin left a comment

Choose a reason for hiding this comment

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

can confirm this works on my x86 mac with fresh poetry environment
once poetry install was complete I was able to run tests successfully.

(I'm a bit surprised it didn't complain about the arm specific stuff in poetry.lock but will take the win!)

haven't "approved" as think should be verified on an arm machine first but then happy for this to be merged. Nice one.

Copy link
Contributor

@jack89roberts jack89roberts left a comment

Choose a reason for hiding this comment

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

poetry install
poetry run pytest

works for me too (x86 Mac). I do get a load of warnings from pl_bolts though:

pl_bolts/callbacks/data_monitor.py:20: UnderReviewWarning: The feature warn_missing_pkg is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
    warn_missing_pkg("wandb")

pl_bolts/models/self_supervised/amdim/amdim_module.py:35: UnderReviewWarning: The feature generate_power_seq is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
    "lr_options": generate_power_seq(LEARNING_RATE_CIFAR, 11),

pl_bolts/models/self_supervised/amdim/amdim_module.py:93: UnderReviewWarning: The feature FeatureMapContrastiveTask is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
    contrastive_task: Union[FeatureMapContrastiveTask] = FeatureMapContrastiveTask("01, 02, 11"),

pl_bolts/losses/self_supervised_learning.py:234: UnderReviewWarning: The feature AmdimNCELoss is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
    self.nce_loss = AmdimNCELoss(tclip)

pl_bolts/datamodules/experience_source.py:18: UnderReviewWarning: The feature warn_missing_pkg is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
    warn_missing_pkg("gym")

pl_bolts/callbacks/vision/confused_logit.py:16: UnderReviewWarning: The feature warn_missing_pkg is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
    warn_missing_pkg("matplotlib")

@lannelin
Copy link
Contributor

ah yes these warnings are annoying. @philswatton maybe worth a quick look but if it's not trivial to fix (or filter/ignore) then let's raise a separate issue and come back to it when we've got some time.

@philswatton
Copy link
Contributor Author

Happy to confirm all tests still pass on my arm laptop

I've added a filter to pytest. We still get the count of warnings (106) but they're no longer printed out when testing. They're all UnderReviewWarning from pl_bolts.utils.stability (and therefore from from pl_bolts.datamodules import CIFAR10DataModule, l4 in src/modsim2/data/loader.py) as far as I can tell, as after adding that filter no more warnings are printed out

Will merge the PR now

@philswatton
Copy link
Contributor Author

Happy to confirm all tests still pass on my arm laptop

I've added a filter to pytest. We still get the count of warnings (106) but they're no longer printed out when testing. They're all UnderReviewWarning from pl_bolts.utils.stability (and therefore from from pl_bolts.datamodules import CIFAR10DataModule, l4 in src/modsim2/data/loader.py) as far as I can tell, as after adding that filter no more warnings are printed out

Will merge the PR now

At least no more are printed out while running pytest - they'll still print to console when running python outside of that!

@philswatton philswatton merged commit a59187f into develop Jan 26, 2023
@philswatton philswatton deleted the 8-pytorch branch January 26, 2023 12:00
@jack89roberts
Copy link
Contributor

People have raised issues about some of these with lightning-bolts, e.g. Lightning-Universe/lightning-bolts#563

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.

None yet

3 participants