Skip to content

Commit bac5d0f

Browse files
githubsgisoumith
authored andcommitted
Removing pre's from requirement.txt, ...
1 parent a5b6297 commit bac5d0f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
# Python dependencies required for running the example
22

3-
--pre
4-
--extra-index-url https://download.pytorch.org/whl/nightly/cu118
5-
--extra-index-url https://download.pytorch.org/whl/nightly/cu121
6-
--extra-index-url https://download.pytorch.org/whl/nightly/cu126
7-
--extra-index-url https://download.pytorch.org/whl/nightly/cu128
83
torch >= 2.7.1; sys_platform == "linux"

distributed/tensor_parallelism/sequence_parallel_example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def forward(self, x):
102102

103103
for i in range(num_iters):
104104
# For SP, input can be different across all ranks.
105-
#inp = torch.rand(20, 10, device=device_type)
106-
inp = torch.rand(1, 10, device=device_type)
105+
inp = torch.rand(20, 10, device=device_type)
107106
output = sp_model(inp)
108107
output.sum().backward()
109108
optimizer.step()

distributed/tensor_parallelism/tensor_parallel_example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# The following is an example command to run this code
12
# torchrun --nnodes 1 --nproc-per-node 4 <fn>
23
import os
34
import sys

0 commit comments

Comments
 (0)