Skip to content

acsresearch/vdeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

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:

from vdeploy.watchdog import keep_alive

with keep_alive():
    ...
    # Long-running computation
    ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages