Adjust warmup duration of layerdrop_prob

This commit is contained in:
Daniel Povey 2022-12-20 00:12:10 +08:00
parent 473bb338d6
commit 5c11e92d4a

View File

@ -1666,7 +1666,7 @@ class ConvNeXt(nn.Module):
pad = (kernel_size - 1) // 2 pad = (kernel_size - 1) // 2
hidden_channels = channels * hidden_ratio hidden_channels = channels * hidden_ratio
if layerdrop_prob is None: if layerdrop_prob is None:
layerdrop_prob = ScheduledFloat((0.0, 0.1), (16000.0, 0.01)) layerdrop_prob = ScheduledFloat((0.0, 0.2), (16000.0, 0.025))
self.layerdrop_prob = layerdrop_prob self.layerdrop_prob = layerdrop_prob
self.depthwise_conv = nn.Conv2d( self.depthwise_conv = nn.Conv2d(