Skip to content

Commit

Permalink
update min gpu = 4 for fsdp+tp
Browse files Browse the repository at this point in the history
  • Loading branch information
lessw2020 committed Nov 22, 2023
1 parent 2de0144 commit 77fe3d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions distributed/tensor_parallelism/fsdp_tp_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
https://docs.google.com/presentation/d/17g6WqrO00rP3MsxbRENsPpjrlSkwiA_QB4r93_eB5is/
"""

_min_gpu_count = 2
_min_gpu_count = 4

if not verify_min_gpu_count(min_gpus=_min_gpu_count):
print(f"Unable to locate sufficient {_min_gpu_count} gpus to run this example. Exiting.")
sys.exit(0)
sys.exit()


def find_multiple(n: int, k: int) -> int:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

if not verify_min_gpu_count(min_gpus=_min_gpu_count):
print(f"Unable to locate sufficient {_min_gpu_count} gpus to run this example. Exiting.")
sys.exit(0)
sys.exit()


class ToyModel(nn.Module):
Expand Down
2 changes: 1 addition & 1 deletion distributed/tensor_parallelism/tensor_parallel_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

if not verify_min_gpu_count(min_gpus=_min_gpu_count):
print(f"Unable to locate sufficient {_min_gpu_count} gpus to run this example. Exiting.")
sys.exit(0)
sys.exit()

class ToyModel(nn.Module):
"""MLP based model"""
Expand Down

0 comments on commit 77fe3d8

Please sign in to comment.