Skip to content

Commit 945cdf5

Browse files
committed
Enable kwarg inputs for pt2e quantize for torchtune models
1 parent 3ef78ee commit 945cdf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/llm/export/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def pt2e_quantize(self, quantizers: Optional[List[Quantizer]]) -> "LLMEdgeManage
342342
logging.info(
343343
"No calibration provided, using dummy input to calibrate..."
344344
)
345-
m(*self.example_inputs)
345+
m(*self.example_inputs, **self.example_kwarg_inputs)
346346
m = convert_pt2e(m)
347347
DuplicateDynamicQuantChainPass()(m)
348348
self.pre_autograd_graph_module = m

0 commit comments

Comments
 (0)