Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmlon committed Jan 25, 2024
1 parent 13fd655 commit 83580ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlenlp/transformers/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2274,7 +2274,7 @@ def from_pretrained(cls, pretrained_model_name_or_path, *args, **kwargs):
subfolder=subfolder,
**kwargs,
)
except OSError:
except (ValueError, OSError):
logger.info(
"Generation config file not found, using a generation config created from the model config."
)
Expand Down

0 comments on commit 83580ed

Please sign in to comment.