Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 4378b26

Browse files
authored
Typo / Docs
Added comment, and a missing self parameter
1 parent 8b66b1b commit 4378b26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torchchat/utils/quantize.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def quantized_model(self) -> nn.Module:
158158
self.model_.load_state_dict(model_updated_state_dict)
159159
return self.model_
160160

161-
def quantize(model: nn.Module) -> nn.Module:
161+
# fallback for TC QuantHandlers that do not implement the method .quantize()
162+
def quantize(self, model: nn.Module) -> nn.Module:
162163
self.model_ = model
163164
return self.quantized_model()
164165

0 commit comments

Comments
 (0)