mirror of https://github.com/google/gemma.cpp.git
81 lines
2.5 KiB
Plaintext
81 lines
2.5 KiB
Plaintext
module(
|
|
name = "gemma",
|
|
version = "0.1.0",
|
|
)
|
|
|
|
bazel_dep(name = "abseil-cpp", version = "20240722.0")
|
|
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
|
bazel_dep(name = "googletest", version = "1.15.2")
|
|
bazel_dep(name = "highway", version = "1.1.0")
|
|
bazel_dep(name = "nlohmann_json", version = "3.11.3")
|
|
bazel_dep(name = "platforms", version = "0.0.10")
|
|
bazel_dep(name = "pybind11_bazel", version = "2.12.0")
|
|
bazel_dep(name = "rules_cc", version = "0.0.16")
|
|
bazel_dep(name = "rules_license", version = "1.0.0")
|
|
bazel_dep(name = "rules_python", version = "1.0.0")
|
|
bazel_dep(name = "google_benchmark", version = "1.8.5")
|
|
|
|
# Require a more recent version.
|
|
git_override(
|
|
module_name = "highway",
|
|
commit = "9414b48aeec251b69e6cadbfa42bebb5ddae1c34",
|
|
remote = "https://github.com/google/highway",
|
|
)
|
|
|
|
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "com_google_absl_py",
|
|
sha256 = "8a3d0830e4eb4f66c4fa907c06edf6ce1c719ced811a12e26d9d3162f8471758",
|
|
strip_prefix = "abseil-py-2.1.0",
|
|
urls = [
|
|
"https://github.com/abseil/abseil-py/archive/refs/tags/v2.1.0.tar.gz",
|
|
],
|
|
)
|
|
|
|
http_archive(
|
|
name = "com_google_sentencepiece",
|
|
build_file = "@//bazel:sentencepiece.bazel",
|
|
patch_args = ["-p1"],
|
|
patches = ["@//bazel:sentencepiece.patch"],
|
|
sha256 = "8409b0126ebd62b256c685d5757150cf7fcb2b92a2f2b98efb3f38fc36719754",
|
|
strip_prefix = "sentencepiece-0.1.96",
|
|
urls = ["https://github.com/google/sentencepiece/archive/refs/tags/v0.1.96.zip"],
|
|
)
|
|
|
|
# For sentencepiece
|
|
http_archive(
|
|
name = "darts_clone",
|
|
build_file_content = """
|
|
licenses(["notice"])
|
|
exports_files(["LICENSE"])
|
|
package(default_visibility = ["//visibility:public"])
|
|
cc_library(
|
|
name = "darts_clone",
|
|
hdrs = [
|
|
"include/darts.h",
|
|
],
|
|
)
|
|
""",
|
|
sha256 = "c97f55d05c98da6fcaf7f9ecc6a6dc6bc5b18b8564465f77abff8879d446491c",
|
|
strip_prefix = "darts-clone-e40ce4627526985a7767444b6ed6893ab6ff8983",
|
|
urls = [
|
|
"https://github.com/s-yata/darts-clone/archive/e40ce4627526985a7767444b6ed6893ab6ff8983.zip",
|
|
],
|
|
)
|
|
|
|
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
|
|
pip.parse(
|
|
hub_name = "compression_deps",
|
|
python_version = "3.11",
|
|
requirements_lock = "//compression/python:requirements.txt",
|
|
)
|
|
use_repo(pip, "compression_deps")
|
|
|
|
pip.parse(
|
|
hub_name = "python_deps",
|
|
python_version = "3.11",
|
|
requirements_lock = "//python:requirements.txt",
|
|
)
|
|
use_repo(pip, "python_deps")
|