Skip to content

Commit

Permalink
fix mamba config issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaqi Zeng <[email protected]>
  • Loading branch information
HeyyyyyyG committed Nov 18, 2024
1 parent be8a8d3 commit c1f1e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/nlp/gpt/train_gpt_sft.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main(cfg) -> None:
train_data_cfg,
ptl_model.tokenizer,
num_samples,
is_mamba=cfg.model.mamba_hybrid,
is_mamba=cfg.model.get("mamba_hybrid", False),
answer_only_loss=True,
is_chat=cfg.model.data.chat,
special_tokens=cfg.model.data.chat_prompt_tokens,
Expand All @@ -118,7 +118,7 @@ def main(cfg) -> None:
val_data_cfg,
ptl_model.tokenizer,
num_samples,
is_mamba=cfg.model.mamba_hybrid,
is_mamba=cfg.model.get("mamba_hybrid", False),
answer_only_loss=True,
is_chat=cfg.model.data.chat,
special_tokens=cfg.model.data.chat_prompt_tokens,
Expand Down

0 comments on commit c1f1e8b

Please sign in to comment.