You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: intermittent failures from vllm tests on LSF cluster #699
Success seems about 50-75% failure from running multiple times
On further investigation the underlying error for all these cases is:
E openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `ibm-granite/granite-4.0-micro` does not exist.', 'type': 'NotFoundError', 'param': None, 'code': 404}}
Question to persue -- How is the vllm server initialized when tests are run with uv on a GPU enabled cluster - clearly sometimes we get access to a vllm environment with the right model, othertimes we don't
The vLLM server is reachable but serving the wrong model.
Root cause: port 8000 collision
The GPU test isolation framework runs test_vllm.py in a separate subprocess before the main session. That test starts a vLLM server on port 8000 serving QWEN3_0_6B. When the subprocess exits, the vLLM server process may not be fully torn down.
When the main session reaches test_openai_vllm.py, its vllm_process fixture tries to start a new server (vllm serve ibm-granite/granite-4.0-micro) on the same port 8000. This new process fails to bind (port taken), but the fixture's readiness check (GET http://127.0.0.1:8000/ping) succeeds against the old Qwen server. The fixture therefore does not skip — it yields. All API calls then hit the Qwen server, which returns 404 for the Granite model ID.
Evidence
test_vllm.py fixture uses model_ids.QWEN3_0_6B on port 8000
test_openai_vllm.py fixture uses IBM_GRANITE_4_MICRO_3B.hf_model_name (ibm-granite/granite-4.0-micro) on port 8000
Tests fail (not skip), meaning the health check passed — server was already up
Error is 404 model-not-found, not a connection error
Possible fixes
Use a different port in test_openai_vllm.py (e.g. 8001) to avoid the collision.
Verify the loaded model in the vllm_process fixture by querying /v1/models after the ping check and asserting the expected model ID is present — this would cause a skip rather than a spurious pass-through.
Ensure full teardown of the vLLM process tree in the GPU isolation framework before returning to the main session.
Activity
planetf1 commentedon Mar 18, 2026
Analysis from logs:
The vLLM server is reachable but serving the wrong model.
Root cause: port 8000 collision
The GPU test isolation framework runs
test_vllm.pyin a separate subprocess before the main session. That test starts a vLLM server on port 8000 servingQWEN3_0_6B. When the subprocess exits, the vLLM server process may not be fully torn down.When the main session reaches
test_openai_vllm.py, itsvllm_processfixture tries to start a new server (vllm serve ibm-granite/granite-4.0-micro) on the same port 8000. This new process fails to bind (port taken), but the fixture's readiness check (GET http://127.0.0.1:8000/ping) succeeds against the old Qwen server. The fixture therefore does not skip — it yields. All API calls then hit the Qwen server, which returns 404 for the Granite model ID.Evidence
test_vllm.pyfixture usesmodel_ids.QWEN3_0_6Bon port 8000test_openai_vllm.pyfixture usesIBM_GRANITE_4_MICRO_3B.hf_model_name(ibm-granite/granite-4.0-micro) on port 8000Possible fixes
test_openai_vllm.py(e.g. 8001) to avoid the collision.vllm_processfixture by querying/v1/modelsafter the ping check and asserting the expected model ID is present — this would cause a skip rather than a spurious pass-through.planetf1 commentedon Mar 18, 2026
We can also consider how to manage vllm more generally, and our strategy for test execution
planetf1 commentedon Apr 8, 2026
I think this can be closed given the vllm removal in #781 -- will open new issues with any broader test regressions/issues