Skip to content

Commit dab7bd2

Browse files
committed
Routine updates.
1 parent 9947935 commit dab7bd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

erbium/__entry__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def __entry__() -> None:
1212
parser.add_argument("-o", "--output", default="P:/SharedWeights/Erbium", help="path to shared weights")
1313
parser.add_argument("--temporary", action="store_true", help="remove container after execution")
1414
parser.add_argument("-t", "--target", default=None, help="path to target directory")
15+
parser.add_argument("--gpus", default="all", help="available GPUs")
1516
args = parser.parse_args()
1617
match args.action:
1718
case "pack":
@@ -26,7 +27,7 @@ def __entry__() -> None:
2627
if not exists(args.output):
2728
raise FileNotFoundError(f"Output directory not found: {args.output}")
2829
commands = [
29-
"docker", "run", "--ipc=host", "--gpus", "all", "-v", f"{args.input}:/workspace/input:ro", "-v",
30+
"docker", "run", "--ipc=host", "--gpus", args.gpus, "-v", f"{args.input}:/workspace/input:ro", "-v",
3031
f"{args.output}:/workspace/output", f"erbium:{version}"
3132
]
3233
if args.temporary:

0 commit comments

Comments
 (0)