mirror of https://github.com/google/gemma.cpp.git
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
module(
|
|
name = "gemma",
|
|
version = "0.1.0",
|
|
)
|
|
|
|
bazel_dep(name = "abseil-cpp", version = "20240722.0")
|
|
bazel_dep(name = "bazel_skylib", version = "1.6.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.9")
|
|
bazel_dep(name = "rules_license", version = "0.0.7")
|
|
bazel_dep(name = "google_benchmark", version = "1.8.5")
|
|
|
|
# Require a more recent version.
|
|
git_override(
|
|
module_name = "highway",
|
|
commit = "f2209b911c74019e85d0b7a7a2833c9a2e1b7995",
|
|
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_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",
|
|
],
|
|
)
|