@@ -325,8 +325,8 @@ def compile(
325
325
]
326
326
327
327
return self ._compile (
328
- onnx_path ,
329
- compile_dir ,
328
+ onnx_path = onnx_path ,
329
+ compile_dir = compile_dir ,
330
330
compile_only = True ,
331
331
specializations = specializations ,
332
332
convert_to_fp16 = True ,
@@ -453,7 +453,7 @@ def __init__(self, model: nn.modules):
453
453
self .model = model .get_qeff_vision_encoder ()
454
454
455
455
def export (self , inputs , output_names , dynamic_axes , export_dir = None ):
456
- return self ._export (inputs , output_names , dynamic_axes , export_dir )
456
+ return self ._export (inputs , output_names , dynamic_axes , export_dir = export_dir )
457
457
458
458
def compile (
459
459
self ,
@@ -521,7 +521,7 @@ def __init__(self, model):
521
521
self .model = model .get_qeff_language_decoder ()
522
522
523
523
def export (self , inputs , output_names , dynamic_axes , export_dir = None ):
524
- return self ._export (inputs , output_names , dynamic_axes , export_dir )
524
+ return self ._export (inputs , output_names , dynamic_axes , export_dir = export_dir )
525
525
526
526
def compile (
527
527
self ,
@@ -634,10 +634,10 @@ def export(
634
634
inputs ["vision" ],
635
635
output_names ["vision" ],
636
636
dynamic_axes ["vision" ],
637
- export_dir ,
637
+ export_dir = export_dir ,
638
638
)
639
639
640
- self .lang_model .export (inputs ["lang" ], output_names ["lang" ], dynamic_axes ["lang" ], export_dir )
640
+ self .lang_model .export (inputs ["lang" ], output_names ["lang" ], dynamic_axes ["lang" ], export_dir = export_dir )
641
641
return self .onnx_path
642
642
643
643
def compile (
@@ -702,7 +702,7 @@ def compile(
702
702
703
703
if not skip_vision :
704
704
self .vision_model ._compile (
705
- compile_dir ,
705
+ compile_dir = compile_dir ,
706
706
compile_only = True ,
707
707
specializations = specializations ["vision" ],
708
708
convert_to_fp16 = True ,
@@ -729,7 +729,7 @@ def compile(
729
729
custom_io_lang [output_name ] = "float16" if "vision_embeds" in output_name else kv_cache_dtype
730
730
731
731
self .lang_model ._compile (
732
- compile_dir ,
732
+ compile_dir = compile_dir ,
733
733
compile_only = True ,
734
734
retained_state = True ,
735
735
specializations = specializations ["lang" ],
@@ -1041,8 +1041,8 @@ def compile(
1041
1041
custom_io [output_name ] = "float16" if "pixel_values" in output_name else kv_cache_dtype
1042
1042
1043
1043
self ._compile (
1044
- onnx_path ,
1045
- compile_dir ,
1044
+ onnx_path = onnx_path ,
1045
+ compile_dir = compile_dir ,
1046
1046
compile_only = True ,
1047
1047
retained_state = True ,
1048
1048
specializations = specializations ,
@@ -2080,8 +2080,8 @@ def compile(
2080
2080
custom_io [output_name ] = kv_cache_dtype
2081
2081
2082
2082
return self ._compile (
2083
- onnx_path ,
2084
- compile_dir ,
2083
+ onnx_path = onnx_path ,
2084
+ compile_dir = compile_dir ,
2085
2085
compile_only = True ,
2086
2086
retained_state = True ,
2087
2087
specializations = specializations ,
0 commit comments