We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c715c5 commit c62c8f1Copy full SHA for c62c8f1
tp.py
@@ -9,7 +9,11 @@
9
import torch
10
import torch.distributed as dist
11
from torch import nn
12
-from torch.distributed import _functional_collectives as funcol
+if os.uname().sysname != "Darwin":
13
+ from torch.distributed import _functional_collectives as funcol
14
+else:
15
+ # Distributed is not supported on MacOS
16
+ funcol = None
17
18
from model import Attention, FeedForward, Transformer
19
from quantize import WeightOnlyInt4Linear
0 commit comments