revert demo
This commit is contained in:
parent
2ea11e0dbd
commit
33d0fda2a2
@ -28,19 +28,24 @@ def train(filepath: str, ouputdir: Path, blocksize: int, vocabsize: int, num_ste
|
||||
else:
|
||||
return "No valid tokenizer in " + str(ouputdir)
|
||||
|
||||
config = build_gpt2_config(vocab_size=vocabsize, max_lenght=blocksize, dropout=0.0, n_embd=256, n_layer=8, n_head=8)
|
||||
# config = build_gpt2_config(vocab_size=vocabsize, max_lenght=blocksize, dropout=0.0, n_embd=256, n_layer=8, n_head=8)
|
||||
|
||||
# config = GPT2Config(
|
||||
# vocab_size=vocabsize,
|
||||
# n_positions=blocksize,
|
||||
# n_ctx=blocksize,
|
||||
# resid_pdrop=0.0,
|
||||
# embd_pdrop=0.0,
|
||||
# attn_pdrop=0.0,
|
||||
# summary_first_dropout=0.0,
|
||||
# bos_token_id=0,
|
||||
# eos_token_id=0
|
||||
# )
|
||||
config = GPT2Config(
|
||||
vocab_size=vocabsize,
|
||||
max_lenght=blocksize,
|
||||
n_positions=blocksize,
|
||||
n_ctx=blocksize,
|
||||
n_embd=256,
|
||||
n_layer=8,
|
||||
n_head=8,
|
||||
dropout=0.0,
|
||||
resid_pdrop=0.0,
|
||||
embd_pdrop=0.0,
|
||||
attn_pdrop=0.0,
|
||||
summary_first_dropout=0.0,
|
||||
bos_token_id=0,
|
||||
eos_token_id=0
|
||||
)
|
||||
|
||||
print(config)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user