-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (20 loc) · 623 Bytes
/
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
#!/bin/bash
LANGS=de ru pl zh bg el hr it pt nl cs
CONFIGS=$(patsubst %,./model/en-%/config.yml,$(LANGS))
.secondary:
run_docker:
docker run --rm -p 8080:8080 tramooc/mt_server
run_local:
./docker-entrypoint.py en-de en-ru
.phony: run_docker
build:
docker build -t tramooc/mt_server .
models: $(CONFIGS)
.phony: models
marian:
git -C $@ pull || git clone https://github.com/marian-nmt/marian-dev.git -b nematus $@
mkdir -p $@/build && cd $@/build && cmake -DCMAKE_BUILD_TYPE=release .. && make -j4
./model/%/config.yml: marian
mkdir -p $(@D)
python server/download_models.py -w $(@D) -m $*
.PHONY: marian