Skip to content

Commit

Permalink
Add return type annotation to PreTrainedModel.from_pretrained (#31869)
Browse files Browse the repository at this point in the history
Update modeling_utils.py

Add return type annotation to PreTrainedModel.from_pretrained
  • Loading branch information
mauvilsa authored Jul 9, 2024
1 parent 6e59b30 commit c5bc2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2832,7 +2832,7 @@ def from_pretrained(
revision: str = "main",
use_safetensors: bool = None,
**kwargs,
):
) -> "PreTrainedModel":
r"""
Instantiate a pretrained pytorch model from a pre-trained model configuration.
Expand Down

0 comments on commit c5bc2d5

Please sign in to comment.