Skip to content

dibyaghosh/tpu_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TPU Utils

TL;DR: Please stop cross-region traffic

At the very beginning of your launcher, please add this:

from tpu_utils import prevent_cross_region
...

def main(_):
    prevent_cross_region(FLAGS.save_dir, FLAGS.data_dir, ...) # Anything that may be cross region

Installation:

pip install rail_tpu_utils 
pip install git+https://github.com/dibyaghosh/tpu_utils.git

Also has:

  • tpu_utils.initialize_compilation_cache: Initializes JAX's compilation cache

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages