from local
This commit is contained in:
parent
90c6e6531c
commit
6fbbacf94c
Binary file not shown.
@ -1142,6 +1142,11 @@ def train_one_epoch(
|
|||||||
rank=rank,
|
rank=rank,
|
||||||
)
|
)
|
||||||
del params.cur_batch_idx
|
del params.cur_batch_idx
|
||||||
|
|
||||||
|
if rank == 0:
|
||||||
|
for i, lora in enumerate(lora_modules):
|
||||||
|
lora.save_checkpoint(i, params.exp_dir)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
remove_checkpoints(
|
remove_checkpoints(
|
||||||
out_dir=params.exp_dir,
|
out_dir=params.exp_dir,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user