Custom GPT2 head - WIP
This commit is contained in:
parent
3037991562
commit
73cb2a719b
4
gpt2.py
4
gpt2.py
@ -83,6 +83,10 @@ class GPT2ClassificationHeadCustom(nn.Module):
|
|||||||
x = self.dense_2(x)
|
x = self.dense_2(x)
|
||||||
x = torch.relu(x)
|
x = torch.relu(x)
|
||||||
x = self.dropout(x)
|
x = self.dropout(x)
|
||||||
|
|
||||||
|
x = torch.relu(x)
|
||||||
|
x = self.dense_2(x)
|
||||||
|
x = self.dropout(x)
|
||||||
|
|
||||||
x = self.out_proj(x)
|
x = self.out_proj(x)
|
||||||
return x
|
return x
|
||||||
|
Loading…
Reference in New Issue
Block a user