from local
This commit is contained in:
parent
fbb80af5ec
commit
39dd2687b4
Binary file not shown.
@ -1026,7 +1026,6 @@ def train_one_epoch(
|
|||||||
|
|
||||||
if batch_idx % params.accum_grads == 0: params.batch_idx_train += 1
|
if batch_idx % params.accum_grads == 0: params.batch_idx_train += 1
|
||||||
batch_size = len(batch["supervisions"]["text"])
|
batch_size = len(batch["supervisions"]["text"])
|
||||||
print(batch_size)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with torch.cuda.amp.autocast(enabled=params.use_fp16):
|
with torch.cuda.amp.autocast(enabled=params.use_fp16):
|
||||||
|
|||||||
Reference in New Issue
Block a user