Repository navigation
fix(docker): resolve TorchRec dependencies without replacing native packages - #538
Closed
lidongdongbuaa wants to merge 1 commit into
Closed
lidongdongbuaa wants to merge 1 commit into
lidongdongbuaa wants to merge 1 commit into
Conversation
Contributor
[Medium impact] The PR appears safe to merge, with no outstanding review findings. SummaryThe PR resolves TorchRec's Python dependencies while keeping the installed PyTorch and FBGEMM versions fixed.
Reviews (6) · Last reviewed commit: "fix(docker): resolve TorchRec dependenci..." · Reviewed by Greptile |
shijieliu
reviewed
Nov 9, 2026
3 tasks done
shijieliu
added a commit
to shijieliu/recsys-examples
that referenced
this pull request
Nov 12, 2026
DEMB_ARCHS, the architectures of DynamicEmb's kernels and of its eviction fatbins (the SASS one and the LTO-IR one that nvJitLink links the user's score function into), defaulted to 75;80;90;100;120. GB300 is sm_103: the default build ran its sm_100 code there, and no sm_103 LTO-IR. The default is now 75;80;90;100;103;120, less the architectures the CUDA compiler cannot build (nvcc --list-gpu-code): sm_103 needs CUDA 12.9 or newer. Without an answer from nvcc it is the old list. An explicit DEMB_ARCHS skips the query. The README says how DEMB_ARCHS works (TORCH_CUDA_ARCH_LIST does not apply to these kernels). The same change as NVIDIA#549's, without its image bump, so that this branch builds in the current NGC 26.07 image. Following NVIDIA#538, which found that the default build omits sm_103. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: aleliu <[email protected]>
lidongdongbuaa
force-pushed
the
enh-dynamicemb-gb300
branch
from
November 13, 2026 03:21
11958ab to
780fbf8
Compare
Contributor
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
…ackages Signed-off-by: lidongdongbuaa <[email protected]>
lidongdongbuaa
force-pushed
the
enh-dynamicemb-gb300
branch
from
November 13, 2026 03:29
780fbf8 to
33560a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Docker image installs TorchRec and TensorDict with
--no-deps, so their declared Python dependencies can be missing even when the native PyTorch/FBGEMM stack is installed. Training workers can then fail while importing TorchRec or TensorDict.Resolve those dependencies with exact constraints for the already installed PyTorch and FBGEMM versions, so pip cannot replace either native package. Keep the selected Python dependency versions and check TensorDict, pyre_extensions and torchmetrics imports during the image build. Update the installation instructions to match the Dockerfile's TorchRec
v1.8.0-rc1/ FBGEMMv1.8.0stack.The final diff contains only
docker/Dockerfileandcorelib/dynamicemb/README.md, based onmain@d53b9c8. Main already includes SM103 training-build support through #528. This PR only fixes dependency installation for the training environment; the native build and embedding runtime remain unchanged.Validation
bash -n.setup.pyand the inferenceCMakeLists.txtare byte-identical to main. The CPU/CMake regression file and its build notes are absent from the final diff.git diff --checkpassed.These checks ran on macOS. No Docker image build, dependency installation, CUDA compilation or GPU execution was performed for this head. The earlier CMake and GPU validation does not apply to this two-file dependency fix; image build/import validation and maintainer CI are still pending.
Checklist