Skip to content

Commit 3c485eb

Browse files
authored
fix arguments for initializing a model
In the sample ROCStory script, the line for model construction seems wrong. This will fix it.
1 parent 2ce292b commit 3c485eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def run_epoch():
254254
n_batch_train = n_batch*n_gpu
255255
n_updates_total = (n_train//n_batch_train)*n_iter
256256

257-
model = Model(vocab, n_ctx, args)
257+
model = Model(args, vocab, n_ctx)
258258
lm_head = LMHead(model, args)
259259
clf_head = ClfHead(clf_token, args)
260260

0 commit comments

Comments
 (0)