Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2024
1 parent 1199754 commit a80820d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_round/autoround.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def forward(m, hidden_states=None, *positional_args, **kwargs):
for key in kwargs.keys():
if isinstance(kwargs[key], torch.Tensor) or isinstance(kwargs[key], list) \
or isinstance(kwargs[key], tuple):
if key not in self.inputs[name].keys(): # initilization
if key not in self.inputs[name].keys(): # initialization
data = to_device(kwargs[key], device=torch.device("cpu"))
if data is None or (self.train_bs > 1 and key in shareable_keywords):
self.inputs[name][key] = data
Expand Down

0 comments on commit a80820d

Please sign in to comment.