From 7843cebbd5d01d43147d2d8fbd783fb449581760 Mon Sep 17 00:00:00 2001 From: TARGETS Exterminator Date: Thu, 29 Jan 2026 20:15:39 -0800 Subject: [PATCH] Rename build files from TARGETS to BUCK (group ID: -4694635284539414136) (#17057) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/17057 Reviewed By: bigfootjon Differential Revision: D91837103 --- examples/models/gemma/BUCK | 24 ++++++++++++++++++++++++ examples/models/gemma2/BUCK | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 examples/models/gemma/BUCK create mode 100644 examples/models/gemma2/BUCK diff --git a/examples/models/gemma/BUCK b/examples/models/gemma/BUCK new file mode 100644 index 00000000000..3cc7c6d30a9 --- /dev/null +++ b/examples/models/gemma/BUCK @@ -0,0 +1,24 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") + +oncall("executorch") + +fbcode_target(_kind = runtime.python_library, + name = "gemma", + srcs = [ + "__init__.py", + "convert_weights.py", + ], + _is_external_target = True, + base_module = "executorch.examples.models.gemma", + resources = { + "config/2b_config.json": "config/2b_config.json", + }, + deps = [ + "//caffe2:torch", + "//executorch/examples/models/llama:llama2_model", + "fbcode//pytorch/torchtune:lib", + "fbsource//third-party/pypi/safetensors:safetensors", + ], + visibility = ["PUBLIC"], +) diff --git a/examples/models/gemma2/BUCK b/examples/models/gemma2/BUCK new file mode 100644 index 00000000000..b37347f7a0f --- /dev/null +++ b/examples/models/gemma2/BUCK @@ -0,0 +1,24 @@ +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") + +oncall("executorch") + +fbcode_target(_kind = runtime.python_library, + name = "gemma2", + srcs = [ + "__init__.py", + "convert_weights.py", + ], + _is_external_target = True, + base_module = "executorch.examples.models.gemma2", + resources = { + "config/2b_config.json": "config/2b_config.json", + }, + deps = [ + "//caffe2:torch", + "//executorch/examples/models/llama:llama2_model", + "fbcode//pytorch/torchtune:lib", + "fbsource//third-party/pypi/safetensors:safetensors", + ], + visibility = ["PUBLIC"], +)