Co-authored-by: leonardozcm <leonardozcm@gmail.com>
This commit is contained in:
Zhao Changmin 2023-09-11 16:40:33 +08:00 committed by GitHub
parent df165ad165
commit e62eda74b8

View file

@ -134,8 +134,8 @@ def optimize(model):
# All huggingface format models are inherited from `PreTrainedModel`
if not isinstance(model, PreTrainedModel):
logger.info("It is not supported that optimizing a model isn't belong to"
"huggingface transformers with `optimize_model=True` for now.")
logger.info("Only HuggingFace Transformers models are currently "
"supported for further optimizations")
return model
trans_version = transformers.__version__