Skip to content

Conversation

@adamjstewart
Copy link
Contributor

@adamjstewart adamjstewart commented May 28, 2023

We should probably test Python 3.11 in CI so that something like #1649 doesn't reoccur.

@adamjstewart adamjstewart changed the title Add Python 3.11 support Test Python 3.11 support May 28, 2023
python: ['3.10']
torch: ['1.13.0']
torchvision: ['0.14.0']
python: ['3.11']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might be better to test the full range of supported Python versions

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@adamjstewart
Copy link
Contributor Author

Are these failures due to Python 3.11? It seems library-specific.

@rwightman
Copy link
Collaborator

@adamjstewart no, it's due to PyTorch 2.0 actually, and change in optimizer interface for class hierarchy. It's not hard to fix, a bit ugly, have it had coded in my cross platform win/osx test machines, but a reason I haven't switched to 2.0 in the tests for github runners yet...

@rwightman
Copy link
Collaborator

rwightman commented Jun 1, 2023

@adamjstewart fyi, the only compat issue is the 'Lookahead' optimizer, which is exercised in tests, but not commonly used so the surface area is minimal

@adamjstewart
Copy link
Contributor Author

Thanks, I'll remove the Spack constraint I added.

@rwightman
Copy link
Collaborator

@adamjstewart I added the fix for optimizer on main

@rwightman
Copy link
Collaborator

@adamjstewart FYI, forgot to mention, there is a bug in torchscript w/ Python 3.11 ... I've reported it to torch team but not at all clear when they intend to fix it. No issues with Python 3.10 and nothing to do with timm.

@adamjstewart
Copy link
Contributor Author

Is Python 3.11 testing still held up by this torchscript bug? Wondering if I should just close this PR and let you handle testing once it's fixed.

@adamjstewart
Copy link
Contributor Author

Going to close this PR for now but let me know when 3.11 is supported and I can reopen.

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