Repository navigation
Conversation
baodii
commented
Nov 7, 2023
- add fused_adam cpu_adam cpu_adagrad async_io for xpu OpBuilder
- delete csrc/xpu dp.cpp and dp.hpp code
* fix memory leak with z3 * __del__ is not good for zero-inference
…edai#3894) Object deepspeed.zero.Init() is not callable, it can't be used as a decorator. Delete this code comment to avoid misunderstanding. Co-authored-by: Logan Adams <[email protected]>
* add coverage report * define env vars in shared action * reduce time for longest running tests * fix broken shared action * reduce test time * reducing Pipeline test times * further reducing test times * rework Z3 test * testing new mp.pool and persistent dist envs * fix import * reuse distributed environment for tests with lots of param combos * fix for dist teardown * fix pickling issue with pool cache * actually fix pickling problem * avoid running pool cache stuff on non-distributed tests * fix issues with nested mp.pool * fix for nested pools in Pipeline Engine * re-add params * update workflows with pytest opts * implement feedback * resolve race condition with port selection * Update tests/unit/common.py --------- Co-authored-by: Olatunji Ruwase <[email protected]>
Since deepspeed 1 checkpoint structure is identical to deepspeed 2 (AFAIK), we should just change the version check and add support accordingly
…cker.io/nvidia/cuda:11.7.0-devel-ubuntu18.04: not found" (deepspeedai#3930) Update Nvidia docker version. Fix "ERROR: failed to solve: nvidia/cuda:11.7.0-devel-ubuntu18.04: docker.io/nvidia/cuda:11.7.0-devel-ubuntu18.04: not found" Co-authored-by: Logan Adams <[email protected]>
…speedai#3933) Create tensor with device=Integer will always choose cuda as its deivce for current pytorch version(2.1), other device should use device={device}:{index}. Change get_accelerator().current_device() to get_accelerator().current_device_name() to support other devices. Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Logan Adams <[email protected]>
Co-authored-by: Olatunji Ruwase <[email protected]> Co-authored-by: Jeff Rasley <[email protected]>
Signed-off-by: Javier Salmeron Garcia <[email protected]> Co-authored-by: Jeff Rasley <[email protected]>
Co-authored-by: Olatunji Ruwase <[email protected]>
* Switch to torch.linalg.norm * Fix formatting
Co-authored-by: Olatunji Ruwase <[email protected]>
…i#3825) * fix * remove debug line * remove debug line * remove debug line * add test case * add test case * use adam * fix formatting --------- Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Alexander Jipa <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]> Co-authored-by: Cheng Li <[email protected]>
* skip cpu support unimplemented error and update cpu inference workflow * add torch.bfloat16 to cuda_accelerator * remove UtilsBuilder skip * fused adam can build * use cpu adam to implement fused adam * enable zero stage 1 and 2 for synchronized accelerator (a.k.a. CPU) * remove unused parameters * remove skip FusedAdamBuilder; add suported_dtypes * fix format * Revert "fix format" Revert "remove skip FusedAdamBuilder; add suported_dtypes" Revert "remove unused parameters" Revert "enable zero stage 1 and 2 for synchronized accelerator (a.k.a. CPU)" Revert "use cpu adam to implement fused adam" Revert "fused adam can build" --------- Co-authored-by: Logan Adams <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]> Co-authored-by: Ma, Guokai <[email protected]>
* Adding attributes for grad accum dtype. * accumulating reduction grads in stage 2 mode 2 * missing colon * tracking reduc grad move * Correct hooks. * Name change updates. * Using grad_accum in cpu offload functions. * Addressing comments: putting bf opt back, removing hooks * Fixing missing pointer to grad accum. * Renaming functions. * More function renames. * Adding reduction dtype. * updating for offload * Adding functionality for stage 3. * Adding s3 test support. * Add to MiCS optimizer. * zero++ tutorial PR (deepspeedai#3783) * Removing need to grad_reduc attribute. * Offload correctness. --------- Co-authored-by: Olatunji Ruwase <[email protected]> Co-authored-by: Heyang Qin <[email protected]>
…allreduce for CPU backend (single node) (deepspeedai#3919) * use allreduce_low_latency for AutoTP and implement low latency allreduce for CPU backend (single node) * add fp32 support for SHM allreduce * avoid assertion for FP16 data type * fix format * change 'allreduce_low_latency' to 'inference_allreduce' * Fix according to comments * change inference_allreduce to inference_all_reduce to keep naming consistency * check whether LOCAL_SIZE is defined in ccl.cpp, also define LOCAL_SIZE in test_distributed * fix format * Fix format error * Update tests/unit/comm/test_dist.py Fix world_size to 4 in UT Co-authored-by: Michael Wyatt <[email protected]> --------- Co-authored-by: Olatunji Ruwase <[email protected]> Co-authored-by: Michael Wyatt <[email protected]>
* fix skipped tests due to bad version check util function * revert local changes in EP size * remove added dummy test file * refactor torch version check function * Update util.py * fix for moe test memory leak --------- Co-authored-by: Logan Adams <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]>
…to out loop (deepspeedai#4206) Signed-off-by: Wang, Yi A <[email protected]> Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Logan Adams <[email protected]>
…edai#4326) it is sometimes not required to have the loss bcasted to all rank after evaluation cycle and it is only required by some ranks. It adds overhead of communication between rank. by setting bcast_loss=False (default is True and retains the previous behavior), loss will not be bcasted. if monitor is enabled loss will be bcasted. Co-authored-by: Logan Adams <[email protected]>
* add aio in xpu_upstream * Update async_io.py deleting private path
enable jit_load for sycl kernels
* move scripts path to op_builder/xpu
* add aio in xpu_upstream * Update async_io.py deleting private path * Update async_io.py
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.