Skip to content

Commit aef7fc5

Browse files
committed
Move llama_transformer to extension/llm
1 parent 44b5eac commit aef7fc5

File tree

20 files changed

+2141
-1876
lines changed

20 files changed

+2141
-1876
lines changed

examples/models/llama/TARGETS

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ runtime.python_library(
1313
name = "llama_transformer",
1414
srcs = [
1515
"llama_transformer.py",
16-
"rope.py",
17-
"attention.py",
18-
"model_args.py",
19-
"norm.py",
2016
],
2117
_is_external_target = True,
2218
base_module = "executorch.examples.models.llama",
@@ -26,23 +22,21 @@ runtime.python_library(
2622
],
2723
deps = [
2824
"//caffe2:torch",
25+
"//executorch/extension/llm/modeling/text_decoder:text_decoder_attention",
26+
"//executorch/extension/llm/modeling/text_decoder:text_decoder_model_args",
27+
"//executorch/extension/llm/modeling/text_decoder:text_decoder_norm",
28+
"//executorch/extension/llm/modeling/text_decoder:text_decoder_rope",
2929
],
3030
)
3131

3232
runtime.python_library(
3333
name = "static_attention",
34-
srcs = [
35-
"static_attention.py",
36-
],
37-
_is_external_target = True,
38-
base_module = "executorch.examples.models.llama",
3934
visibility = [
4035
"//executorch/...",
4136
"@EXECUTORCH_CLIENTS",
4237
],
4338
deps = [
44-
":llama_transformer",
45-
"//caffe2:torch",
39+
"//executorch/extension/llm/modeling/text_decoder:text_decoder_static_attention",
4640
],
4741
)
4842

0 commit comments

Comments
 (0)