Browse Source

[test] smaller gpt2 test case

pull/5753/head
hxwang 6 months ago
parent
commit
df705a5210
  1. 2
      tests/kit/model_zoo/transformers/gpt.py

2
tests/kit/model_zoo/transformers/gpt.py

@ -121,7 +121,7 @@ loss_fn = lambda x: x["loss"]
config = transformers.GPT2Config( config = transformers.GPT2Config(
n_layer=2, n_layer=2,
n_head=4, n_head=4,
n_embd=128, n_embd=16,
vocab_size=50258, vocab_size=50258,
attn_pdrop=0, attn_pdrop=0,
embd_pdrop=0, embd_pdrop=0,

Loading…
Cancel
Save