parent
df165ad165
commit
e62eda74b8
1 changed files with 2 additions and 2 deletions
|
|
@ -134,8 +134,8 @@ def optimize(model):
|
||||||
|
|
||||||
# All huggingface format models are inherited from `PreTrainedModel`
|
# All huggingface format models are inherited from `PreTrainedModel`
|
||||||
if not isinstance(model, PreTrainedModel):
|
if not isinstance(model, PreTrainedModel):
|
||||||
logger.info("It is not supported that optimizing a model isn't belong to"
|
logger.info("Only HuggingFace Transformers models are currently "
|
||||||
"huggingface transformers with `optimize_model=True` for now.")
|
"supported for further optimizations")
|
||||||
return model
|
return model
|
||||||
|
|
||||||
trans_version = transformers.__version__
|
trans_version = transformers.__version__
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue