Spaces:
Sleeping
Sleeping
Update transformer.py
Browse files- transformer.py +1 -1
transformer.py
CHANGED
|
@@ -5,7 +5,7 @@ import torch.nn as nn
|
|
| 5 |
from torch.nn import functional as F
|
| 6 |
import math
|
| 7 |
|
| 8 |
-
from constants import n_head, n_embd, n_layer, n_hidden, feed_forward, n_output
|
| 9 |
|
| 10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 11 |
|
|
|
|
| 5 |
from torch.nn import functional as F
|
| 6 |
import math
|
| 7 |
|
| 8 |
+
from constants import n_head, n_embd, n_layer, n_hidden, feed_forward, n_output, block_size
|
| 9 |
|
| 10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 11 |
|