31
Browse files- app/sample.py +2 -0
app/sample.py
CHANGED
@@ -8,6 +8,8 @@ import torch
|
|
8 |
import tiktoken
|
9 |
from model import GPTConfig, GPT
|
10 |
|
|
|
|
|
11 |
# -----------------------------------------------------------------------------
|
12 |
init_from = 'resume' # either 'resume' (from an out_dir) or a gpt2 variant (e.g. 'gpt2-xl')
|
13 |
out_dir = 'out' # ignored if init_from is not 'resume'
|
|
|
8 |
import tiktoken
|
9 |
from model import GPTConfig, GPT
|
10 |
|
11 |
+
pip install tiktoken
|
12 |
+
|
13 |
# -----------------------------------------------------------------------------
|
14 |
init_from = 'resume' # either 'resume' (from an out_dir) or a gpt2 variant (e.g. 'gpt2-xl')
|
15 |
out_dir = 'out' # ignored if init_from is not 'resume'
|