Skip to content

Commit 2b36b15

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

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
@@ -541,7 +541,6 @@ def _import_class_from_transformers(class_name: str) -> Any:
541541
return getattr(transformers_module, class_name)
542542
except AttributeError:
543543
# If not found in main module, it might be in a submodule
544-
# This is a simplified approach
545544
raise ImportError(
546545
f"Class '{class_name}' not found in transformers library. Make sure you have the correct version installed." # fmt: skip
547546
)

0 commit comments

Comments
 (0)