Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def loss_fn(pred, labels):
True
)
logger.info("Compiling model with torch.compile")
model = torch.compile(model)
# Dynamic shape have issues with distributed, turn dynamic off as Transformer
# training is static_shape TODO: resolve dynamic shape issue and restore defaults
model = torch.compile(model, dynamic=False)

train_state = TrainState()

Expand Down
2 changes: 1 addition & 1 deletion train_configs/llama3_8b.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ save_tb_folder = "tb"
[model]
name = "llama3"
flavor = "8B"
norm_type = "fused_rmsnorm" # [layernorm / np_layernorm / rmsnorm / fused_rmsnorm]
norm_type = "rmsnorm" # [layernorm / np_layernorm / rmsnorm / fused_rmsnorm]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I feel it's a bit painful to switch between rmsnorm and fused_rmsnorm locally when switching between 1-D and 2-D sharding, so I changed rmsnorm to default, we can always default to fused_rmsnorm once @tianyu-l changes the fused_rmsnorm registration #296.

Let me know if you think we should default to fused_rmsnorm for 8B

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping it as rmsnorm sounds good to me!

tokenizer_path = "./torchtitan/datasets/tokenizer/original/tokenizer.model"

[optimizer]
Expand Down