I need to fix this, but unfortunately it isn't my top priority right now.
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! (when checking argument for argument tensors in method wrapper_CUDA_cat)
[rank0]: Traceback (most recent call last):
[rank0]: File "/millcreek/home/sunil/r1_vlm/src/r1_vlm/environments/digit_recognition_env/train.py", line 90, in <module>
[rank0]: trainer.train()
[rank0]: File "/millcreek/home/sunil/r1_vlm/.venv/lib/python3.12/site-packages/transformers/trainer.py", line 2241, in train
[rank0]: return inner_training_loop(
[rank0]: ^^^^^^^^^^^^^^^^^^^^
[rank0]: File "/millcreek/home/sunil/r1_vlm/.venv/lib/python3.12/site-packages/transformers/trainer.py", line 2548, in _inner_training_loop
[rank0]: tr_loss_step = self.training_step(model, inputs, num_items_in_batch)
[rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]: File "/millcreek/home/sunil/r1_vlm/.venv/lib/python3.12/site-packages/transformers/trainer.py", line 3692, in training_step
[rank0]: inputs = self._prepare_inputs(inputs)
[rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]: File "/millcreek/home/sunil/trl/trl/trainer/qwen_grpo_trainer.py", line 650, in _prepare_inputs
[rank0]: prompt_completion_ids = torch.cat([prompt_ids, completion_ids], dim=1)
[rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! (when checking argument for argument tensors in method wrapper_CUDA_cat)
I need to fix this, but unfortunately it isn't my top priority right now.