This commit is contained in:
hiyouga
2025-12-27 07:47:43 +08:00
parent c439924e74
commit 1622bad7d4
3 changed files with 9 additions and 14 deletions

View File

@@ -55,11 +55,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Get llamafactory version - name: Get llamafactory version
id: version id: version
run: | run: |

View File

@@ -63,23 +63,22 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python - name: Install uv
uses: actions/setup-python@v5 uses: astral-sh/setup-uv@v7
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
github-token: ${{ github.token }}
- name: Install uv enable-cache: false
uses: astral-sh/setup-uv@v5
- name: Install dependencies - name: Install dependencies
run: | run: |
uv pip install --system torch torchvision --index-url https://download.pytorch.org/whl/cpu uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
uv pip install --system -e ".[dev]" uv pip install -e ".[dev]"
- name: Install transformers - name: Install transformers
if: ${{ matrix.transformers }} if: ${{ matrix.transformers }}
run: | run: |
uv pip install --system "transformers==${{ matrix.transformers }}" uv pip install "transformers==${{ matrix.transformers }}"
- name: Cache files - name: Cache files
id: hf-hub-cache id: hf-hub-cache

View File

@@ -54,7 +54,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
uv pip install --system -e ".[dev]" torch-npu==${{matrix.pytorch_npu}} uv pip install torch-npu==${{matrix.pytorch_npu}}
uv pip install -e ".[dev]"
- name: Install node - name: Install node
run: | run: |