Skip to content

Commit 032a4bf

Browse files
committed
minor
Signed-off-by: realAsma <[email protected]>
1 parent b605d8c commit 032a4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelopt/torch/quantization/plugins/transformers_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def _modelopt_prepare(self, *args, **kwargs):
298298

299299
for tq in (m for m in model.modules() if isinstance(m, TensorQuantizer)):
300300
tq._non_persistent_buffers_set.clear()
301-
tq._non_persistent_buffers_set = tq_og_non_prsist_buffers[tq]
301+
tq._non_persistent_buffers_set.update(tq_og_non_prsist_buffers[tq])
302302

303303
return outputs
304304

0 commit comments

Comments
 (0)