ziming-liu
9/30/2019 - 12:07 PM

开启aws竞价实例EC2 GPU

us west-2 elegang

liu-z@DESKTOP-C2HM56A MINGW64 ~/Desktop/ec2-spotter/fast_ai (master)
$ . create_vpc.sh
subnetId=subnet-0534451c38caba800
{
    "Return": true
}
securityGroupId=sg-0f822a32c1541e196


liu-z@DESKTOP-C2HM56A MINGW64 ~/Desktop/ec2-spotter/fast_ai (master)
$ . create_vpc.sh
subnetId=subnet-0a07a6a0931e5e3a7
{
    "Return": true
}
securityGroupId=sg-0f86bf473dc7f6b02


us east -1 fujiniya
liu-z@DESKTOP-C2HM56A MINGW64 ~/Desktop/ec2-spotter/fast_ai (master)
$ . create_vpc.sh
subnetId=subnet-02307bb6faa045bba
{
    "Return": true
}
securityGroupId=sg-0796c2ca418a75122

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"$InstallDir='C:\ProgramData\chocoportable'$env:ChocolateyInstall="$InstallDir"


VPC ID
vpc-0683b4def342be89f (fast-ai)
AMI ID
ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20170110 (ami-49c9295f)
?? ID
subnet-02307bb6faa045bba (fast-ai-subnet)



////////////

liu-z@DESKTOP-C2HM56A MINGW64 ~/Desktop/ec2-spotter/fast_ai (master)
$ . create_vpc.sh
subnetId=subnet-0f86a418131e7a294
{
    "Return": true
}
securityGroupId=sg-0b4e3232c6b7a8eb9


new a new instance every time 

$ . start_spot_no_swap.sh --ami ami-fb8e19ed --subnetId subnet-0b3fa465e56c58682  --securityGroupId sg-014434026d69fa051

attach
view the name 
lsblk
name is /dev/+ lastone**
if first time 
sudo mkfs -t ext4 device_name
else
sudo mkdir mount_point
sudo mount device_name mount_point

. start_spot_no_swap.sh --ami ami-0f9e8c4a1305ecd22 --subnetId subnet-0b3fa465e56c58682  --securityGroupId sg-014434026d69fa051




//super falsr

 python3 calculate.py --pb_path ./pretrained_model/FALSR-A.pb --save_path /home/ubuntu/liu/SSR/test_images  --load_path /home/ubuntu/liu/VisDrone2019/TASK1/VisDrone2019-DET-test-challenge/images
//super