Radix/tools/BUILD.bazel
Tarry Singh fe56f03f5d third_party/xla: de-modularize xla
This PR intends to remove XLA as a bzlmod and transfer it as a non
bzlmod dep.

This is because this module will never be upstreamed as is, so keep it
private.

Also, we fetch llvm-raw and stablehlo from it, which is fine.

While there, dummify the various local_config XLA symbols to please the
imports, as we don't use those parts in ZML itself.

Closes
2025-06-23 09:13:43 +00:00

35 lines
920 B
Python

load("@rules_python//python:py_library.bzl", "py_library")
load("@rules_python//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
load("@rules_python//python/uv:lock.bzl", uv_lock = "lock")
load("@rules_uv//uv:pip.bzl", "pip_compile")
py_library(
name = "zml_utils",
srcs = ["zml_utils.py"],
visibility = ["//visibility:public"],
)
py_console_script_binary(
name = "hf",
script = "hf",
pkg = "@huggingface_hub//huggingface_hub:pkg",
visibility = ["//visibility:public"],
)
pip_compile(
name = "hf_update_requirements",
args = [
"--generate-hashes",
"--emit-index-url",
"--emit-find-links",
"--no-strip-extras",
"--index-strategy=unsafe-best-match",
"--upgrade",
],
requirements_in = "hf_requirements.in",
requirements_txt = "hf_requirements.lock.txt",
tags = [
"manual",
],
)