Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit a5f34e8

Browse files
committed
Move run_dist.sh into dist_run.py
1 parent 0b8ca05 commit a5f34e8

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

dist_run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
# This source code is licensed under the license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# Example run command:
8+
# torchrun --nproc-per-node 4 dist_run.py llama2-7b-chat --pp 2
9+
# torchrun --nproc-per-node 4 dist_run.py llama3 --pp 2
10+
711
import argparse
812
import os
913
from pathlib import Path
1014
from types import SimpleNamespace
1115
from typing import Any, Dict, List, Optional, Tuple
1216

13-
# Run command:
14-
# torchrun --nproc-per-node 4 dist_run.py
1517
import torch
1618
import torch.distributed as dist
1719

run_dist.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)