Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/apple/mps/scripts/mps_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_model_config(args):
return model_config


if __name__ == "__main__":
if __name__ == "__main__": # noqa: C901
args = parse_args()

if args.model_name not in MODEL_NAME_TO_MODEL:
Expand Down
4 changes: 4 additions & 0 deletions examples/models/llama/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ runtime.python_library(
name = "export_library",
srcs = [
"export_llama.py",
"export_llama_args.py",
"export_llama_hydra.py",
"export_llama_lib.py",
"model.py",
],
Expand All @@ -148,6 +150,8 @@ runtime.python_library(
":source_transformation",
"//ai_codesign/gen_ai/fast_hadamard_transform:fast_hadamard_transform",
"//caffe2:torch",
"//executorch/examples/models/llama/config:llm_config",
"//executorch/backends/vulkan/_passes:vulkan_passes",
"//executorch/exir/passes:init_mutable_pass",
"//executorch/examples/models:model_base",
"//executorch/examples/models:models",
Expand Down
9 changes: 9 additions & 0 deletions examples/models/llama/config/TARGETS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.

load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load(":targets.bzl", "define_common_targets")

oncall("executorch")

define_common_targets()
Loading
Loading