We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e3985 commit c68125dCopy full SHA for c68125d
tests/utils/test_modeling_utils.py
@@ -1319,12 +1319,6 @@ def test_use_safetensors(self):
1319
with self.assertRaises(OSError) as missing_model_file_error:
1320
BertModel.from_pretrained("hf-internal-testing/config-no-model")
1321
1322
- self.assertTrue(
1323
- "does not appear to have a file named pytorch_model.bin or model.safetensors."
1324
- in str(missing_model_file_error.exception),
1325
- msg=missing_model_file_error.exception,
1326
- )
1327
-
1328
1329
with tempfile.TemporaryDirectory() as tmp_dir:
1330
with open(os.path.join(tmp_dir, "config.json"), "w") as f:
0 commit comments