Skip to content

[Regresion]: multi-cards tuning+eval causes exceptions at eval phase #1889

Description

@wenhuach21

Problem Description

~~bash
"/models/opt-125m" --output_dir "/data2/wenhuach/haha" --scheme W2A16G64 --tasks lambada_openai --device_map "auto" --iters 1
~~

Reproduction Steps

~

Environment Information

~

Error Logs

File "/home/wenhuach/miniforge3/envs/autoround/lib/python3.13/site-packages/torch/nn/functional.py", line 2567, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Expected all tensors to be on the same device, but got index is on cuda:0, different from other tensors on cuda:1 (when checking argument in method wrapper_CUDA__index_select)

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions