Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/python-modules/torch/source/2_8/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ buildPythonPackage rec {
USE_MKLDNN = setBool mklDnnSupport;
USE_MKLDNN_CBLAS = setBool mklDnnSupport;

# Enable distributed support (c10d, gloo, etc.)
# Required for torch.distributed and dependencies like transformers
USE_DISTRIBUTED = setBool true;

# Avoid using pybind11 from git submodule
# Also avoids pytorch exporting the headers of pybind11
USE_SYSTEM_PYBIND11 = true;
Expand Down
4 changes: 4 additions & 0 deletions pkgs/python-modules/torch/source/2_9/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ buildPythonPackage rec {
USE_MKLDNN = setBool mklDnnSupport;
USE_MKLDNN_CBLAS = setBool mklDnnSupport;

# Enable distributed support (c10d, gloo, etc.)
# Required for torch.distributed and dependencies like transformers
USE_DISTRIBUTED = setBool true;

# Avoid using pybind11 from git submodule
# Also avoids pytorch exporting the headers of pybind11
USE_SYSTEM_PYBIND11 = true;
Expand Down
Loading