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 + ], +)