use cuda 12.9.1 and add python 3.12 to base images#3367
Conversation
📝 WalkthroughWalkthroughExpands CI/CD workflow matrices by adding CUDA 12.9.1 and 13.0.0 configurations with Python 3.12 and PyTorch 2.9.1 to build-base and build-base-uv sections in base.yml, and adds Python 3.12 to the test matrix in tests.yml. Configuration-only changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/tests.yml:
- Around line 57-58: Update the GitHub Actions workflow to include Python 3.12
in the pytest-sdist job matrix: locate the pytest-sdist job in
.github/workflows/tests.yml and add "3.12" to the python_version matrix (the
matrix key and the job name pytest-sdist are the targets); ensure the matrix
mirrors the pytest job's python_version list so pytest-sdist runs for both 3.11
and 3.12 unless there is an intentional reason to keep it out, in which case add
a comment documenting the limitation.
🧹 Nitpick comments (1)
.github/workflows/base.yml (1)
54-77: Consider adding e2e test coverage for new configurations.The new CUDA 12.9.1 and Python 3.12 base images are being built, but the e2e tests in
tests.yml(docker-e2e-tests) don't yet include corresponding matrix entries. You may want to add e2e coverage for these configurations in a follow-up PR to validate the images work correctly in GPU environments.
| python_version: ["3.11", "3.12"] | ||
| pytorch_version: ["2.8.0", "2.9.0", "2.9.1"] |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
# First, let's examine the .github/workflows/tests.yml file
# Check the pytest job around line 57 and pytest-sdist around line 147
head -170 .github/workflows/tests.yml | tail -120 | cat -nRepository: axolotl-ai-cloud/axolotl
Length of output: 5081
🏁 Script executed:
# Get more context around the specific lines
sed -n '45,75p' .github/workflows/tests.yml | cat -nRepository: axolotl-ai-cloud/axolotl
Length of output: 1241
🏁 Script executed:
# Check the pytest-sdist job around line 147
sed -n '135,160p' .github/workflows/tests.yml | cat -nRepository: axolotl-ai-cloud/axolotl
Length of output: 1011
🌐 Web query:
PyTorch 2.8 2.9 Python 3.12 compatibility support
💡 Result:
Short answer: Yes — PyTorch 2.8 and 2.9 include support for Python 3.12 (prebuilt wheels/binaries are provided for those releases). [1][2][3]
Sources:
- PyTorch/FBGEMM compatibility table showing Python 3.12 for PyTorch 2.8.x and 2.9.x. [1]
- PyTorch 2.8 release announcement. [2]
- PyTorch 2.9 release announcement (notes include support across the 2.9 release family). [3]
If you need links to installation commands (pip/conda) for a specific OS/CUDA combo, tell me your platform and CUDA (or “CPU-only”) and I’ll fetch the exact command.
Ensure pytest-sdist job is also updated for Python 3.12 testing.
The pytest job correctly tests both Python 3.11 and 3.12 with PyTorch 2.8.0, 2.9.0, and 2.9.1 (all versions support Python 3.12). However, the pytest-sdist job currently tests only Python 3.11. Update the pytest-sdist job's matrix to include Python 3.12 for consistency and complete coverage, or document if this limitation is intentional.
🤖 Prompt for AI Agents
In @.github/workflows/tests.yml around lines 57 - 58, Update the GitHub Actions
workflow to include Python 3.12 in the pytest-sdist job matrix: locate the
pytest-sdist job in .github/workflows/tests.yml and add "3.12" to the
python_version matrix (the matrix key and the job name pytest-sdist are the
targets); ensure the matrix mirrors the pytest job's python_version list so
pytest-sdist runs for both 3.11 and 3.12 unless there is an intentional reason
to keep it out, in which case add a comment documenting the limitation.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Description
Motivation and Context
How has this been tested?
AI Usage Disclaimer
Screenshots (if appropriate)
Types of changes
Social Handles (Optional)
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.