Skip to content

Commit

Permalink
Fixed CLM model still using MODEL_FOR_MASKED_LM_MAPPING (#13002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed Aug 31, 2021
1 parent aa08a34 commit 702f4a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tensorflow/language-modeling/run_clm.py
Expand Up @@ -43,7 +43,7 @@
from transformers import (
CONFIG_MAPPING,
CONFIG_NAME,
MODEL_FOR_MASKED_LM_MAPPING,
MODEL_FOR_CAUSAL_LM_MAPPING,
TF2_WEIGHTS_NAME,
AutoConfig,
AutoTokenizer,
Expand All @@ -58,7 +58,7 @@

logger = logging.getLogger(__name__)
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
MODEL_CONFIG_CLASSES = list(MODEL_FOR_MASKED_LM_MAPPING.keys())
MODEL_CONFIG_CLASSES = list(MODEL_FOR_CAUSAL_LM_MAPPING.keys())
MODEL_TYPES = tuple(conf.model_type for conf in MODEL_CONFIG_CLASSES)
# endregion

Expand Down

0 comments on commit 702f4a4

Please sign in to comment.