-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
41 lines (40 loc) · 1.67 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
# Load environment variables from .env file
ifneq (,$(wildcard ./.env))
include .env
export
endif
flower:
celery --broker=${REDIS_URL} flower --port=5555
install-openapi-generator:
npm install -g openapi-typescript-codegen
generate-client:
@openapi --input 'http://127.0.0.1:8000/openapi.json' --output frontend/src/refinedApi/client --client axios
install-mock-server:
npm install -g @stoplight/prism-cli
start-mock-server:
prism mock http://127.0.0.1:${UVICORN_HOST}/openapi.json
gen-envs:
python3 scripts/gen_envs.py
download-diffdock-weights:
@echo "Downloading diffdock model weights..."
mkdir -p ${DIFFDOCK_WEIGHTS_LOCATION}
python3 microservices/diffdock/scripts/download_weights.py
@echo "Download complete!"
download-esmfold-weights:
@echo "Downloading esmfold model weights..."
mkdir -p ${ESMFOLD_WEIGHTS_LOCATION}
pip3 install transformers[torch] --verbose
python3 microservices/esmfold/scripts/download_weights.py
@echo "Download complete!"
download-rfdiffusion-weights:
@echo "Downloading rfdiffusion model weights..."
mkdir -p ${RFDIFFUSION_WEIGHTS_LOCATION}
python3 microservices/rfdiffusion/scripts/download_weights.py
@echo "Download complete!"
download-arxiv-abstracts-db:
@echo "Downloading arxiv abstracts"
! command -v unzip &> /dev/null && echo 'You have to install unzip: $ sudo apt-get install unzip OR $ brew install unzip (for macos)'
mkdir -p ${ARXIV_ABSTRACTS_DB}
curl -L -o ${ARXIV_ABSTRACTS_DB}/chroma_db.zip https://www.kaggle.com/api/v1/datasets/download/timurishmuratov/nolabs-arxiv-abstract-vector-db
unzip "${ARXIV_ABSTRACTS_DB}/chroma_db.zip" -d "${ARXIV_ABSTRACTS_DB}" && rm ${ARXIV_ABSTRACTS_DB}/chroma_db.zip
@echo "Download complete!"