-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (43 loc) · 2.02 KB
/
Makefile
File metadata and controls
64 lines (43 loc) · 2.02 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
59
60
61
62
63
64
.PHONY: setup setup-ml setup-web ml-api web eval benchmark train \
build lint test dev
# ── Install ───────────────────────────────────────────────────────────────────
setup: setup-web setup-ml
setup-ml:
pip install -e ".[ml]" --break-system-packages
python -m ml.data.scraper
python -m ml.data.build_dataset
python -m ml.models.build_index
setup-web:
cd apps/web-solid && npm install --no-workspaces
# ── Run ───────────────────────────────────────────────────────────────────────
ml-api:
pip install -r apps/api-hf/requirements.txt --break-system-packages
cd apps/api-hf && uvicorn main:app --reload --port 8000
web:
cd apps/web && npm run dev
dev:
turbo dev
# ── Build ─────────────────────────────────────────────────────────────────────
build:
cd apps/web && npm run build
# ── ML ────────────────────────────────────────────────────────────────────────
eval:
python -m ml.eval.run_eval
benchmark:
python -m ml.eval.benchmark
train:
python -m ml.models.train
# ── Test / Lint ───────────────────────────────────────────────────────────────
test:
pytest ml/eval/ -v
lint:
cd apps/web && npm run lint
ruff check ml/ apps/api-hf/
solid:
cd apps/web-solid && npm run dev
build-solid:
cd apps/web-solid && npm run build
test-solid:
cd apps/web-solid && npm test
deploy-solid:
cd apps/web-solid && npx vercel --prod