From 7e2bb6a5d3ce06d2dad51a303bc9e369c35d410a Mon Sep 17 00:00:00 2001 From: "Fred N. Garvin" <184324400+FNGarvin@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:36:52 -0600 Subject: [PATCH] Update model.py import subprocess (to shell out for nvidia-smi) and shutil (to duplicate available() functionality and test whether we're in podman or docker --- ramalama/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ramalama/model.py b/ramalama/model.py index 54ac693c..2514fed4 100644 --- a/ramalama/model.py +++ b/ramalama/model.py @@ -3,6 +3,8 @@ import glob import atexit import shlex +import subprocess +import shutil from ramalama.common import ( default_image,