forked from modular/modular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
29 lines (27 loc) · 802 Bytes
/
BUILD.bazel
File metadata and controls
29 lines (27 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
load("//bazel:api.bzl", "modular_py_library", "pkg_files", "requirement", "strip_prefix")
modular_py_library(
name = "nn",
srcs = glob(["**/*.py"]),
imports = ["../.."],
deps = [
requirement("numpy"),
requirement("gguf"),
requirement("torch"),
requirement("transformers"),
"//SDK/lib/API/python/max/dtype",
"//SDK/lib/API/python/max/engine",
"//SDK/lib/API/python/max/graph",
"//SDK/lib/API/python/max/pipelines/core",
"//SDK/lib/API/python/max/serve/kvcache_agent",
"//SDK/lib/API/python/max/support",
],
)
pkg_files(
name = "python_files",
srcs = glob([
"**/*.py",
]),
prefix = "nn",
strip_prefix = strip_prefix.from_pkg(""),
visibility = ["//visibility:public"],
)