Skip to content

Commit a2b8c1b

Browse files
rsyuecirquit
andauthored
Update src/fairseq2/models/hg/factory.py
Co-authored-by: Alexander Erben <aerben@meta.com>
1 parent 15c0364 commit a2b8c1b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/fairseq2/models/hg/factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ def _load_auto_model(name: str, config: HuggingFaceModelConfig, hf_config: Any)
425425
f"Register it with register_hg_model_class() or use "
426426
f"model_type='custom' with the appropriate model class.",
427427
) from ex
428-
# Check if this might be an unsupported model
429428
if "does not appear to have a file named config.json" not in str(ex):
430429
raise HuggingFaceModelError(
431430
name,

0 commit comments

Comments
 (0)