"docs/vscode:/vscode.git/clone" did not exist on "c69b082601bc5ba20a46b5470c761fca42752146"
Unverified Commit 67d9fc50 authored by Sam Shleifer's avatar Sam Shleifer Committed by GitHub
Browse files

[s2s] remove double assert (#7223)

parent edbaad2c
......@@ -102,11 +102,6 @@ class SummarizationModule(BaseTransformer):
}
assert self.target_lens["train"] <= self.target_lens["val"], f"target_lens: {self.target_lens}"
assert self.target_lens["train"] <= self.target_lens["test"], f"target_lens: {self.target_lens}"
if self.hparams.sortish_sampler and self.hparams.gpus > 1:
raise AssertionError("Sortish Sampler does not work for multigpu")
if self.hparams.sortish_sampler and self.hparams.max_tokens_per_batch is not None:
raise AssertionError("max tokens per batch and sortish sampler are incompatible.")
if self.hparams.freeze_embeds:
self.freeze_embeds()
if self.hparams.freeze_encoder:
......
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