To Deploy Modal
poetry run modal deploy app/main.py
How to Run
ensure VAE is root folder
Note:
- If on a foreign IP in AWS:
go to ec2 -> click on ec2 instance -> security group -> edit inbound rules -> add new rule ->
ssh
as the rule type -> custommy ip
-> save
Setup
Locally
make integration
- go to localhost:8000/docs in your browser
Docker
make requirements
make run
- go to localhost:8000/docs in your browser
EC2
- Your EC2 may be out of date if it brings up python 3.8 errors.
make ec2-python
-
python --version
should equal Python 3.10.4 -
conda env create -n makrket_salary -f requirements.txt
make integration
- find the IP address for the ec2, you use them in your config file to ssh in. remove the letters and then on your personal comuputer in the browser search the following:
http://<EC2_IP>:8000/docs
Check Logging
Conda:
tensorboard --logdir=s3://workhelix-model-store/vae/model-logs/please_log_test_really
Poetry:
poetry run tensorboard --logdir=s3://workhelix-model-store/vae/model-logs/please_log_test_really