File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ runtime.python_library(
152
152
"//ai_codesign/gen_ai/fast_hadamard_transform:fast_hadamard_transform",
153
153
"//caffe2:torch",
154
154
"//executorch/examples/models/llama/config:llm_config",
155
+ "//executorch/examples/models/llama/config:llm_config_utils",
155
156
"//executorch/backends/vulkan/_passes:vulkan_passes",
156
157
"//executorch/exir/passes:init_mutable_pass",
157
158
"//executorch/examples/models:model_base",
Original file line number Diff line number Diff line change @@ -121,13 +121,17 @@ def convert_args_to_llm_config(args: argparse.Namespace) -> LlmConfig:
121
121
if hasattr (args , "coreml" ):
122
122
llm_config .backend .coreml .enabled = args .coreml
123
123
llm_config .backend .coreml .enable_state = getattr (args , "coreml_enable_state" , False )
124
- llm_config .backend .coreml .preserve_sdpa = getattr (args , "coreml_preserve_sdpa" , False )
124
+ llm_config .backend .coreml .preserve_sdpa = getattr (
125
+ args , "coreml_preserve_sdpa" , False
126
+ )
125
127
if hasattr (args , "coreml_quantize" ) and args .coreml_quantize :
126
128
llm_config .backend .coreml .quantize = CoreMLQuantize (args .coreml_quantize )
127
129
if hasattr (args , "coreml_ios" ):
128
130
llm_config .backend .coreml .ios = args .coreml_ios
129
131
if hasattr (args , "coreml_compute_units" ):
130
- llm_config .backend .coreml .compute_units = CoreMLComputeUnit (args .coreml_compute_units )
132
+ llm_config .backend .coreml .compute_units = CoreMLComputeUnit (
133
+ args .coreml_compute_units
134
+ )
131
135
132
136
# Vulkan
133
137
if hasattr (args , "vulkan" ):
You can’t perform that action at this time.
0 commit comments