Skip to content

Commit

Permalink
fix(transformers): add missing call implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dacorvo committed Sep 30, 2024
1 parent 7b73aae commit eb281be
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 @@ -56,6 +56,9 @@ def __getattr__(self, name: str) -> Any:
def forward(self, *args, **kwargs):
return self._wrapped.forward(*args, **kwargs)

def __call__(self, *args, **kwargs):
return self._wrapped.forward(*args, **kwargs)

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

0 comments on commit eb281be

Please sign in to comment.