mPLUG-HiTeA模型的video-question-answering报错问题。

报错内容:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [393, 768]], which is output 0 of AsStridedBackward0, is at version 1; expected version 0 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!
这里用的是作者的源码,很奇怪为什么会报这种错误,作者模型有进行inplace操作吗?求好心人解答

展开
收起
aliyun0534282676-30235 2024-09-10 15:22:01 77 分享 版权
1 条回答
写回答
取消 提交回答
  • 直接用作者的源码进行训练,推理能够跑通,训练无法跑通

    2024-09-10 15:59:08
    赞同 267 展开评论

包含图像描述、文本生成图片、版面分析、多模态表征、视觉问答、文档理解等多个领域

热门讨论

热门文章

还有其他疑问?
咨询AI助理