Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bf16 Support #136

Merged
merged 31 commits into from
Aug 29, 2023
Merged

Add Bf16 Support #136

merged 31 commits into from
Aug 29, 2023

Conversation

Achazwl
Copy link
Collaborator

@Achazwl Achazwl commented Aug 11, 2023

No description provided.

ycr0776 and others added 29 commits August 2, 2023 09:40
	modified:   bmtrain/optim/adam.py
	modified:   bmtrain/optim/adam_offload.py
	modified:   csrc/cuda/adam_cuda.cu
	modified:   csrc/include/adam_cpu.hpp
	modified:   csrc/bind.cpp
	modified:   csrc/cuda/adam_cuda.cu
	modified:   csrc/include/adam_cpu.hpp
	modified:   csrc/include/bind.hpp
modified: add bf16.h to csrc/cuda/has_inf_nan.cu
modified: add bf16 support to bmtrain/optim/_function.py
modified: add bf16 support to csrc/cuda/adam_cuda.cu(Todo)
modified: add bf16.h to csrc/cuda/reduce.cuh
modified: add bf16 support to csrc/include/adam_cpu.hpp
	modified:   csrc/cuda/adam_cuda.cu
	modified:   csrc/cuda/reduce.cuh
	modified:   csrc/include/adam_cpu.hpp
	modified:   bmtrain/optim/optim_manager.py
	modified:   csrc/bind.cpp
	modified:   csrc/cuda/has_inf_nan.cu
	modified:   csrc/include/adam_cpu.hpp
	new file:   csrc/include/test.cpp
	modified:   bind bf16 functions
	modified:   revise the logic of bf16 accum
	modified:   add bf16 to is_nan_inf() of CUDA version
	modified:   revise the logic of bf16 accum
	modified:   bind bf16 functions
	deleted:    csrc/include/test.cpp
modified: revise logic of has_inf_nan.cu
FIX:csrc/include/adam_cpu.hpp
FIX:csrc/include/bind.hpp
	new file:   tests/test_has_inf_nan_bf16.py
	modified:   csrc/bind.cpp
	new file:   tests/test_optim_bf16.py
	new file:   tests/test_optim_fp16.py
@Achazwl Achazwl mentioned this pull request Aug 11, 2023
@Achazwl Achazwl changed the base branch from main to dev August 17, 2023 12:41
@zkh2016 zkh2016 merged commit 38461bc into dev Aug 29, 2023
@Achazwl Achazwl mentioned this pull request Aug 29, 2023
@zkh2016 zkh2016 deleted the bf16 branch October 19, 2023 05:41
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.

None yet

3 participants