Skip to content

Commit

Permalink
[TSL] Bump ml_dtypes. Add float8_e4m3, float8_e3m4
Browse files Browse the repository at this point in the history
ml_dtypes Updates:
Add float8_e4m3 and float8_e3m4 types support
Fix float divmod with zero denominator
Add int2 and uint2 types
ml_dtypes/commits

Related PRs
ml_dtypes PR Add float8_e4m3 jax-ml/ml_dtypes#161 Add float8_e4m3 (Merged)
XLA PR Add support for float8_e4m3 #16585 (In Review)

This closes #17075

PiperOrigin-RevId: 674396944
  • Loading branch information
apivovarov authored and Google-ML-Automation committed Sep 17, 2024
1 parent 8ace4ee commit 4a30f34
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion third_party/py/ml_dtypes/ml_dtypes.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pybind_extension(
"_src/common.h",
"_src/custom_float.h",
"_src/dtypes.cc",
"_src/int4_numpy.h",
"_src/intn_numpy.h",
"_src/numpy.cc",
"_src/numpy.h",
"_src/ufuncs.h",
Expand Down
4 changes: 2 additions & 2 deletions third_party/py/ml_dtypes/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ float8 varieties, and int4.
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")

def repo():
ML_DTYPES_COMMIT = "24084d9ed2c3d45bf83b7a9bff833aa185bf9172"
ML_DTYPES_SHA256 = "c916a3e6b3d9bdcb476f506fdbbecb6d5e9f21f82f221dfcb42b320b4e85e55a"
ML_DTYPES_COMMIT = "6f02f77c4fa624d8b467c36d1d959a9b49b07900"
ML_DTYPES_SHA256 = "c5b421a3b8549c020582b9be5e9edf8bb6e9d4284cbd44b0babe6640b4af18da"
tf_http_archive(
name = "ml_dtypes",
build_file = "//third_party/py/ml_dtypes:ml_dtypes.BUILD",
Expand Down
2 changes: 1 addition & 1 deletion third_party/tsl/third_party/py/ml_dtypes/ml_dtypes.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pybind_extension(
"_src/common.h",
"_src/custom_float.h",
"_src/dtypes.cc",
"_src/int4_numpy.h",
"_src/intn_numpy.h",
"_src/numpy.cc",
"_src/numpy.h",
"_src/ufuncs.h",
Expand Down
4 changes: 2 additions & 2 deletions third_party/tsl/third_party/py/ml_dtypes/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ float8 varieties, and int4.
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")

def repo():
ML_DTYPES_COMMIT = "24084d9ed2c3d45bf83b7a9bff833aa185bf9172"
ML_DTYPES_SHA256 = "c916a3e6b3d9bdcb476f506fdbbecb6d5e9f21f82f221dfcb42b320b4e85e55a"
ML_DTYPES_COMMIT = "6f02f77c4fa624d8b467c36d1d959a9b49b07900"
ML_DTYPES_SHA256 = "c5b421a3b8549c020582b9be5e9edf8bb6e9d4284cbd44b0babe6640b4af18da"
tf_http_archive(
name = "ml_dtypes",
build_file = "//third_party/py/ml_dtypes:ml_dtypes.BUILD",
Expand Down

0 comments on commit 4a30f34

Please sign in to comment.