Token indices sequence length is longer than the specified maximum sequence length for this model (4158 > 2048)

Author: tginartCreated Apr 27, 2023Updated Aug 5, 2024

Describe the bug Running the Pythia-7B fine-tune script on 4 x A10 (24GB each).

Seems like issue with seq len:

_``` Token indices sequence length is longer than the specified maximum sequence length for this model (4158 > 2048). Running this sequence through the model will result in indexing errors Traceback (most recent call last): File "/home/ec2-user/OpenChatKit/training/dist_clm_train.py", line 358, in main() File "/home/ec2-user/OpenChatKit/training/dist_clm_train.py", line 332, in main train_loop(args, pipe, device, train_data_loader, test_data_loader) File "/home/ec2-user/OpenChatKit/training/dist_clm_train.py", line 151, in train_loop get_data_parallel_comm().recv( File "/home/ec2-user/OpenChatKit/training/comm/nccl_backend.py", line 79, in recv self.comm.recv( File "cupy_backends/cuda/libs/nccl.pyx", line 477, in cupy_backends.cuda.libs.nccl.NcclCommunicator.recv File "cupy_backends/cuda/libs/nccl.pyx", line 129, in cupy_backends.cuda.libs.nccl.check_status cupy_backends.cuda.libs.nccl.NcclError: NCCL_ERROR_UNHANDLED_CUDA_ERROR: unhandled cuda error Traceback (most recent call last): File "/home/ec2-user/OpenChatKit/training/dist_clm_train.py", line 358, in main() File "/home/ec2-user/OpenChatKit/training/dist_clm_train.py", line 332, in main train_loop(args, pipe, device, train_data_loader, test_data_loader) File "/home/ec2-user/OpenChatKit/training/dist_clm_train.py", line 117, in train_loop get_data_parallel_comm().send( File "/home/ec2-user/OpenChatKit/training/comm/nccl_backend.py", line 65, in send self.comm.send( File "cupy_backends/cuda/libs/nccl.pyx", line 468, in cupy_backends.cuda.libs.nccl.NcclCommunicator.send File "cupy_backends/cuda/libs/nccl.pyx", line 129, in cupy_backends.cuda.libs.nccl.check_status cupy_backends.cuda.libs.nccl.NcclError: NCCL_ERROR_UNHANDLED_CUDA_ERROR: unhandled cuda error

_

**To Reproduce**
Steps to reproduce the behavior:
Run Pythia train script with following modifications:

`--num-layers 16 --embedding-dim 4096 \
--world-size 4 --pipeline-group-size 2 --data-group-size 2 \`


**Expected behavior**
Training should work? 
Using standard AWS deep learning AMI with cuda

Source: togethercomputer/OpenChatKit