#!/bin/bash
gpu_price=${1:-"1"}
bid_price=${2:-""}

if [ -z "$bid_price" ]; then
    bid_price="$gpu_price"
fi

machine_id=$(cat /root/machine.id)

python3 /opt/vastai list machine $machine_id -g ${gpu_price}  -b ${bid_price}  -m 4 -s 0.15 -u 0.03 -d 0.03
