Open dayu1979 opened 1 year ago
Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)
which infer ? and show more error
应该是model_zoo的ChatGLMTokenizer类的问题,返回的tensor在cpu上,而模型是在gpu,导致该错误发生。
yes , fixed
Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select)