from local

This commit is contained in:
dohe0342 2022-12-26 14:24:06 +09:00
parent ed4ebb88de
commit ac94ffaa2a
2 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class ResidualAdapterModule(nn.Module):
[build_adapter(embedding_dim, proj_dim) for _ in range(layer_num)]
)
def forward(x, layer_id=-1):
def forward(x, layer_id = 0)#, layer_id=-1):
x = x.transpose(0, 1)
residual = x
x = self.adapter_layers[layer_id](x)