-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
49 lines (37 loc) · 1006 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
IMAGE ?= icr.io/ftplatform/fm_training_estimator:latest
.PHONY: build
build: lint fmt install
tox -e build
.PHONY: install
install: hook
pip install -e .
.PHONY: fmt
fmt:
tox -e fmt
.PHONY: lint
lint:
tox -e lint
.PHONY: test
test:
tox -e test
.PHONY: hook
hook:
pre-commit install --hook-type commit-msg
.PHONY: build-model
build-model:
python -m fm_training_estimator.regressor.xgboost.train ./workdir/data.csv ./workdir/model.json '["tokens_per_second","memory","memory_act"]'
.PHONY: run-web-ui
run-web-ui:
python -m fm_training_estimator.ui.web ./workdir/model_whitelist.txt ./workdir/data.csv ./workdir/model.json --enable_api=True
.PHONY: run-cli
run-cli:
python -m fm_training_estimator.ui.cli --lookup_data_path ./workdir/data.csv -m ./workdir/model.json $(CONF)
.PHONY: run-api
run-api:
python -m fm_training_estimator.ui.api ./workdir/data.csv ./workdir/model.json
.PHONY: cbuild
cbuild:
docker build -t ${IMAGE} -f Dockerfile .
.PHONY: cpush
cpush:
docker push ${IMAGE}