Skip to content

Commit

Permalink
Add repr for QuantizedTransformersModel
Browse files Browse the repository at this point in the history
  • Loading branch information
imba-tjd authored and dacorvo committed Nov 25, 2024
1 parent 4508702 commit 66dca87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions optimum/quanto/models/transformers_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def forward(self, *args, **kwargs):
def __call__(self, *args, **kwargs):
return self._wrapped.forward(*args, **kwargs)

def __repr__(self):
return self._wrapped.__repr__()

@staticmethod
def _qmap_name():
return f"{QuantizedTransformersModel.BASE_NAME}_qmap.json"
Expand Down

0 comments on commit 66dca87

Please sign in to comment.