llmsql-benchmark
llmsql-benchmark copied to clipboard
[Tests] Real-inference CPU test fails when a GPU is visible
Problem
tests/inference/tests/integration/test_inference_transformers_real_limit.py::test_real_inference_limit (added in #92) is meant to run on CPU. On a machine with a visible CUDA GPU, the model is loaded with device_map="auto", so it lands on the GPU. Triton then tries to JIT-compile a helper, which fails when the Python dev headers are missing (Python.h: No such file or directory).
Also, the path tests/inference/tests/integration/ is nested oddly (it should be tests/integration/).
Proposal
- Pin
device_map="cpu"in that test (or mask CUDA through a fixture), and mark it@pytest.mark.integration/slow. - Move it to
tests/integration/.
Hi! I would like to take this one. Plan: move the test to tests/integration/, pin it to CPU with device_map="cpu" plus a fixture that masks CUDA, and add the slow marker. PR coming shortly.