You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
屏幕截图
Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\RecBole-master\main.py", line 2, in
run_recbole(model='MCCLK', dataset='ml-100k', )#config_file_list=['NCL.yaml']
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\quick_start\quick_start.py", line 141, in run_recbole
flops = get_flops(model, dataset, config["device"], logger, transform)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\utils\utils.py", line 347, in get_flops
wrapper(*inputs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\utils\utils.py", line 288, in forward
return self.model.predict(interaction)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 638, in predict
) = self.forward()
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 458, in forward
entity_gcn_emb, user_gcn_emb, item_adj = self.gcn(user_emb, entity_emb)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 187, in forward
entity_emb, user_emb = self.convs[i](
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 61, in forward
neigh_relation_emb_weight = scatter_softmax(
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch_scatter\composite\softmax.py", line 18, in scatter_softmax
max_value_per_index = scatter_max(
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch_scatter\scatter.py", line 84, in scatter_max
return torch.ops.torch_scatter.scatter_max(src, index, dim, out, dim_size)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch_ops.py", line 1116, in call
return self._op(*args, **(kwargs or {}))
RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
描述这个 bug
在使用默认的MCCLK模型进行
如何复现
复现这个 bug 的步骤:
使用默认的.yaml文件,使用默认的ml-100k数据集
屏幕截图
Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\RecBole-master\main.py", line 2, in
run_recbole(model='MCCLK', dataset='ml-100k', )#config_file_list=['NCL.yaml']
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\quick_start\quick_start.py", line 141, in run_recbole
flops = get_flops(model, dataset, config["device"], logger, transform)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\utils\utils.py", line 347, in get_flops
wrapper(*inputs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\utils\utils.py", line 288, in forward
return self.model.predict(interaction)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 638, in predict
) = self.forward()
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 458, in forward
entity_gcn_emb, user_gcn_emb, item_adj = self.gcn(user_emb, entity_emb)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 187, in forward
entity_emb, user_emb = self.convs[i](
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\Lenovo\Desktop\RecBole-master\recbole\model\knowledge_aware_recommender\mcclk.py", line 61, in forward
neigh_relation_emb_weight = scatter_softmax(
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch_scatter\composite\softmax.py", line 18, in scatter_softmax
max_value_per_index = scatter_max(
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch_scatter\scatter.py", line 84, in scatter_max
return torch.ops.torch_scatter.scatter_max(src, index, dim, out, dim_size)
File "C:\Users\Lenovo.conda\envs\pytorch\lib\site-packages\torch_ops.py", line 1116, in call
return self._op(*args, **(kwargs or {}))
RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain.
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with
TORCH_USE_CUDA_DSA
to enable device-side assertions.实验环境(请补全下列信息):
我听说是CUDA版本过高的问题吗?刚开始我遇到了没有安装torch-scatter库的问题,使用pip安装后的报错是版本不符,最后在安装符合我pytorch与CUDA版本(2.1.2+pt25cu121) 的torch-scatter后,我的信息报错如最后几句所示
The text was updated successfully, but these errors were encountered: