Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

test(doctor): pin nvidia-smi off in the partial-stack index-url test (#1633)

Alpamys Makazhan165a338364db
diff --git a/tests/test_doctor.py b/tests/test_doctor.py
index cbaa4faa..61bc155d 100644
--- a/tests/test_doctor.py
+++ b/tests/test_doctor.py
@@ -924,6 +924,10 @@ def test_doctor_nvidia_partial_stack_with_torch_present(monkeypatch):
monkeypatch.setattr(
"soup_cli.commands.doctor._nvidia_smi_cuda_version", lambda: (13, 0)
)
+ # The GPU panel runs the REAL nvidia-smi when torch has no CUDA; on a box
+ # with a GPU that prints its own reinstall hint (with --index-url), which is
+ # not the partial-stack hint under test. Pin it off so every box agrees.
+ monkeypatch.setattr("soup_cli.commands.doctor._nvidia_smi_executable", lambda: None)
result = runner.invoke(app, ["doctor"])
assert result.exit_code == 0
out = _strip_ansi(result.output)