File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -162,11 +162,11 @@ class QuantizationConfig:
162
162
pt2e_quantize : Optional [Pt2eQuantize ] = None
163
163
group_size : Optional [int ] = None
164
164
use_spin_quant : Optional [SpinQuant ] = None
165
- use_qat : Optional [ bool ] = None
165
+ use_qat : bool = False
166
166
calibration_tasks : Optional [List [str ]] = None
167
167
calibration_limit : Optional [int ] = None
168
168
calibration_seq_length : Optional [int ] = None
169
- calibration_data : Optional [ str ] = None
169
+ calibration_data : str = "Once upon a time"
170
170
171
171
def __post_init__ (self ):
172
172
if self .qmode :
@@ -243,7 +243,7 @@ class QNNConfig:
243
243
244
244
@dataclass
245
245
class MPSConfig :
246
- enabled : Optional [ bool ] = False
246
+ enabled : bool = False
247
247
248
248
249
249
@dataclass
Original file line number Diff line number Diff line change 8
8
9
9
from executorch .devtools .backend_debug import get_delegation_info
10
10
from executorch .examples .models .llama .config .llm_config import LlmConfig
11
- from executorch .examples .models .llama .export_llama_lib import (
12
- _export_llama ,
13
- build_args_parser ,
14
- )
11
+ from executorch .examples .models .llama .export_llama_lib import _export_llama
15
12
16
13
UNWANTED_OPS = [
17
14
"aten_permute_copy_default" ,
@@ -41,13 +38,6 @@ def test_has_expected_ops_and_op_counts(self):
41
38
llm_config .model .use_kv_cache = True
42
39
llm_config .debug .verbose = True
43
40
44
- # We still need args for backward compatibility during transition
45
- parser = build_args_parser ()
46
- args = parser .parse_args ([])
47
- args .use_sdpa_with_kv_cache = True
48
- args .use_kv_cache = True
49
- args .verbose = True
50
-
51
41
builder = _export_llama (llm_config )
52
42
graph_module = builder .edge_manager .exported_program ().graph_module
53
43
delegation_info = get_delegation_info (graph_module )
You can’t perform that action at this time.
0 commit comments