Repository navigation
Code cleaning: Remove unused files and consolidate benchmarks, and documentation - #9144
hwchen2017 wants to merge 11 commits into
Conversation
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
delock
left a comment
There was a problem hiding this comment.
Review: #9144
Verified the main risk items against the merge-base. Three notes:
-
Dockerfiles — via GitHub history,
docker/Dockerfilehas had no toolchain update since 2023-12 (#4780);gh-builder/*androcm/since 2024-11 (#5676). Nothing in CI references them. Probably unused — fine to remove. -
--forked—--forkedis set per-workflow, not centrally: only the threecpu-torch-*workflows pass it, and they are unchanged in this PR. Every accelerator workflow already runs plainpytest. Dropping it fromCONTRIBUTING.md/Makefile/ the PR-checklist skill only affects local runs, so this should be fine. -
TpTrainingManager— verified unused in both DeepSpeed and HuggingFace. #7806 rewrotedeepspeed.tp_model_init()to only record args and moved sharding intoDeepSpeedEngine, which left the Manager without a caller. HFtransformers(integrations/deepspeed.py) callstp_model_init, not the Manager. FYI @inkcherry.
Will approve after a day to leave time for other approvers. |
1. Unused library code
DeepSpeedTransformerBaseplaceholder, legacy BERT injection helper, unused data-routing gather/scatter helpers,TpTrainingManager, andContiguousMemoryAllocator.TpTrainingManagerpackage re-export and the HPU workflow path filter for the deleted injection helper.csrc/includes/quantizer.h.2. NVMe/GDS cleanup
csrc/aio/py_test/benchmark copy and DGX-2 mount/unmount scripts; retain the maintaineddeepspeed/nvme/tools.csrc/gds/py_test/anddeepspeed/nvme/.3. Examples and benchmark organization
tests/benchmarks/.tests/perf/intotests/benchmarks/with descriptive filenames.4. Packaging and development configuration
ds_benchexecutable and its installation entry. #3157 moved the communication benchmarks to DeepSpeedExamples on 2023-04-07, but left this launcher importingbenchmarks.communication. It has therefore been broken in standard DeepSpeed installations for more than three and a half years.pytest_randomly.random_seederentry point fromsetup.cfgintosetup.py, preservingdeepspeed.runtime.utils:set_random_seed..pylintrc,tests/.coveragerc, empty.gitmodulesand CPU requirements files, and the one-off copyright migration script.*.cuhignore rule described in #7701, so new CUDA source headers are not silently excluded fromgit add.5. Contributor documentation and test invocation
CONTRIBUTING.mdthe canonical guide; redirect/contributing/to it usingjekyll-redirect-from.pytestfor GPU runs and updatemake testand the PR-checklist skill consistently, following option 2 in #9075. CPU CI's existing--forkedusage is unchanged.CONTRIBUTING.mdand remove duplicate sections from the root READMEs.6. Unreferenced documentation assets
Remove 38 documentation/blog assets (images and a meetup PDF) totaling approximately 12.4 MB, with no retained in-repository references found.