-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 690 Bytes
/
Makefile
File metadata and controls
40 lines (27 loc) · 690 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
31
32
33
34
35
36
37
38
39
40
.PHONY: all lint format test embed build up down logs save
ci: lint format test
intel: build up-intel embed
arm: build up-arm embed
lint:
ruff check .
format:
black .
test:
pytest
embed:
docker exec -it viberary python /viberary/src/index/index_embeddings.py
build:
docker compose build
up-intel:
docker compose up -d
up-arm:
export DOCKER_DEFAULT_PLATFORM=linux/amd64
docker compose up -d
onnx:
docker exec -it viberary optimum-cli export onnx --model sentence-transformers/msmarco-distilbert-base-v3 sentence-transformers/msmarco-distilbert-base-v3_onnx/
down:
docker compose down
logs:
docker compose logs -f -t
save:
nohup docker compose logs -f > output.log &