Skip to content

Commit 308d8ee

Browse files
jenchen13realAsma
andauthored
Apply suggestion from @realAsma
Co-authored-by: realAsma <86726418+realAsma@users.noreply.github.com> Signed-off-by: Jenny Chen <jc4686@columbia.edu>
1 parent b1e32d9 commit 308d8ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modelopt/torch/quantization/plugins/transformer_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _setup(self):
147147
self._per_expert_weight_quantizer = _per_expert_weight_quantizer_enabled()
148148
if self._per_expert_weight_quantizer:
149149
for i in range(self.num_gemms):
150-
self.add_module(f"weight_quantizer_{i}", copy.deepcopy(self.weight_quantizer))
150+
self.add_module(f"weight_quantizer_{i}", TensorQuantizer())
151151

152152
def modelopt_post_restore(self, prefix: str = ""):
153153
# GroupedMLP stores the weights as weight0, weight1, etc. To run post_restore in order to

0 commit comments

Comments
 (0)