Update model architecture: d_ff=1024, new weights from merged7.pt
Browse files- modeling_chessbot.py +1 -1
modeling_chessbot.py
CHANGED
|
@@ -626,7 +626,7 @@ class ChessBotModel(ChessBotPreTrainedModel):
|
|
| 626 |
probs = F.softmax(logits/T, dim=-1)
|
| 627 |
sampled = torch.multinomial(probs, num_samples=1)
|
| 628 |
if return_probs:
|
| 629 |
-
return
|
| 630 |
|
| 631 |
move = policy_index[sampled.item()]
|
| 632 |
return move
|
|
|
|
| 626 |
probs = F.softmax(logits/T, dim=-1)
|
| 627 |
sampled = torch.multinomial(probs, num_samples=1)
|
| 628 |
if return_probs:
|
| 629 |
+
return probs
|
| 630 |
|
| 631 |
move = policy_index[sampled.item()]
|
| 632 |
return move
|