Skip to content

Staging 1bit adam v1#348

Merged
jeffra merged 12 commits intodeepspeedai:staging-1bit-adam-v1from
awan-10:staging-1bit-adam-v1
Sep 3, 2020
Merged

Staging 1bit adam v1#348
jeffra merged 12 commits intodeepspeedai:staging-1bit-adam-v1from
awan-10:staging-1bit-adam-v1

Conversation

@awan-10
Copy link
Copy Markdown
Contributor

@awan-10 awan-10 commented Sep 3, 2020

This pull request is to bring 1-bit Adam to DeepSpeed.

@jeffra
Copy link
Copy Markdown
Collaborator

jeffra commented Sep 3, 2020

Two things to help proceed further with the tests:

  1. Can you add any required python dependencies to this file (e.g., cupy): https://github.com/microsoft/DeepSpeed/blob/master/requirements/requirements.txt
  2. Run these two pre-commit commands on your code to make sure the code is formatted to pass our checks: https://github.com/microsoft/DeepSpeed/blob/master/CONTRIBUTING.md#prerequisites

@jeffra
Copy link
Copy Markdown
Collaborator

jeffra commented Sep 3, 2020

All of these relative changes seem fine, thanks for this PR. I think after we address my points 1 and 2 above let's merge this into the staging branch. Then I'll create a new staging branch (v2) that we can PR everything into to do a more detailed review of everything. We can chat tomorrow in more details here.

@jeffra jeffra merged commit 70cbc46 into deepspeedai:staging-1bit-adam-v1 Sep 3, 2020
jeffra added a commit that referenced this pull request Sep 8, 2020
* 1-bit Adam v1 (squash) (#346)

* testing_onebit

* test_passed

* test_passed

* updated compressed_allreduce

* 123

* cpu2gpu test added

* Add non-cuda-aware code path. Segfaults for > 2 procs.

* Works for 4 procs with numpy buffers now. TODO: cleanup, evalute perf.

* Fix gather. Cleanup.

* Add new tests.

* Reduce memory footprint. BERT large with BS=16 works.

* Revert "Reduce memory footprint. BERT large with BS=16 works."

This reverts commit e7f38fc.

* Update optim to support bert-large.

* with initialization added on bert_onebit_adam

* This works!!

* Force igather for cupy. Better performance. Need cleanup and reorg to
support TCP now.

* X

* testing the fintune task for FP32 training

* Added the fintune taks for FP32 training

* With the control flag of freeze_step added

* added the freeze_step inside fp32_onebitadam

* Seperate freeze_kernnel added

* Added the sanity test for the Compressed_Allreduce

* Test for Compressed_Allreduce passed, but AllGather need sync.

* add checks for finetuning.

* Running passed for finetune on EastUs

* Add one bit adam clean file.

* Refactor comms. code and move it to a new file.

* fix compile/run errors.

* Adding changes for onebit_adam from Hank

* Save memory by modifying in-place.

Co-authored-by: Your Name <you@example.com>
Co-authored-by: Ammar Ahmad Awan <ammar.awan@microsoft.com>
Co-authored-by: tanghl1994 <htang14@ur.rochester.edu>
Co-authored-by: Hank <tanghl1994@gmail.com>
Co-authored-by: root <root@node2x12b.cs.rochester.edu>

* Staging 1bit adam v1 (#348)

* Refactor to correct locations.

* Deleted unused files.

* Fix imports for refactored codebase.

* update the com reduce test.

* Fix some errors.

* Fix optimizer name

* Delete unused tests.

* Fix formatting for pre-commit.

* Add cupy dependencies.

* add cupy for cuda 10add cupy for cuda 10

* Add mpi4py requirement.

Co-authored-by: Ammar Ahmad Awan <ammar.awan@microsoft.com>

* Use correct initialization for exp_avg.

* Cleanup onebit adam.

* minor wording fix.

* Cleanup custom collectives.

* Fixes for TCP support.

* fix formatting. fix formatting.

* move 1bit adam reqs

* delay importing 1bit adam unless it's used, this will ensure we delay importing mpi4py

* Fix cuda version parsing.

* Temporary tcp fix.

* Update install.sh

* Refactor code to properly support cuda-aware comm.

* Fix imports.

* add cuda_aware flag to tests.

* Cleanup. Add copyrights.

* Add 1-bit Adam tutorial v1.

* Minor fixes to copyright and print statements.

* Update utils.py

* Update utils.py

Co-authored-by: Jeff Rasley <jerasley@microsoft.com>
Co-authored-by: Your Name <you@example.com>
Co-authored-by: tanghl1994 <htang14@ur.rochester.edu>
Co-authored-by: Hank <tanghl1994@gmail.com>
Co-authored-by: root <root@node2x12b.cs.rochester.edu>
Co-authored-by: Ammar Ahmad Awan <awan.ammar@microsoft.com>
samadejacobs pushed a commit that referenced this pull request May 4, 2023
Co-authored-by: Jeff Rasley <jerasley@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants