Custom GPT2 head - WIP

This commit is contained in:
Andrzej Preibisz 2023-02-12 19:04:16 +01:00
parent 3037991562
commit 73cb2a719b

View File

@ -83,6 +83,10 @@ class GPT2ClassificationHeadCustom(nn.Module):
x = self.dense_2(x)
x = torch.relu(x)
x = self.dropout(x)
x = torch.relu(x)
x = self.dense_2(x)
x = self.dropout(x)
x = self.out_proj(x)
return x