forked from kusterlab/prosit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 718 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 718 Bytes
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
DATA ?= $(HOME)/data.hdf5
MODEL_SPECTRA ?= $(HOME)/model_sectra/
MODEL_IRT ?= $(HOME)/model_irt/
OUT_FOLDER ?= $(MODEL)
HOSTPORT ?= 5000
GPU ?= 0
DOCKER = nvidia-docker
IMAGE = prosit
DOCKERFILE = Dockerfile
build:
$(DOCKER) build -qf $(DOCKERFILE) -t $(IMAGE) .
server: build
$(DOCKER) run -it \
-v "$(MODEL_SPECTRA)":/root/model_spectra/ \
-v "$(MODEL_IRT)":/root/model_irt/ \
-e CUDA_VISIBLE_DEVICES=$(GPU) \
-p $(HOSTPORT):5000 \
$(IMAGE) python3 -m prosit.server
jump: build
$(DOCKER) run -it \
-v "$(MODEL_SPECTRA)":/root/model_spectra/ \
-v "$(MODEL_IRT)":/root/model_irt/ \
-v "$(DATA)":/root/data.hdf5 \
-e CUDA_VISIBLE_DEVICES=$(GPU) \
$(IMAGE) bash