-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (44 loc) · 1.5 KB
/
Copy pathMakefile
File metadata and controls
58 lines (44 loc) · 1.5 KB
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
50
51
52
53
54
55
56
57
58
SHELL := /bin/bash
.PHONY: help install vllm test lint up down logs backup restore clean update-llama launch
help:
@echo "install - provision venv + build llama.cpp (CUDA if nvcc)"
@echo "vllm-install - bare-metal vLLM backend into .venv-vllm"
@echo "test - pytest suite (offline)"
@echo "lint - bash/py/js/json static checks"
@echo "up / down - docker compose core stack up/down"
@echo "logs - tail stack logs"
@echo "backup - config/registry/manifest snapshot"
@echo "restore F= - restore from backups/F"
@echo "clean - remove pycache and pytest cache"
@echo "update-llama - pull latest llama.cpp + rebuild"
@echo "launch - start all services via launch.py"
install:
bash install.sh
vllm-install:
bash vllm/install-vllm.sh
test:
python3 -m pytest
lint:
@status=0; \
for f in $$(git ls-files '*.sh'); do bash -n $$f || status=1; done; \
for f in $$(git ls-files '*.py'); do python3 -m py_compile $$f || status=1; done; \
for f in $$(git ls-files '*.js'); do node --check $$f || status=1; done; \
for f in $$(git ls-files '*.json'); do python3 -m json.tool $$f >/dev/null || status=1; done; \
exit $$status
up:
docker compose up -d --build
down:
docker compose down
logs:
tail -n 50 logs/*.log
backup:
bash scripts/backup.sh
restore:
bash scripts/backup.sh restore $(F)
clean:
find . -name '__pycache__' -prune -exec rm -rf {} + 2>/dev/null || true
rm -rf .pytest_cache
launch:
python launch.py
update-llama:
bash install.sh --update-llama