Commit 01a9d117 authored by Мазур Грета Евгеньевна's avatar Мазур Грета Евгеньевна
Browse files

obuch with cross and graphic SAVING LORA

parent fd807d16
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -43,7 +43,7 @@ class Classifiers(torch.nn.Module):
def forward(self, hidden_state):
cls_token = hidden_state[:, 0, :] # Берем [CLS] токен
return {
'safety': torch.softmax(self.safety(cls_token),
'safety': torch.softmax(self.safety(cls_token)),
'attack': torch.softmax(self.attack(cls_token)) }
......
......@@ -43,7 +43,7 @@ class Classifiers(torch.nn.Module):
def forward(self, hidden_state):
cls_token = hidden_state[:, 0, :] # Берем [CLS] токен
return {
'safety': torch.softmax(self.safety(cls_token),
'safety': torch.softmax(self.safety(cls_token)),
'attack': torch.softmax(self.attack(cls_token)) }
......
Supports Markdown
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