Skip to content

Commit 8af61d3

Browse files
TARGETS Exterminatormeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: 31810057217536432) (#16657)
Summary: Pull Request resolved: #16657 Reviewed By: bigfootjon Differential Revision: D90809474
1 parent 3341474 commit 8af61d3

30 files changed

Lines changed: 785 additions & 533 deletions

File tree

examples/models/qwen2_5/BUCK

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
4+
5+
oncall("executorch")
6+
7+
fbcode_target(_kind = runtime.python_library,
8+
name = "qwen2_5",
9+
srcs = [
10+
"__init__.py",
11+
"convert_weights.py",
12+
],
13+
_is_external_target = True,
14+
base_module = "executorch.examples.models.qwen2_5",
15+
resources = {
16+
"config/0_5b_config.json": "config/0_5b_config.json",
17+
"config/1_5b_config.json": "config/1_5b_config.json",
18+
"config/qwen2_5_xnnpack_q8da4w.yaml": "config/qwen2_5_xnnpack_q8da4w.yaml",
19+
},
20+
deps = [
21+
"//caffe2:torch",
22+
"//executorch/examples/models:model_base",
23+
"//executorch/examples/models/llama:llama2_model",
24+
"fbcode//pytorch/torchtune:lib",
25+
],
26+
visibility = ["PUBLIC"],
27+
)

examples/models/qwen3/BUCK

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
4+
5+
oncall("executorch")
6+
7+
fbcode_target(_kind = runtime.python_library,
8+
name = "qwen3",
9+
srcs = [
10+
"__init__.py",
11+
"convert_weights.py",
12+
],
13+
_is_external_target = True,
14+
base_module = "executorch.examples.models.qwen3",
15+
resources = {
16+
"config/0_6b_config.json": "config/0_6b_config.json",
17+
"config/1_7b_config.json": "config/1_7b_config.json",
18+
"config/4b_config.json": "config/4b_config.json",
19+
"config/qwen3_xnnpack_q8da4w.yaml": "config/qwen3_xnnpack_q8da4w.yaml",
20+
},
21+
deps = [
22+
"//caffe2:torch",
23+
"//executorch/examples/models:model_base",
24+
"//executorch/examples/models/llama:llama2_model",
25+
"fbcode//pytorch/torchtune:lib",
26+
],
27+
visibility = ["PUBLIC"],
28+
)

examples/models/resnet/BUCK

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3+
4+
oncall("executorch")
5+
6+
fbcode_target(_kind = python_library,
7+
name = "resnet_model",
8+
srcs = [
9+
"__init__.py",
10+
"model.py",
11+
],
12+
deps = [
13+
"//caffe2:torch",
14+
"//executorch/examples/models:model_base",
15+
"//pytorch/vision:torchvision", # @manual
16+
],
17+
)

examples/models/smollm2/BUCK

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
4+
5+
oncall("executorch")
6+
7+
fbcode_target(_kind = runtime.python_library,
8+
name = "smollm2",
9+
srcs = [
10+
"__init__.py",
11+
"convert_weights.py",
12+
],
13+
_is_external_target = True,
14+
base_module = "executorch.examples.models.smollm2",
15+
resources = {
16+
"135M_config.json": "135M_config.json",
17+
},
18+
deps = [
19+
"//caffe2:torch",
20+
"//executorch/examples/models:model_base",
21+
"//executorch/examples/models/llama:llama2_model",
22+
"fbcode//pytorch/torchtune:lib",
23+
],
24+
visibility = ["PUBLIC"],
25+
)

examples/models/smollm3/BUCK

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
4+
5+
oncall("executorch")
6+
7+
fbcode_target(_kind = runtime.python_library,
8+
name = "smollm3",
9+
srcs = [
10+
"__init__.py",
11+
"convert_weights.py",
12+
],
13+
_is_external_target = True,
14+
base_module = "executorch.examples.models.smollm3",
15+
resources = {
16+
"3b_config.json": "3b_config.json",
17+
},
18+
deps = [
19+
"//caffe2:torch",
20+
"//executorch/examples/models:model_base",
21+
"//executorch/examples/models/llama:llama2_model",
22+
"fbcode//pytorch/torchtune:lib",
23+
],
24+
visibility = ["PUBLIC"],
25+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3+
4+
oncall("executorch")
5+
6+
fbcode_target(_kind = python_library,
7+
name = "vit_model",
8+
srcs = [
9+
"__init__.py",
10+
"model.py",
11+
],
12+
deps = [
13+
"//caffe2:torch",
14+
"//executorch/examples/models:model_base",
15+
"//pytorch/vision:torchvision", # @manual
16+
],
17+
)

examples/models/toy_model/BUCK

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3+
4+
oncall("executorch")
5+
6+
fbcode_target(_kind = python_library,
7+
name = "toy_model",
8+
srcs = [
9+
"__init__.py",
10+
"model.py",
11+
],
12+
deps = [
13+
"//caffe2:torch",
14+
"//executorch/examples/models:model_base",
15+
"//executorch/exir/backend:compile_spec_schema",
16+
],
17+
)

examples/models/wav2letter/BUCK

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3+
4+
oncall("executorch")
5+
6+
fbcode_target(_kind = python_library,
7+
name = "w2l_model",
8+
srcs = [
9+
"__init__.py",
10+
"model.py",
11+
],
12+
deps = [
13+
"//caffe2:torch",
14+
"//executorch/examples/models:model_base",
15+
"//pytorch/audio/src:torchaudio_core",
16+
],
17+
)

examples/portable/custom_ops/BUCK

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# Any targets that should be shared between fbcode and xplat must be defined in
24
# targets.bzl. This file can contain xplat-only targets.
35

46
load(":targets.bzl", "define_common_targets")
57

6-
oncall("executorch")
78

8-
define_common_targets()
9+
non_fbcode_target(_kind = define_common_targets,)
10+
11+
# !!!! fbcode/executorch/examples/portable/custom_ops/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
12+
13+
# Any targets that should be shared between fbcode and xplat must be defined in
14+
# targets.bzl. This file can contain fbcode-only targets.
15+
16+
load(":targets.bzl", "define_common_targets")
17+
18+
19+
fbcode_target(_kind = define_common_targets,)
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# Any targets that should be shared between fbcode and xplat must be defined in
24
# targets.bzl. This file can contain xplat-only targets.
35

46
load(":targets.bzl", "define_common_targets")
57

6-
oncall("executorch")
78

8-
define_common_targets()
9+
non_fbcode_target(_kind = define_common_targets,)
10+
11+
# !!!! fbcode/executorch/examples/portable/executor_runner/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
12+
13+
# Any targets that should be shared between fbcode and xplat must be defined in
14+
# targets.bzl. This file can contain fbcode-only targets.
15+
16+
load(":targets.bzl", "define_common_targets")
17+
18+
19+
fbcode_target(_kind = define_common_targets,)

0 commit comments

Comments
 (0)