8000 GitHub - sdtblck/tputils: Utilities for TPUs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sdtblck/tputils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utilities for TPUs.

  • TPUMaker - a convenience class for creating TPU pods.

Example Usage:

from tputils import TPUMaker

t = TPUMaker(project="youdreamof-1543654322305", zone="europe-west4-a")
t.make_tpu(size=32, name="test")
  • TPUKeepAlive - runs a python script or function that runs on TPUs, creating a tpu before running calling the function, and remaking and rerunning the function if the tpu gets preempted.

Example Usage:

from tputils import TPUKeepAlive

# create a runner that will make a tpu v3-32 named test and restart it every 12 hours, or when preempted.
t = TPUKeepAlive(size=32, name="test", restart_after=43200, project="youdreamof-1543654322305",
                 zone="europe-west4-a", tf_version="2.4.0")
t.run_script("python main.py --tpu test --model gpt3_medium")

About

Utilities for TPUs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0