-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (38 loc) · 1.19 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
build:
docker build -t $(MODEL) ./ctx/$(MODEL)
build-git:
docker build \
--build-arg GIT_USER=$(GIT_USER) \
--build-arg GIT_TOKEN=$(GIT_TOKEN) \
--build-arg VERSION=$(VERSION) \
-t $(MODEL) ./ctx/$(MODEL)
train:
docker run --rm \
--env-file .env \
--runtime nvidia \
--shm-size=16g \
--mount type=bind,source="$(shell pwd)"/data,target=/app/data \
--mount type=bind,source="$(shell pwd)"/common,target=/app/common \
--mount type=bind,source="$(shell pwd)"/results,target=/app/results \
$(MODEL) $(ARG) \
inspect:
docker run --rm -it \
-u $(shell id -u):$(shell id -g) \
--env-file .env \
--runtime nvidia \
--shm-size=1g \
--mount type=bind,source="$(shell pwd)"/data,target=/app/data \
--mount type=bind,source="$(shell pwd)"/common,target=/app/common \
--mount type=bind,source="$(shell pwd)"/results,target=/app/results \
--entrypoint bash \
$(MODEL) \
inspect-root:
docker run --rm -it \
--env-file .env \
--runtime nvidia \
--shm-size=1g \
--mount type=bind,source="$(shell pwd)"/data,target=/app/data \
--mount type=bind,source="$(shell pwd)"/common,target=/app/common \
--mount type=bind,source="$(shell pwd)"/results,target=/app/results \
--entrypoint bash \
$(MODEL) \