mirror of https://github.com/google/gemma.cpp.git
43 lines
860 B
Python
43 lines
860 B
Python
# [internal] load py_binary
|
|
load("@pybind11_bazel//:build_defs.bzl", "pybind_extension")
|
|
|
|
package(
|
|
default_applicable_licenses = [
|
|
"//:license", # Placeholder comment, do not modify
|
|
],
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
pybind_extension(
|
|
name = "configs",
|
|
srcs = ["configs.cc"],
|
|
deps = [
|
|
"//:common",
|
|
"//compression:sfp",
|
|
],
|
|
)
|
|
|
|
pybind_extension(
|
|
name = "gemma",
|
|
srcs = ["gemma_py.cc"],
|
|
deps = [
|
|
"//:app",
|
|
"//:benchmark_helper",
|
|
"//:gemma_lib",
|
|
"//compression:sfp",
|
|
"@highway//:hwy",
|
|
"@highway//:thread_pool",
|
|
],
|
|
)
|
|
|
|
py_binary(
|
|
name = "run_example",
|
|
srcs = ["run_example.py"],
|
|
deps = [
|
|
":gemma",
|
|
"@python_deps//absl_py",
|
|
# placeholder for absl/flags
|
|
"@compression_deps//numpy",
|
|
],
|
|
)
|