Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
import subprocess (to shell out for nvidia-smi) and shutil (to duplicate available() functionality and test whether we're in podman or docker

Signed-off-by: Fred N. Garvin, Esq. <[email protected]>
  • Loading branch information
FNGarvin committed Nov 22, 2024
1 parent 5a08cb7 commit c638d97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ramalama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import glob
import atexit
import shlex
import subprocess
import shutil

from ramalama.common import (
default_image,
Expand Down

0 comments on commit c638d97

Please sign in to comment.