-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 1.68 KB
/
Copy pathMakefile
File metadata and controls
51 lines (34 loc) · 1.68 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
.PHONY: install up down fmt lint test doctor train eval sample demo gpu repro readme summary notebooks clean
install: ## uv sync with dev extras
uv sync --extra dev
up: ## bring up MLflow on :5050
docker compose up -d
down: ## stop services (volumes preserved)
docker compose down
fmt: ## ruff format
uv run ruff format src tests scripts
lint: ## ruff check
uv run ruff check src tests scripts
test: ## pytest smoke + algorithm suite
uv run pytest
doctor: ## environment readiness check
uv run rl-studio doctor
train: ## run the numpy GRPO toy loop
uv run rl-studio train configs/toy-grpo.yaml
eval: ## evaluate the trained policy vs random baseline
uv run rl-studio eval digit-sum
sample: ## sample completions from the trained policy
uv run rl-studio sample digit-sum --n 5
demo: train eval sample ## full train -> eval -> sample loop
gpu: ## explain / launch the scaffolded LLM GRPO path (needs `uv sync --extra gpu`)
uv run rl-studio gpu-train configs/grpo-qwen.yaml
repro: ## prove the GRPO toy loop is deterministic (same seed → identical metrics)
uv run python scripts/check_repro.py -- uv run rl-studio train configs/toy-grpo.yaml
readme: ## run the README's ci-test commands so the docs can't go stale
uv run python scripts/test_readme.py
summary: ## train + print the markdown metrics summary CI posts to the run page
uv run rl-studio train configs/toy-grpo.yaml --json | uv run python scripts/ci_report.py
notebooks: ## execute every marimo notebook headless (fails on a dead cell)
@for nb in notebooks/*.py; do echo "running $$nb"; uv run python "$$nb" || exit 1; done
clean:
rm -rf artifacts mlruns mlartifacts mlflow.db metrics.json .pytest_cache .ruff_cache