restructured

This commit is contained in:
Nick Walton
2019-11-18 16:40:45 -07:00
parent fb2ccbf7cf
commit ca7e5fe6bc
101 changed files with 5 additions and 90822 deletions
-4
View File
@@ -1,4 +0,0 @@
models
*.pyc
__pycache__
checkpoint
View File
File diff suppressed because one or more lines are too long
@@ -1,7 +0,0 @@
{
"n_vocab": 50257,
"n_ctx": 1024,
"n_embd": 1600,
"n_head": 25,
"n_layer": 48
}
File diff suppressed because it is too large Load Diff
-22
View File
@@ -1,22 +0,0 @@
import tarfile
import os
import gpt_2_simple as gpt2
model_name = "1558M"
if not os.path.isdir(os.path.join("models", model_name)):
print("Downloading ", model_name, " model...")
gpt2.download_gpt2(model_name=model_name) # model is saved into current directory under /models/124M/
file_name = "text_adventures.txt"
sess = gpt2.start_tf_sess()
gpt2.finetune(sess,
file_name,
multi_gpu=True,
batch_size=8,
learning_rate=0.0001,
model_name=model_name,
steps=100)
gpt2.generate(sess)