Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

VastAI deployer

On your local machine:

$ vastai set api-key <YOUR_VAST_AI_API_KEY> 

Next, pick your instance from VastAI market and start instance. You get instance ID after the start. Next run the following command:

$ poetry run -m vdeploy deploy <INSTANCE_ID> --timeout <TIMEOUT_IN_MINUTES> 

It installs vdeploy on the instance and starts a watch dog process. In case of inactivity the instance is automatically destroyed after the timeout.

To prevent destruction of the instance, run your long-running computation on instance in the following with block:

fromvdeploy.watchdogimportkeep_alivewithkeep_alive():
...
# Long-running computation
...

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages