Download PreDiff_Mod-master/remote_run.py from weatherforecast1024/vdi: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/weatherforecast1024/vdi/resolve/main/PreDiff_Mod-master/remote_run.py
- Command line
-
hf download hf://weatherforecast1024/vdi/PreDiff_Mod-master/remote_run.py
-
curl -L -o remote_run.py https://huggingface.co/weatherforecast1024/vdi/resolve/main/PreDiff_Mod-master/remote_run.py
1.26 kB
| from modal import App,Image,gpu,Volume,Image | |
| import os | |
| from dotenv import load_dotenv | |
| _ = load_dotenv('./.env') | |
| app = App(f'PreDiff Sample Run') | |
| image = ( | |
| Image.micromamba(python_version='3.10.12') | |
| .apt_install("awscli") | |
| .pip_install_from_requirements( | |
| requirements_txt='requirements.txt' | |
| ) | |
| .add_local_dir( | |
| local_path=os.path.abspath('./'), | |
| remote_path='/root', | |
| copy=True, | |
| ignore= [ | |
| '__pycache__/*', | |
| './.venv/*', | |
| './data/*', | |
| './pretrained_weights/*' | |
| ] | |
| ) | |
| .env({ | |
| "WANDB_API_KEY": os.getenv('WANDB_API_KEY'), | |
| "WANDB_ENTITY": os.getenv('WANDB_ENTITY'), | |
| 'WANDB_PROJECT':os.getenv('WANDB_PROJECT') | |
| }) | |
| ) | |
| def entry(): | |
| import os | |
| # from dotenv import load_dotenv | |
| os.system('python -m scripts.train_vae.train_vae_sevirlr --cfg ./scripts/train_vae/cfg.yaml --gpus ') |