Skip to content

Commit 4f34539

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

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/fairseq2/models/hg/adapter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ def wrap_hg_model_if_causal_lm(hf_model: Module, config: Any) -> Module:
303303
:param config: The HuggingFaceModelConfig used to create the model.
304304
:returns: Wrapped model if it's a causal LM, otherwise the original model.
305305
"""
306-
# Check if this is a causal LM that should be wrapped
307306
if hasattr(config, "model_type") and config.model_type == "causal_lm":
308307
# Determine max_seq_len from HF model config
309308
max_seq_len = 8192 # default

0 commit comments

Comments
 (0)