Upload train5.py with huggingface_hub
Browse files
train5.py
CHANGED
|
@@ -144,7 +144,7 @@ def fsdp_main(args):
|
|
| 144 |
rank = int(os.environ['RANK'])
|
| 145 |
world_size = int(os.environ['WORLD_SIZE'])
|
| 146 |
if args.use_wandb and rank == 0:
|
| 147 |
-
wandb.init(entity="SemiNAT", project="SemiNAT-
|
| 148 |
|
| 149 |
local_rank = int(os.environ['LOCAL_RANK'])
|
| 150 |
DEVICE = f"cuda:{local_rank}"
|
|
@@ -250,7 +250,7 @@ def fsdp_main(args):
|
|
| 250 |
|
| 251 |
if train_sampler:
|
| 252 |
train_sampler.set_epoch(epoch)
|
| 253 |
-
|
| 254 |
if rank == 0:
|
| 255 |
inner_pbar = tqdm(range(len(train_dataloader)),
|
| 256 |
colour="blue",
|
|
|
|
| 144 |
rank = int(os.environ['RANK'])
|
| 145 |
world_size = int(os.environ['WORLD_SIZE'])
|
| 146 |
if args.use_wandb and rank == 0:
|
| 147 |
+
wandb.init(entity="SemiNAT", project="SemiNAT-SFT", name=args.run_name)
|
| 148 |
|
| 149 |
local_rank = int(os.environ['LOCAL_RANK'])
|
| 150 |
DEVICE = f"cuda:{local_rank}"
|
|
|
|
| 250 |
|
| 251 |
if train_sampler:
|
| 252 |
train_sampler.set_epoch(epoch)
|
| 253 |
+
|
| 254 |
if rank == 0:
|
| 255 |
inner_pbar = tqdm(range(len(train_dataloader)),
|
| 256 |
colour="blue",
|