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:
|
else:
|
||||||
return "No valid tokenizer in " + str(ouputdir)
|
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(
|
config = GPT2Config(
|
||||||
# vocab_size=vocabsize,
|
vocab_size=vocabsize,
|
||||||
# n_positions=blocksize,
|
max_lenght=blocksize,
|
||||||
# n_ctx=blocksize,
|
n_positions=blocksize,
|
||||||
# resid_pdrop=0.0,
|
n_ctx=blocksize,
|
||||||
# embd_pdrop=0.0,
|
n_embd=256,
|
||||||
# attn_pdrop=0.0,
|
n_layer=8,
|
||||||
# summary_first_dropout=0.0,
|
n_head=8,
|
||||||
# bos_token_id=0,
|
dropout=0.0,
|
||||||
# eos_token_id=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)
|
print(config)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user