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

[Feature] Core: Python 3.12 wheel #40211

Closed
austinnichols101 opened this issue Oct 9, 2023 · 26 comments
Closed

[Feature] Core: Python 3.12 wheel #40211

austinnichols101 opened this issue Oct 9, 2023 · 26 comments
Assignees
Labels
core Issues that should be addressed in Ray Core enhancement Request for new feature and/or capability P1 Issue that should be fixed within a few weeks

Comments

@austinnichols101
Copy link

Description

Add support for Ray with python 3.12

Python 3.12.0 final released on Monday, 2023-10-02.

Use case

  • The asyncio package has had a number of performance improvements, with some benchmarks showing a 75% speed up.

  • Replace the builtin hashlib implementations of SHA1, SHA3, SHA2-384, SHA2-512, and MD5 with formally verified code from the HACL* project. These builtin implementations remain as fallbacks that are only used when OpenSSL does not provide them.

  • CPython support for the Linux perf profiler

  • Stack overflow protection on supported platforms

https://docs.python.org/3.12/whatsnew/3.12.html

@austinnichols101 austinnichols101 added enhancement Request for new feature and/or capability triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Oct 9, 2023
@EwoutH
Copy link

EwoutH commented Oct 15, 2023

I would find Python 3.12 support including wheels also very welcome!

@jjyao jjyao added core Issues that should be addressed in Ray Core P1 Issue that should be fixed within a few weeks and removed triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Oct 23, 2023
@dss010101
Copy link

dss010101 commented Nov 18, 2023

how is this going? it's the only thing that is pinning us to 3.11.x
rebuilding our amazon ami linux based container and seeing this:

#0 2.371 ERROR: Could not find a version that satisfies the requirement ray[default] (from versions: none)

@Zmrzka
Copy link

Zmrzka commented Nov 22, 2023

same here, ray is last library that is holding us on 3.11

@dss010101
Copy link

are we still pinned < 3.12? feel this should be higher priority as you're asking devs to choose between the language or your library.

@virtualluke
Copy link
Contributor

Can any devs speak to a rough timeframe for 3.12 support?

@MehulBatra
Copy link

any updates on this, when can we expect Python3.12 support?

@cclauss
Copy link
Contributor

cclauss commented Jan 13, 2024

@can-anyscale Given Python 3.12's substantial performance improvements in asyncio and several other modules, can we please understand what are the blockers to migrating to Py3.12?

Is Python 3.12 compatibility related to #41373 or are there unrelated todos?

@can-anyscale
Copy link
Collaborator

Hi @cclauss and folks, it's exciting to see the community enthusiasm for Python 3.12. We are still behind on this. At this point, we are focusing on supporting ray-ml for python 3.11 (as you might know, ray supports the release of 3 artifacts ray, ray docker and ray-ml docker, and we are way too overdue for the ray-ml community), which is planned for 2.11 the latest (#42343). The plan is to look into Python 3.12 after that. CC: @richardliaw

@dss010101
Copy link

any further updates?

@MARMOTatZJU
Copy link

+1, I wish to move to ray rllib for its efficiency in RL training. But my project needs Python>=3.12.

@can-anyscale
Copy link
Collaborator

Please follow #42343 first for the support of ml/rllib for python 3.11. Note that python 3.11 is already supported for ray-core. We'll work on supoprting python 3.12 after that.

@abitrolly
Copy link

With #42343 closed, what is left to get Ray for Python 3.12 out?

@dss010101
Copy link

unfortunately, we went back to python multi-processing. ray is feeling a bit neglected and that's concerning for a production system. A shame cause i did see the benefits of it and sold it to the team....problem now is given the project is in prod...its hard sell to go back .

@can-anyscale
Copy link
Collaborator

Hi folks, thank you for your continuous interest. We take it seriously that Ray continues to be your top choices for building ML applications. We're actively discussing this internally, and I hope to provide you all with a more concrete timeline for the upgrade this week or next.

@anyscalesam
Copy link
Collaborator

@dss010101 could we follow up on Ray Slack; would love to learn more about your go to production plans and how we could help.

My handle is "anyscalesam"

@alkment
Copy link

alkment commented May 9, 2024

@can-anyscale

Any update ?

@can-anyscale
Copy link
Collaborator

hi yes, @aslonnie will oversee the overall upgrading effort going forward; CC: @jjyao for python 3.12 upgrade in particular, my understanding is somewhere between June 1st-15th

@cclauss
Copy link
Contributor

cclauss commented May 10, 2024

Given that Python 3.13 beta is now released, can the automated tests also be started on that?

