We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e88d28 commit 7369463Copy full SHA for 7369463
neural_compressor/evaluation/lm_eval/models/huggingface.py
@@ -359,7 +359,7 @@ def config(self):
359
@property
360
def model(self):
361
# returns the model, unwrapping it if using Accelerate
362
- if hasattr(self, "accelerator"):
+ if hasattr(self, "accelerator") and self._model is not None:
363
return self.accelerator.unwrap_model(self._model)
364
else:
365
return self._model
0 commit comments