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 debugpy CI issue; Accept pytorch 2 for python >3.7 #57

Merged
merged 2 commits into from Jun 9, 2023

Conversation

luciaquirke
Copy link
Collaborator

@luciaquirke luciaquirke commented Mar 26, 2023

Proposal

Accept pytorch version 2 when python >3.7.

Updating this also made me realise that this repo is affected by microsoft/debugpy#1246, so I have pinned poetry to fix.

Motivation

I want to support pytorch version 2 in TransformerLens so I can support MPS (M1 GPU acceleration) but can't because of the range restriction on CircuitsVis's pytorch dependency.

Pitch

Pytorch is pinned to ^1.1.

In Poetry dependency specification, the caret symbol ^ prevents the left-most non-zero digit in the dependency version number from being modified. In our case this prevents users from updating to PyTorch 2.0. This limitation will restrict CircuitsVis' user base, as users will want to use both PyTorch 2.0 and CircuitsVis in their projects. There's a related discussion in TransformerLens.

Pytorch 2 requires python >3.7 so we can only bump the dependency for users in this version range.

Checklist

  • I have checked that there is no similar issue in the repo (required)

@luciaquirke luciaquirke changed the title Accept pytorch 2 for python >3.7 [WIP] Accept pytorch 2 for python >3.7 Mar 26, 2023
@luciaquirke luciaquirke changed the title [WIP] Accept pytorch 2 for python >3.7 Accept pytorch 2 for python >3.7 Mar 26, 2023
@luciaquirke luciaquirke changed the title Accept pytorch 2 for python >3.7 Fix debugpy CI issue; Accept pytorch 2 for python >3.7 Mar 26, 2023
@stprior stprior mentioned this pull request May 4, 2023
@alan-cooney alan-cooney merged commit 653081b into alan-cooney:main Jun 9, 2023
6 checks passed
@alan-cooney
Copy link
Owner

Thanks for the PR!

@luciaquirke
Copy link
Collaborator Author

@alan-cooney could we please do a release with this update? Keen to use it 😄

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

2 participants