from local
This commit is contained in:
parent
5f689ccdd2
commit
fbb80af5ec
Binary file not shown.
@ -1026,6 +1026,7 @@ 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