From 0ef1e76c1c75f75467cf179718f6131e5b94316e Mon Sep 17 00:00:00 2001 From: "fbsource/fbsource_targets_to_buck.json Bot" Date: Fri, 30 Jan 2026 00:31:31 -0800 Subject: [PATCH] Rename build files from TARGETS to BUCK (group ID: 2875593209661639754) (#17037) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/17037 Reviewed By: bigfootjon Differential Revision: D91838773 --- examples/models/phi_4_mini/BUCK | 26 ++++++++++++++++++++++++++ examples/models/qwen2_5/BUCK | 27 +++++++++++++++++++++++++++ examples/models/qwen3/BUCK | 28 ++++++++++++++++++++++++++++ examples/models/resnet/BUCK | 17 +++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 examples/models/phi_4_mini/BUCK create mode 100644 examples/models/qwen2_5/BUCK create mode 100644 examples/models/qwen3/BUCK create mode 100644 examples/models/resnet/BUCK diff --git a/examples/models/phi_4_mini/BUCK b/examples/models/phi_4_mini/BUCK new file mode 100644 index 00000000000..d33409fea99 --- /dev/null +++ b/examples/models/phi_4_mini/BUCK @@ -0,0 +1,26 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") +load("@fbcode_macros//build_defs:python_library.bzl", "python_library") + +oncall("executorch") + +fbcode_target(_kind = runtime.python_library, + name = "phi_4_mini", + srcs = [ + "__init__.py", + "convert_weights.py", + ], + _is_external_target = True, + base_module = "executorch.examples.models.phi_4_mini", + resources = { + "config/config.json": "config/config.json", + "config/phi_4_mini_xnnpack.yaml": "config/phi_4_mini_xnnpack.yaml", + }, + deps = [ + "//caffe2:torch", + "//executorch/examples/models:model_base", + "//executorch/examples/models/llama:llama2_model", + "fbcode//pytorch/torchtune:lib", + ], + visibility = ["PUBLIC"], +) diff --git a/examples/models/qwen2_5/BUCK b/examples/models/qwen2_5/BUCK new file mode 100644 index 00000000000..16557402ec9 --- /dev/null +++ b/examples/models/qwen2_5/BUCK @@ -0,0 +1,27 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") +load("@fbcode_macros//build_defs:python_library.bzl", "python_library") + +oncall("executorch") + +fbcode_target(_kind = runtime.python_library, + name = "qwen2_5", + srcs = [ + "__init__.py", + "convert_weights.py", + ], + _is_external_target = True, + base_module = "executorch.examples.models.qwen2_5", + resources = { + "config/0_5b_config.json": "config/0_5b_config.json", + "config/1_5b_config.json": "config/1_5b_config.json", + "config/qwen2_5_xnnpack_q8da4w.yaml": "config/qwen2_5_xnnpack_q8da4w.yaml", + }, + deps = [ + "//caffe2:torch", + "//executorch/examples/models:model_base", + "//executorch/examples/models/llama:llama2_model", + "fbcode//pytorch/torchtune:lib", + ], + visibility = ["PUBLIC"], +) diff --git a/examples/models/qwen3/BUCK b/examples/models/qwen3/BUCK new file mode 100644 index 00000000000..e4aa2f4b767 --- /dev/null +++ b/examples/models/qwen3/BUCK @@ -0,0 +1,28 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") +load("@fbcode_macros//build_defs:python_library.bzl", "python_library") + +oncall("executorch") + +fbcode_target(_kind = runtime.python_library, + name = "qwen3", + srcs = [ + "__init__.py", + "convert_weights.py", + ], + _is_external_target = True, + base_module = "executorch.examples.models.qwen3", + resources = { + "config/0_6b_config.json": "config/0_6b_config.json", + "config/1_7b_config.json": "config/1_7b_config.json", + "config/4b_config.json": "config/4b_config.json", + "config/qwen3_xnnpack_q8da4w.yaml": "config/qwen3_xnnpack_q8da4w.yaml", + }, + deps = [ + "//caffe2:torch", + "//executorch/examples/models:model_base", + "//executorch/examples/models/llama:llama2_model", + "fbcode//pytorch/torchtune:lib", + ], + visibility = ["PUBLIC"], +) diff --git a/examples/models/resnet/BUCK b/examples/models/resnet/BUCK new file mode 100644 index 00000000000..c2acd6a0866 --- /dev/null +++ b/examples/models/resnet/BUCK @@ -0,0 +1,17 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +load("@fbcode_macros//build_defs:python_library.bzl", "python_library") + +oncall("executorch") + +fbcode_target(_kind = python_library, + name = "resnet_model", + srcs = [ + "__init__.py", + "model.py", + ], + deps = [ + "//caffe2:torch", + "//executorch/examples/models:model_base", + "//pytorch/vision:torchvision", # @manual + ], +)