mirror of
https://github.com/karpathy/nanochat.git
synced 2026-03-22 21:03:22 +00:00
Update test.yml
This commit is contained in:
parent
dd147b018d
commit
90cdd1b5b8
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
|
@ -24,10 +24,17 @@ jobs:
|
|||
|
||||
- name: Set up uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
- name: Install dependencies with uv
|
||||
# Linux: Request 'cpu' extra to force the pytorch-cpu index (prevents libcublas crash)
|
||||
- name: Install dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
uv sync --extra cpu
|
||||
uv sync --extra cpu
|
||||
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
||||
|
||||
# macOS: Standard sync
|
||||
- name: Install dependencies (macOS)
|
||||
if: runner.os == 'macOS'
|
||||
run: uv sync
|
||||
|
||||
- name: Add nanochat to PYTHONPATH (Unix)
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user