"vscode:/vscode.git/clone" did not exist on "01ee0978cc7e56c1ba7ff0e455ec416bcdeb69dc"
Commit 1f4966dc authored by Jared Casper's avatar Jared Casper
Browse files

Re-add assert for no pipeline paralleism for T5

parent 5c8238c3
...@@ -334,6 +334,10 @@ class TransformerLanguageModel(MegatronModule): ...@@ -334,6 +334,10 @@ class TransformerLanguageModel(MegatronModule):
# Decoder (usually set to False, True if part of an encoder-decoder # Decoder (usually set to False, True if part of an encoder-decoder
# architecture and in decoder-only stage). # architecture and in decoder-only stage).
if self.add_decoder: if self.add_decoder:
# Temporary assertion until we verify correctness of pipeline parallelism
# implementation of T5.
assert args.pipeline_model_parallel_size == 1, \
'pipeline parallelism is not supported in the presence of decoder'
self.decoder = ParallelTransformer( self.decoder = ParallelTransformer(
self.init_method, self.init_method,
output_layer_init_method, output_layer_init_method,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment