simplify and use pythorch 3.12

This commit is contained in:
rasbt
2025-02-19 21:01:15 -06:00
parent 361a75d9e2
commit ca0eee4cf9
10 changed files with 20 additions and 24 deletions

View File

@@ -27,13 +27,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv python install 3.11
uv add . --dev
uv python install 3.12
uv sync --dev --python 3.12
uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
uv add pytest-ruff nbval
uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu