-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 846 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
include help.mk
.DEFAULT_GOAL := install-cuda
.PHONY: venv
venv: ## setup the virtual environment
@python -m venv .venv
.PHONY: dependencies
dependencies: ## install dependecies
${MAKEFILE_DIR}.venv/Scripts/pip install -U openai-whisper
.PHONY: update
update: ## updates whisper
git -C ${MAKEFILE_DIR} pull
${MAKEFILE_DIR}.venv/Scripts/pip install openai-whisper --upgrade
## see link below for how to install torch for other environments
## https://pytorch.org/get-started/locally/
.PHONY: install-cuda
install-cuda: venv dependencies ## installs torch with Cuda
${MAKEFILE_DIR}.venv/Scripts/pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
.PHONY: install-cpu
install-cpu: venv dependencies ## installs torch for CPU
${MAKEFILE_DIR}.venv/Scripts/pip install torch torchvision torchaudio