Skip to content

mayurnewase/AutoBidder-for-VastAI-instances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AutoBidder-for-VastAI-instances

Bid automatically on gpu instances for cheapest prices to deploy ml models

This project contain script to bid on vast ai (https://vast.ai) and maintain at lease one instance running to deploy deep learning models on gpu instances.

Features

1.Search for existing running instances

2.Launch new existing instances with their base price or provided from cli

3.Destroy instances if running more than 1

Usage

1.install vast ai cli

2.Login via cli

3.Put this script in any environment path(for linux its usually /usr/bin/) Then run

vast one-alive --onstart="path-to-onstart-script"

4.This script can run in background in your own mahcine or on aws t2.micro to run in continuously check instance status. for this make a cron job.

5.Usually onstart script clones a project from github and setups server accordingly with running main application in background and returning to cli

6.Example onstart script to run my project Spleeter-Deploy which runs telegram server in background

apt-get install ffmpeg --assume-yes
apt install git --assume-yes
git clone https://github.com/mayurnewase/Spleeter-Deploy.git
cd Spleeter-Deploy/
pip install -r requirements.txt
echo "bot_token=<your token>" > .env
nohup python application.py &

About

Bid automatically on gpu instances for cheapest prices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages