Skip to content

Commit 4b750fb

Browse files
author
ruifanxu_Linux
committed
GPT update Epoch number
1 parent a9fbd07 commit 4b750fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch/GPT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def train():
9090

9191
loader = DataLoader(dataset,batch_size=32,shuffle=True)
9292

93-
for epoch in range(10):
93+
for epoch in range(100):
9494
for batch_idx, batch in enumerate(loader):
9595
seqs, segs,xlen,nsp_labels = batch
9696
seqs, segs,nsp_labels = seqs.type(torch.LongTensor).to(device), segs.type(torch.LongTensor).to(device),nsp_labels.to(device)

0 commit comments

Comments
 (0)