Skip to content

fix t5 and mistral meta data issuse when load from config - #41

Closed
daisyden wants to merge 903 commits into
delock:masterfrom
daisyden:daisyden/meta
Closed

daisyden wants to merge 903 commits into
delock:masterfrom
daisyden:daisyden/meta

Conversation

@daisyden

@daisyden daisyden commented Jan 4, 2024

Copy link
Copy Markdown

Verified the performance and accuracy are the same as load from pretrain.

t5 acc

Task Version Metric Value Stderr
lambada_openai 0 ppl 4.1306 ± 0.1503
acc 0.7233 ± 0.0062
Task Version Metric Value Stderr
lambada_openai 0 ppl 4.1306 ± 0.1503
acc 0.7233 ± 0.0062

mistral acc

Task Version Metric Value Stderr
lambada_openai 0 ppl 3.1808 ± 0.0583
acc 0.7553 ± 0.0060
Task Version Metric Value Stderr
lambada_openai 0 ppl 3.1808 ± 0.0583
acc 0.7553 ± 0.0060

t5 perf on spr of diamond with 2 ranks single node:
Inference latency: 0.733 sec.

mistral:
InfInference latency: 1.416 sec.

delock and others added 30 commits July 24, 2023 22:39
* [zero_to_fp32] 3x less cpu memory requirements

* safer version

* style
* 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

* fix format error

* Remove adam class

* fix format

* support stage3

* reuse simd.h

* fix format

* make memory_stat return meaningful dict

* fix format

* add cpu_adam

* reuse cpu_adam

* header cleanup

* fix cpu_adam

* fix format, add missing file

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
* remove duplicate check for pp and zero stage

* remove line

* use ZeroStageEnum

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
* Moving losses tracking above monitor statement

* Fixing loss calculations.

* Restoring deleted comment.

* formatting

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Michael Wyatt <[email protected]>
Co-authored-by: Alexander Jipa <[email protected]>
Co-authored-by: Jeff Rasley <[email protected]>
Co-authored-by: Olatunji Ruwase <[email protected]>
…eepspeedai#3981)

* Engine side fix for loading llama checkpoint fine-tuned with zero3

* Fixes to support llama fine-tuning in ds-chat

* Refactored the code to avoid using an except block.

* formatting

* revert permissions change

---------

Co-authored-by: Michael Wyatt <[email protected]>
Signed-off-by: Wang, Yi A <[email protected]>
Co-authored-by: Jeff Rasley <[email protected]>
Co-authored-by: Reza Yazdani <[email protected]>
* enable autoTP for MPT

Signed-off-by: Wang, Yi A <[email protected]>

* add model specific func to auto_tp_model_utils.py

Signed-off-by: Wang, Yi A <[email protected]>

---------

Signed-off-by: Wang, Yi A <[email protected]>
Co-authored-by: Jeff Rasley <[email protected]>
* autoTP for fused qkv weight

* fix format

* clean up

* clean up

* clean up

* update

* make logic flow to util and move to file

* fix formatting

* remove empty line

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Reza Yazdani <[email protected]>
Co-authored-by: Jeff Rasley <[email protected]>
* Option to override module apply

* Removing early partitioning in override

* Unit tests

* Cleanup

* Adapt unit test to succeed

* Handle missed params

* Add accelerate

* Code cleanup

* Add doc

* Add doc

* Add doc
* Fix deadlock when allreduce spin too fast

* Change state to enum to increase readability

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
* add reproducible compilation environment

* fix ci

* fix typo for formatting check

* Fix casing for format

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Michael Wyatt <[email protected]>
Co-authored-by: Logan Adams <[email protected]>
Co-authored-by: Logan Adams <[email protected]>
* Refactor autoTP inference for HE

* Formatting

* Move redundant functions to autotp

* Remove self from loading class

* formatting

* Some gpt2 autotp path fixes

* precommit
* Initial commit

* Clean up

* Fix formatting
…i#4053)

* update partition_uniform util function

* formatting

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
loadams and others added 29 commits October 11, 2023 19:51
* unify ccl.py for cpu and gpu'

* handle all coll in on func

* add coresponding func in cclbackend

* add coresponding pybind func

* change device setting

---------

Co-authored-by: Olatunji Ruwase <[email protected]>
* add available memory check to accelerator

* catch case where nvmlInit fails

* add pynvml to reqs

* fix for cpu systems

* Update accelerator/cuda_accelerator.py

Co-authored-by: Michael Wyatt <[email protected]>

* simplify

---------

Co-authored-by: Michael Wyatt <[email protected]>
* add npu support dtypes

* add npu fused_adam support

* add license

* Update accelerator/npu_accelerator.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update op_builder/npu/fused_adam.py

Co-authored-by: Hz, Ji <[email protected]>

* Update accelerator/npu_accelerator.py

Co-authored-by: Hz, Ji <[email protected]>

* Update accelerator/npu_accelerator.py

Co-authored-by: Hz, Ji <[email protected]>

---------

Co-authored-by: jializheng <[email protected]>
Co-authored-by: Olatunji Ruwase <[email protected]>
Co-authored-by: Hz, Ji <[email protected]>
* Fixed deepspeed.comm.monitored_barrier call

* Formatting

---------

Co-authored-by: Logan Adams <[email protected]>
* Add rope_theta for llama config

* Add rope_theta to bias_add_transform_0213

* Fix CI problems

* Add rope_theta to linear layer

---------

Co-authored-by: Michael Wyatt <[email protected]>
Co-authored-by: Lev Kurilenko <[email protected]>
* Switch from HIP_PLATFORM_HCC to HIP_PLATFORM_AMD

* Merge changes and fix from deepspeedai#4528
* support baichuan model

* support baichuan without changing model script
* enable starcode autotp

* add get_n_embd
@daisyden daisyden closed this Jan 4, 2024
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.