spotty

授权协议 MIT License
开发语言 Python
所属分类 神经网络/人工智能、 机器学习/深度学习
软件类型 开源软件
地区 不详
投 递 者 邴俊达
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Spotty drastically simplifies training of deep learning models on AWSand GCP:

  • it makes training on GPU instances as simple as training on your local machine
  • it automatically manages all necessary cloud resources including images, volumes, snapshots and SSH keys
  • it makes your model trainable in the cloud by everyone with a couple of commands
  • it uses tmux to easily detach remote processes from their terminals
  • it saves you up to 70% of the costs by using AWS Spot Instancesand GCP Preemtible VMs

Documentation

Installation

Requirements:

Use pip to install or upgrade Spotty:

$ pip install -U spotty

Get Started

  1. Prepare a spotty.yaml file and put it to the root directory of your project:

    • See the file specification here.
    • Read thisarticle for a real-world example.
  2. Start an instance:

    $ spotty start

    It will run a Spot Instance, restore snapshots if any, synchronize the project with the running instanceand start the Docker container with the environment.

  3. Train a model or run notebooks.

    To connect to the running container via SSH, use the following command:

    $ spotty sh

    It runs a tmux session, so you can always detach this session usingCtrl + b, then d combination of keys. To be attached to that session later, just use thespotty sh command again.

    Also, you can run your custom scripts inside the Docker container using the spotty run <SCRIPT_NAME> command. Read moreabout custom scripts in the documentation:Configuration: "scripts" section.

Contributions

Any feedback or contributions are welcome! Please check out the guidelines.

License

MIT License

相关阅读

相关文章

相关问答

相关文档