Skip to content

Commit

Permalink
fix: mistral nemo does not recognize token_type_ids in forward (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 authored Jan 9, 2025
1 parent 3c1921e commit 2e8d7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def process_datasets_for_packing(cfg, train_dataset, eval_dataset):
if eval_dataset:
eval_dataset = eval_dataset.remove_columns("attention_mask")

if cfg.model_config_type == "falcon":
if cfg.model_config_type in ["falcon", "mistral"]:
LOG.info("dropping token_type_ids column if it exists")
if "token_type_ids" in train_dataset.column_names:
train_dataset = train_dataset.remove_columns("token_type_ids")
Expand Down

0 comments on commit 2e8d7c1

Please sign in to comment.