Greetings @knocheeri ,
After doing some research, it looks like there is currently no official support for Python 3.12 (classic compute clusters) in custom GPU containers. At the moment, the highest officially supported version on GPU runtimes is Python 3.10. To be clear, I am referring to classic clusters where you are allowed to install libraries, not serverless.
The GitHub example you referenced only provides native support for Python 3.10. While I’ve come across anecdotal reports of people attempting to force Python 3.12 into GPU containers, these efforts typically fail due to incompatibilities between driver/worker processes, Python path mismatches, and broader runtime environment conflicts.
Additionally, Databricks has not published any documented or officially tested upgrade path for moving GPU custom containers to Python 3.12. This means that even if you managed to build a custom Docker image with Python 3.12, you’d likely hit instability issues when integrating with the Databricks runtime (CUDA drivers, Spark executors, ML libraries, and other tightly coupled dependencies).
I hope this provides more context around the limitations you’re running into.
Cheers, Louis.