You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
Describe the bug
Very high loss when using DeepSpeed with CPU offloading for versions>=4.36.0
After spending 4 hours found that the cause is this PR: #27709 and reverting this PR results in expected training loss curves.
To Reproduce
Steps to reproduce the behavior:
run_glue.py transformers example
cd transformers
export CUDA_VISISBLE_DEVICES=0,1
export TASK_NAME=mrpc
Expected behavior
Same training loss curves with and without CPU offloading
ds_report output
--------------------------------------------------
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
runtime if needed. Op compatibility means that your system
meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
[WARNING] async_io requires the dev libaio .so object and headers but these were not found.
[WARNING] async_io: please install the libaio-dev package with apt
[WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
async_io ............... [NO] ....... [NO]
fused_adam ............. [NO] ....... [OKAY]
cpu_adam ............... [NO] ....... [OKAY]
cpu_adagrad ............ [NO] ....... [OKAY]
cpu_lion ............... [NO] ....... [OKAY]
[WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
evoformer_attn ......... [NO] ....... [NO]
fused_lamb ............. [NO] ....... [OKAY]
fused_lion ............. [NO] ....... [OKAY]
inference_core_ops ..... [NO] ....... [OKAY]
cutlass_ops ............ [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
ragged_device_ops ...... [NO] ....... [OKAY]
ragged_ops ............. [NO] ....... [OKAY]
random_ltd ............. [NO] ....... [OKAY]
[WARNING] sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.1
[WARNING] using untested triton version (2.1.0), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
spatial_inference ...... [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
transformer_inference .. [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/raid/sourab/miniconda3/envs/hf/lib/python3.10/site-packages/torch']
torch version .................... 2.1.2+cu121
deepspeed install path ........... ['/raid/sourab/miniconda3/envs/hf/lib/python3.10/site-packages/deepspeed']
deepspeed info ................... 0.12.6, unknown, unknown
torch cuda version ............... 12.1
torch hip version ................ None
nvcc version ..................... 12.1
deepspeed wheel compiled w. ...... torch 2.1, cuda 12.1
shared memory (/dev/shm) size .... 251.77 GB
System info (please complete the following information):
GPU count and types: two A100s
Python version 3.10.13
Transformers version: 4.36.2
Accelerate version: 0.25.0
cc @ArthurZucker as you have better insights wrt the changes done in PR #27709.
Expected behavior
Same training loss curves with and without CPU offloading
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.37.0.dev0Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Describe the bug
Very high loss when using DeepSpeed with CPU offloading for versions>=4.36.0
After spending 4 hours found that the cause is this PR: #27709 and reverting this PR results in expected training loss curves.
To Reproduce
Steps to reproduce the behavior:
run_glue.py
transformers examplefrom_pretrained
] Make from_pretrained fast again #27709 or changing the offloading device fromcpu
tonone
, the training happens properly:Expected behavior
Same training loss curves with and without CPU offloading
ds_report output
System info (please complete the following information):
cc @ArthurZucker as you have better insights wrt the changes done in PR #27709.
Expected behavior
Same training loss curves with and without CPU offloading
The text was updated successfully, but these errors were encountered: