generated from ivangabriele/template-base
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (26 loc) · 793 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
.PHONY: build clean down load push start test up
build: down
docker image prune -f
docker images --format '{{if ne .Repository "<none>"}}{{.Repository}}:{{.Tag}}{{end}}' | \
grep 'ivangabriele/llm' | \
xargs -I {} docker rmi {}
docker image prune -f
# MAX_MODEL_LENGTH=16384 MODEL=Open-Orca/LlongOrca-13B-16k ./build.sh
MAX_MODEL_LENGTH=16384 MODEL=lmsys/vicuna-13b-v1.5-16k ./build.sh
clean:
find ./model -maxdepth 1 -mindepth 1 ! -name '.gitkeep' -exec rm -r {} +
down:
docker compose down
fix:
# https://stackoverflow.com/a/76647180/2736233
sed -i 's/torch = "2.1.0"/torch = ">2.1.0"/' poetry.lock
load: clean
poetry run python ./load.py
push:
docker push --all-tags ivangabriele/llm
start:
./entrypoint.sh
test:
poetry run python ./test.py
up:
docker compose up