Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/models/auto/test_modeling_tf_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_revision_not_found(self):
def test_model_file_not_found(self):
with self.assertRaisesRegex(
EnvironmentError,
"hf-internal-testing/config-no-model does not appear to have a file named tf_model.h5",
"hf-internal-testing/config-no-model does not appear to have a file named pytorch_model.bin",
Copy link
Collaborator

@ydshieh ydshieh Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to see this fixed the CI, however this is somehow confusing: it is TFAutoModel, but seeing the expected error being just pytorch_model.bin here blows my mind.

(I know the full error is hf-internal-testing/config-no-model does not appear to have a file named pytorch_model.bin, tf_model.h5 or model.ckpt)

):
_ = TFAutoModel.from_pretrained("hf-internal-testing/config-no-model")

Expand Down