Skip to content

Commit e8f0fcd

Browse files
ci: install quantllm package so tests can import it
The matrix tests were failing with ModuleNotFoundError because we only installed runtime deps but never installed the quantllm package itself. Use `pip install --no-deps -e .` so the package is importable without re-resolving the heavy (GPU-only) dependency set.
1 parent c6a7e02 commit e8f0fcd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
cache: pip
4848
- name: Install minimal runtime deps
4949
# We deliberately install CPU-only ``torch`` to keep CI fast and avoid
50-
# pulling CUDA / cuDNN wheels. Tests stub out the heavy I/O and never
51-
# touch a real GPU.
50+
# pulling CUDA / cuDNN wheels. ``bitsandbytes`` is also skipped (it is
51+
# GPU-only). Tests stub out the heavy I/O and never touch a real GPU.
5252
run: |
5353
python -m pip install --upgrade pip
5454
pip install --index-url https://download.pytorch.org/whl/cpu "torch>=2.0.0"
@@ -66,6 +66,12 @@ jobs:
6666
"gguf" \
6767
"py-cpuinfo" \
6868
"pytest>=7.4.0"
69+
- name: Install QuantLLM (no deps; we already installed them above)
70+
# ``--no-deps`` skips re-resolving the heavy dependency set (notably
71+
# ``bitsandbytes``, which is GPU-only and not needed by the test
72+
# suite). The import-only install is what makes ``import quantllm``
73+
# work in the test workers.
74+
run: pip install --no-deps -e .
6975
- name: Run pytest
7076
env:
7177
QUANTLLM_BANNER: "0"

0 commit comments

Comments
 (0)