-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·37 lines (27 loc) · 823 Bytes
/
Makefile
File metadata and controls
executable file
·37 lines (27 loc) · 823 Bytes
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
# Define linting-related packages and files
LINT_PACKAGES=black black-jupyter blacken-docs
PYTHON_FILES=$(find . -type f -name '*.py')
IPYNB_FILES=$(find . -type f -name '*.ipynb')
# Enter your VENV here!
VENV="<enter your venv bin/activate path here>"
lint:
@echo "Running linting on all Python files..."
black .
isort .
setup-lint-conda:
@echo "Installing linting packages..."
conda install $(LINT_PACKAGES)
setup-lint-venv:
@echo "Installing linting packages..."
pip install $(LINT_PACKAGES)
pretrain:
sbatch model/pretrain.sh $(VENV)
finetune:
sbatch model/finetune.sh $(VENV)
evaluate:
sbatch model/evaluate.sh $(VENV)
sweep-tune-evaluate:
sbatch model/sweep_tune_evaluate.sh $(VENV)
permission:
chmod -R 777 .
.PHONY: lint setup-lint-conda setup-lint-venv finetune evaluate evaluate permission