Skip to content

Commit

Permalink
fix the incorrect max_length for chat template (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiwanpark authored Aug 9, 2024
1 parent 54392ac commit 0801f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/axolotl/prompt_strategies/chat_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def load(tokenizer, cfg, ds_cfg: Optional[Dict[str, Any]] = None):
),
"roles": ds_cfg.get("roles"),
"drop_system_message": ds_cfg.get("drop_system_message", False),
"max_length": cfg.sequence_len,
}

strategy_params = {
Expand Down

0 comments on commit 0801f23

Please sign in to comment.