-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (20 loc) · 1011 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
.PHONY: install board lab kernel help
.PHONY: offline_finetune
offline_finetune: ## Example model fine-tuning script on symbol binding task
accelerate launch --config_file configs/accelerate/local_with_ds.yaml \
llm_examples/mcsb_ft/offline.py # hydra=dev
.PHONY: finetune
finetune: ## Example model fine-tuning script on symbol binding task
accelerate launch --config_file configs/accelerate/local_with_ds.yaml \
llm_examples/mcsb_ft/mcsb.py hydra=dev
install: ## Install the project locally
pip install -e .
board: ## Run tensorboard
tensorboard --logdir=logs
lab: ## To start a Jupyter Lab server
jupyter lab --notebook-dir=notebooks --ip=0.0.0.0 --port 9001
kernel: ## To setup a Jupyter kernel to run notebooks in the project's virtual env
python -m ipykernel install --user --name llm_venv \
--display-name "llm_venv (Python 3.10)"
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'