-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
30 lines (24 loc) · 973 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
ROSWELL := ros
QUICKLOAD := --eval '(progn (cl:push (cl:pathname "./") ql:*local-project-directories*) (asdf:load-asd "caten.asd") (ql:quickload "caten" :silent t))'
PIP := pip
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: install_extra
install_extra: ## Install extra dependencies for testing
python3.12 -m ensurepip --upgrade
python3.12 -m pip install --upgrade pip setuptools wheel
python3.12 -m pip install numpy==1.26.4 torch gguf sentencepiece tiktoken
.PHONY: test
test: ## Runs test harness
$(ROSWELL) $(QUICKLOAD) --eval '(asdf:test-system "caten")'
.PHONY: install_docs
install_docs: ## Install documentation dependencies
$(PIP) install mkdocs markdown-katex lantana
.PHONY: build_docs
build_docs: ## Build documentation
./roswell/caten.ros docs
.PHONY: serve_docs
serve_docs: ## Serve documentation
mkdocs serve