Skip to main content

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

Metadata

Release files for rail-tpu-utils 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rail-tpu-utils 0.0.3
File Size Uploaded Provenance Actions
rail_tpu_utils-0.0.3.tar.gz 3.7 kB Without provenance Details for rail_tpu_utils-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rail-tpu-utils 0.0.3
File Interpreter ABI Platform Actions
rail_tpu_utils-0.0.3-py3-none-any.whl Python 3 none any Details for rail_tpu_utils-0.0.3-py3-none-any.whl

Total release size: 7.9 kB

Release files / rail_tpu_utils-0.0.3.tar.gz

Download URL rail_tpu_utils-0.0.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96835328269ce8be415d8bb36d67ae8910ae802255e4e714a7ee0c61f7730712
BLAKE2b-256 checksum
How to use checksums
bce74dfb313c80bd3ace00b7abfda8f1a33c78fe493fb02faf196aef596bae7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / rail_tpu_utils-0.0.3-py3-none-any.whl

Download URL rail_tpu_utils-0.0.3-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0c4828fe4f487c5f46137564143bc766519155ca5417c43ff23f0a0f21f746f
BLAKE2b-256 checksum
How to use checksums
e6498919fcc92690dc57da4c36c818bd0b5606bd8dfc81890a9a137f10e11bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Security for rail-tpu-utils 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page