Skip to content

Commit 8c2c2f0

Browse files
committed
[Tensor Parallel] update examples to simplify embedding + first transformer block
ghstack-source-id: 49c0b6f Pull Request resolved: #1259
1 parent 851c4cf commit 8c2c2f0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

distributed/tensor_parallelism/fsdp_tp_example.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,13 @@
107107
{
108108
"tok_embeddings": RowwiseParallel(
109109
input_layouts=Replicate(),
110+
output_layouts=Shard(1),
110111
),
111112
"output": ColwiseParallel(
112113
input_layouts=Shard(1),
113114
output_layouts=Replicate()
114115
),
115116
"norm": SequenceParallel(),
116-
"layers.0": PrepareModuleInput(
117-
input_layouts=(Replicate(), None),
118-
desired_input_layouts=(Shard(1), None),
119-
use_local_output=True,
120-
),
121117
}
122118
)
123119

0 commit comments

Comments
 (0)