@tonal
Copy link

tonal commented May 22, 2024

#45477

@anyscalesam
Copy link
Collaborator

JFYI to community - we (Anyscale) are actively working on enabling this.

pcmoritz added a commit that referenced this issue Jun 2, 2024
Add python 3.12 wheel support. Please follow
https://docs.google.com/document/d/1-wmTLYwDA9QOHZRQ5IeUamyaTi3J0JorxvlQDbzodys/edit
for more details on the roll out phase for this support.

TL;DR; this PR will support python 3.12 as a nightly wheel; other
release artifacts will take more work

Related issue: #40211

Test:
- CI

Signed-off-by: can <[email protected]>
Co-authored-by: Philipp Moritz <[email protected]>
@can-anyscale
Copy link
Collaborator

can-anyscale commented Jun 4, 2024

FYI, we're releasing the Ray wheel for Python 3.12 in phases:

  • First Phase: The nightly wheel version is now available. You can find the download and installation instructions here. Consider this an alpha release—your feedback and bug reports during this phase will be greatly appreciated.

  • Second Phase: The general availability (GA) release version of the wheel will be made available on PyPI. This is not yet available. This version will undergo rigorous testing to ensure all core and library features are fully functional. We'll provide more updates after further assessment.

Thanks!

ryanaoleary pushed a commit to ryanaoleary/ray that referenced this issue Jun 6, 2024
Add python 3.12 wheel support. Please follow
https://docs.google.com/document/d/1-wmTLYwDA9QOHZRQ5IeUamyaTi3J0JorxvlQDbzodys/edit
for more details on the roll out phase for this support.

TL;DR; this PR will support python 3.12 as a nightly wheel; other
release artifacts will take more work

Related issue: ray-project#40211

Test:
- CI

Signed-off-by: can <[email protected]>
Co-authored-by: Philipp Moritz <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this issue Jun 6, 2024
Add python 3.12 wheel support. Please follow
https://docs.google.com/document/d/1-wmTLYwDA9QOHZRQ5IeUamyaTi3J0JorxvlQDbzodys/edit
for more details on the roll out phase for this support.

TL;DR; this PR will support python 3.12 as a nightly wheel; other
release artifacts will take more work

Related issue: ray-project#40211

Test:
- CI

Signed-off-by: can <[email protected]>
Co-authored-by: Philipp Moritz <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>
richardsliu pushed a commit to richardsliu/ray that referenced this issue Jun 12, 2024
Add python 3.12 wheel support. Please follow
https://docs.google.com/document/d/1-wmTLYwDA9QOHZRQ5IeUamyaTi3J0JorxvlQDbzodys/edit
for more details on the roll out phase for this support.

TL;DR; this PR will support python 3.12 as a nightly wheel; other
release artifacts will take more work

Related issue: ray-project#40211

Test:
- CI

Signed-off-by: can <[email protected]>
Co-authored-by: Philipp Moritz <[email protected]>
Signed-off-by: Richard Liu <[email protected]>
@mstfbl
Copy link

mstfbl commented Jun 21, 2024

Hi @can-anyscale @anyscalesam, any updates on this? The Ray project is very much being held back without Python 3.12 support.

@can-anyscale
Copy link
Collaborator

@mstfbl and everyone, thank you for your feedback. We hear you, and delivering on this is our top priority. However, we have many significant obstacles to address. We aim to keep the community updated more regularly on this matter.

  • The experimental version of Python 3.12 is now available: Python 3.12 beta support #45904.
  • My current work to integrate Python 3.12 into the entire Ray ecosystem can be found here: Can p12 01 #45726. This task is highly complex since Ray supports numerous ecosystems and dependencies, many of which do not yet support Python 3.12 (e.g., Horovod, Gymnasium, Sklearn, MosaicML, among others). We are making strategic decisions to allow the community to benefit from parts of Ray, rather than delaying an entire Ray release. Stay tuned for updates.

Please provide your feedback at #45904. We will maintain more regular communication on this topic there. Thank you.

@austinnichols101
Copy link
Author

Python 3.13 released
https://www.python.org/downloads/release/python-3130

@Superskyyy
Copy link
Contributor

Python 3.13 released python.org/downloads/release/python-3130

#47933 ref

@abitrolly
Copy link

Looks like this can be closed https://pypi.org/project/ray/#files

@aslonnie aslonnie closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues that should be addressed in Ray Core enhancement Request for new feature and/or capability P1 Issue that should be fixed within a few weeks
Projects
None yet
Development

No branches or pull requests