Open ehosseiniasl opened 2 months ago
I removed "prefix" column name, but then get this error
0: File "SpeechGPT/speechgpt/src/train/cm_sft.py", line 394, in <module>
0: train()
0: File "SpeechGPT/speechgpt/src/train/cm_sft.py", line 362, in train
0: train_result = trainer.train(resume_from_checkpoint=checkpoint)
0: File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 1539, in train
0: return inner_training_loop(
0: File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 1836, in _inner_training_loop
0: for step, inputs in enumerate(epoch_iterator):
0: File "/usr/local/lib/python3.10/dist-packages/accelerate/data_loader.py", line 560, in __iter__
0: next_batch, next_batch_info = self._fetch_batches(main_iterator)
0: File "/usr/local/lib/python3.10/dist-packages/accelerate/data_loader.py", line 524, in _fetch_batches
0: batch = concatenate(batches, dim=0)
0: File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/operations.py", line 496, in concatenate
0: return type(data[0])({k: concatenate([d[k] for d in data], dim=dim) for k in data[0].keys()})
0: File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/operations.py", line 496, in <dictcomp>
0: return type(data[0])({k: concatenate([d[k] for d in data], dim=dim) for k in data[0].keys()})
0: File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/operations.py", line 499, in concatenate
0: return torch.cat(data, dim=dim)
0: RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 480 but got size 512 for tensor number 1 in the list.
Hello,
I encounter this issue when running
cm_sft.py