tpunicorn | Babysit your preemptible TPUs

 by   shawwn Python Version: 0.6.0rc8 License: Non-SPDX

kandi X-RAY | tpunicorn Summary

kandi X-RAY | tpunicorn Summary

tpunicorn is a Python library. tpunicorn has no bugs, it has no vulnerabilities, it has build file available and it has low support. However tpunicorn has a Non-SPDX License. You can install using 'pip install tpunicorn' or download it from GitHub, PyPI.

tpunicorn (or pu for short) is a Python library and command-line program for managing TPUs. For example, if you have a preemptible TPU named foo, then pu babysit foo will recreate it automatically whenever it preempts.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tpunicorn has a low active ecosystem.
              It has 46 star(s) with 4 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              tpunicorn has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of tpunicorn is 0.6.0rc8

            kandi-Quality Quality

              tpunicorn has 0 bugs and 0 code smells.

            kandi-Security Security

              tpunicorn has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              tpunicorn code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              tpunicorn has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              tpunicorn releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              tpunicorn saves you 412 person hours of effort in developing the same functionality from scratch.
              It has 1301 lines of code, 117 functions and 8 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed tpunicorn and discovered the below as its top functions. This is intended to give you an instant insight into tpunicorn implemented functionality, and help decide if they suit your requirements.
            • Create TPU
            • Run a step
            • Format a TPU
            • Prints a step
            • Create a new TPU command
            • Get a TPU by ID
            • Build an option
            • Build and return the command line
            • Create a new TPU
            • Install completion script
            • Reimage TPU
            • Stop TPU
            • Start TPU
            • Generate reimage command for reimage
            • Build the API endpoint URL
            • SSH to TPU
            • Return a stop command
            • Return a command to delete a TPU
            • Format a tpu
            • Return a command to start a new TPU
            • Return a command line for ssh
            • Get the next available TPU index
            • Return a list of TPU zone choices
            • Get a timestamp
            • Set the active configuration
            • List all nodes in a zone
            Get all kandi verified functions for this library.

            tpunicorn Key Features

            No Key Features are available at this moment for tpunicorn.

            tpunicorn Examples and Code Snippets

            tpunicorn,Commands,pu recreate
            Pythondot img1Lines of Code : 24dot img1License : Non-SPDX (NOASSERTION)
            copy iconCopy
            Usage: tpunicorn recreate [OPTIONS] TPU
            
              Recreates a TPU, optionally switching the system software to the specified
              TF_VERSION.
            
            Options:
              --zone [asia-east1-c|europe-west4-a|us-central1-a|us-central1-b|us-central1-c|us-central1-f]
              --version    
            tpunicorn,Commands,pu babysit
            Pythondot img2Lines of Code : 17dot img2License : Non-SPDX (NOASSERTION)
            copy iconCopy
            Usage: tpunicorn babysit [OPTIONS] TPU
            
              Checks TPU every INTERVAL seconds. Recreates the TPU if (and only if) the
              tpu has preempted.
            
            Options:
              --zone [asia-east1-c|europe-west4-a|us-central1-a|us-central1-b|us-central1-c|us-central1-f]
              --dry-  
            Recreating a TPU
            Pythondot img3Lines of Code : 16dot img3License : Non-SPDX (NOASSERTION)
            copy iconCopy
            # Recreate a TPU named foo
            pu recreate foo
            
            # Recreate a TPU named foo, but only if it's PREEMPTED. Don't prompt
            # for confirmation. After the TPU recreates and is HEALTHY, run a
            # command.
            pu recreate foo --preempted --yes -c 'echo This only runs af  

            Community Discussions

            No Community Discussions are available at this moment for tpunicorn.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tpunicorn

            (Use sudo pip3 at your own risk. It's potentially easier, since pu is guaranteed to end up on your PATH regardless of your platform, but see installation caveats for a discussion of the tradeoffs.). Skip ahead to examples to see what else pu can do.
            pu assumes you can successfully run gcloud compute tpus list. If so, then you're done! Otherwise, see the Troubleshooting section. Rather than sudo pip3 install -U tpunicorn, you can install via a more "recommended" approach. (For example, the magic wormhole project lists some reasons you might want to avoid sudo pip3.). Option 1: a local install. Option 2: a virtualenv. Unfortunately, you may experience a serious slowdown when using venv. pu is implemented by shelling out to gcloud compute tpus ..., and gcloud seems to be very unhappy when it's run inside of a virtualenv. gcloud compute tpus list takes ~8 seconds for me, which is a noticeable delay, and makes pu list quite uncomfortable to use. I've attempted to debug this, but as far as I can tell, the slowdown is somewhere deep inside of gcloud internals related to reconfiguring paths. I assume it's detecting the venv and doing some sort of reconfiguration to account for it.
            pu assumes you can successfully run gcloud compute tpus list. If so, then you're done! Otherwise, see the Troubleshooting section.
            Rather than sudo pip3 install -U tpunicorn, you can install via a more "recommended" approach. (For example, the magic wormhole project lists some reasons you might want to avoid sudo pip3.)

            Support

            Twitter: @theshawwnHN: sillysaurusxDiscord: ML CommunityPatreon: thank you!
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install tpunicorn

          • CLONE
          • HTTPS

            https://github.com/shawwn/tpunicorn.git

          • CLI

            gh repo clone shawwn/tpunicorn

          • sshUrl

            git@github.com:shawwn/tpunicorn.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link