document-level-classification icon indicating copy to clipboard operation
document-level-classification copied to clipboard

训练问题

Open teorzhang opened this issue 1 year ago • 4 comments

请问为什么我训练自己的数据集时会卡在这一步很久,没有开始训练。sample_batch: 4 torch.Size([256, 600]) torch.Size([256, 600]) torch.Size([256, 600]) torch.int64 torch.Size([256]) torch.int64。到这就不输出了

teorzhang avatar May 09 '23 09:05 teorzhang

卡在这一步model = model.to(device),去掉会报runtimeerror: module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cpu 。不去掉会一直卡着。。。

teorzhang avatar May 09 '23 16:05 teorzhang

卡在这一步模型 = model.to(device),去掉会报运行时错误: 模块必须在设备上有其参数和缓冲区 cuda:0 (device_ids[0]) 但在设备上找到其中一个:CPU。不去掉会一直卡着。。。

请问你解决了么

zhci avatar Oct 24 '23 06:10 zhci

卡在这一步模型 = model.to(device),去掉会报运行时错误: 模块必须在设备上有其参数和缓冲区 cuda:0 (device_ids[0]) 但在设备上找到其中一个:CPU。不去掉会一直卡着。。。

请问你解决了么

没,不用这个仓库代码了

teorzhang avatar Oct 28 '23 02:10 teorzhang

@teorzhang 你后面用的哪个仓库兄弟

yihp avatar Nov 17 '23 01:11 yihp