trl icon indicating copy to clipboard operation
trl copied to clipboard

TRL Supervised Fine Tuning failed running with core dumped

Open tianbingsz opened this issue 2 years ago • 1 comments

Hi, all: I am trying to test running TRL's sft (https://github.com/huggingface/trl/blob/main/examples/scripts/sft.py) on my EC2 redspot machine. It failed with dumped core. After debugging, I find that it failed at inner_training_loop (https://github.com/huggingface/transformers/blob/main/src/transformers/trainer.py#L1542). There might be caused by wrong env packages (e.g. cuda, transfomers ..) ? Here is my settings

pip install torch==2.1.2+cu118 torchvision torchaudio -f https://download.pytorch.org/whl/cu118/torch_stable.html

pip install -q -U git+https://github.com/huggingface/transformers.git 4.38.0.dev0 pip install -q -U git+https://github.com/huggingface/peft.git 0.7.2.dev0 pip install -q -U git+https://github.com/huggingface/accelerate.git 0.27.0.dev0 pip install -q -U bitsandbytes 0.42.0 pip install git+https://github.com/huggingface/trl 0.7.11.dev0

My EC2 machine has 4 A10, each about 22G Memory. I monitor the memory during running, there is no OOM issues, 4 GPU consumes about 10G, 5G, 5G, 5G memory. I also run similar SFT on colab (https://colab.research.google.com/drive/1Dyauq4kTZoLewQ1cApceUQVNcnnNTzg_?usp=sharing) with one T4 GPU. Actually, it is working perfect. I guess there might be issue related to run on multi-gpu or env settings?

Anything else I need to check? Any hints are highly appreciated!

tianbingsz avatar Jan 26 '24 03:01 tianbingsz

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

github-actions[bot] avatar Feb 25 '24 15:02 github-actions[bot]