libtpu 0.0.21.1__cp314-cp314t-manylinux_2_31_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- libtpu/__init__.py +32 -0
- libtpu/libtpu.so +0 -0
- libtpu/sdk.so +0 -0
- libtpu-0.0.21.1.dist-info/METADATA +37 -0
- libtpu-0.0.21.1.dist-info/RECORD +7 -0
- libtpu-0.0.21.1.dist-info/WHEEL +5 -0
- libtpu-0.0.21.1.dist-info/top_level.txt +1 -0
libtpu/__init__.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
# ==============================================================================
|
|
15
|
+
"""Wrapper for the libtpu library."""
|
|
16
|
+
from importlib import metadata
|
|
17
|
+
import os
|
|
18
|
+
|
|
19
|
+
__version__ = metadata.version(__name__)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def get_library_path() -> str:
|
|
23
|
+
return os.path.join(os.path.dirname(__file__), 'libtpu.so')
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def configure_library_path():
|
|
27
|
+
if not os.environ.get('TPU_LIBRARY_PATH'):
|
|
28
|
+
os.environ['TPU_LIBRARY_PATH'] = get_library_path()
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# on import of libtpu set the library path if not already configured.
|
|
32
|
+
configure_library_path()
|
libtpu/libtpu.so
ADDED
|
Binary file
|
libtpu/sdk.so
ADDED
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: libtpu
|
|
3
|
+
Version: 0.0.21.1
|
|
4
|
+
Summary: Google Cloud TPU runtime library.
|
|
5
|
+
Author: Google, Inc.
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: description
|
|
10
|
+
Dynamic: description-content-type
|
|
11
|
+
Dynamic: requires-python
|
|
12
|
+
Dynamic: summary
|
|
13
|
+
|
|
14
|
+
# What is libtpu?
|
|
15
|
+
|
|
16
|
+
`libtpu` is the core library that enables machine learning frameworks like
|
|
17
|
+
`JAX`, `PyTorch`, and `TensorFlow` to execute models on Google Cloud TPUs. It
|
|
18
|
+
provides core functionality for compilation, inter-chip communication (ICI), and
|
|
19
|
+
runtime execution.
|
|
20
|
+
|
|
21
|
+
`libtpu` also includes a set of SDK primitives for direct TPU interaction and
|
|
22
|
+
deployment.
|
|
23
|
+
|
|
24
|
+
Learn more about Cloud TPUs at
|
|
25
|
+
[Google Cloud TPUs](https://cloud.google.com/tpu).
|
|
26
|
+
|
|
27
|
+
********************************************************************************
|
|
28
|
+
|
|
29
|
+
## Version 0.0.21.1
|
|
30
|
+
|
|
31
|
+
### Compatibility
|
|
32
|
+
|
|
33
|
+
* JAX Compatibility: `libtpu` supports `JAX` 0.7.1 or newer.
|
|
34
|
+
|
|
35
|
+
* Python Compatibility: The `libtpu` SDK is now compatible with the Python
|
|
36
|
+
versions 3.11, 3.12, 3.13, 3.13-ft, 3.14 and 3.14-ft where `ft` corresponds
|
|
37
|
+
to free threaded python variant.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
libtpu/__init__.py,sha256=SoGncWaQwZYo1QEXcodPH75Y4C7El2NeXtDnDMAyL4M,1131
|
|
2
|
+
libtpu/libtpu.so,sha256=fAB1hfNz8xYVhfsbSxvrDvPDkzXwlZBJx3u5rztERBc,376021592
|
|
3
|
+
libtpu/sdk.so,sha256=RGJGSBFtQ2FF2rmfWbgDA1thLdEPdl9eXmgM-7AYNDQ,3595568
|
|
4
|
+
libtpu-0.0.21.1.dist-info/METADATA,sha256=sN4PmqVaWrRDHbP0sXZEFBvejDbQgvN5pgFnP85w3l8,1123
|
|
5
|
+
libtpu-0.0.21.1.dist-info/WHEEL,sha256=1DFW7SpqQQppRXWg2VpV00TC-vciwfOzgBAlBcviWiY,114
|
|
6
|
+
libtpu-0.0.21.1.dist-info/top_level.txt,sha256=osLnDQBl5z7VhfpbHzbmqr5CNtGhnkU3Ue2zh1MfUKQ,7
|
|
7
|
+
libtpu-0.0.21.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
libtpu
|