We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c715c5 + c62c8f1 commit 9575c7bCopy full SHA for 9575c7b
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