Skip to content

Commit 8314dcc

Browse files
committed
Added tensor_parallelism examples
1 parent 53ee8b4 commit 8314dcc

File tree

4 files changed

+673
-1
lines changed

4 files changed

+673
-1
lines changed

examples/distributed_inference/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ See the examples started with `data_parallel` for more details.
1111

1212
2. Tensor parallel distributed inference
1313

14-
In development.
14+
Here we use torch.distributed as an example, but compilation with tensor parallelism is agnostic to the implementation framework as long as the module is properly sharded.
15+
16+
torchrun --nproc_per_node=2 tensor_parallel_llama2.py

0 commit comments

Comments
 (0)