Spaces:
Sleeping
Sleeping
File size: 395 Bytes
dabde41 8c39932 dabde41 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import torch
# hyperparameters
batch_size = 64 # how many independent sequences will we process in parallel?
block_size = 256 # what is the maximum context length for predictions?
max_iters = 10000
eval_interval = 500
learning_rate = 3e-4
device = 'cuda' if torch.cuda.is_available() else 'cpu'
# device = 'mps'
eval_iters = 200
n_embd = 384
n_head = 6
n_layer = 6
dropout = 0.2
vocab_size = 65 |