Repository navigation
Commit a342931
authored
fix: use a uv managed python for the minimum torch tests (#1318)
this pr fixes the `test-kernel-minimum-torch` job for stable abi kernels
that run triton in their tests (first hit on #1182
https://github.com/huggingface/kernels-community/actions/runs/41133285042/job/124352993673)
tldr; `uv venv` picks the runner's system python which has no headers,
so triton fails to compile its launcher with `Python.h: No such file or
directory`. the venv now uses `--managed-python`, which ships with
headers
repro in an ubuntu 24.04 container with the system python and no
`python3.12-dev`, running the #1182 tests
before
44 failed, 92 passed, 4 skipped
after
136 passed, 4 skipped
note: the repro ran on rocm (mi300x) so triton compiles `hip_utils.c`
instead of `cuda_utils.c`, same `Python.h` include. #1182 needs a
rebuild after this is merged since the workflow runs from main1 parent 637bc6c commit a342931
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
| |||
0 commit comments