Update reduce.py
Browse files
reduce.py
CHANGED
|
@@ -1,11 +1,3 @@
|
|
| 1 |
-
# /// script
|
| 2 |
-
# requires-python = ">=3.12"
|
| 3 |
-
# dependencies = [
|
| 4 |
-
# "numpy",
|
| 5 |
-
# "torch",
|
| 6 |
-
# ]
|
| 7 |
-
# ///
|
| 8 |
-
|
| 9 |
import torch
|
| 10 |
import torch.distributed as dist
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
import torch.distributed as dist
|
| 3 |
|