开发者社区 > ModelScope模型即服务 > 多模态 > 正文

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 23 0
1 条回答
写回答
取消 提交回答
  • 直接用作者的源码进行训练,推理能够跑通,训练无法跑通

    2024-09-10 15:59:08
    赞同 16 展开评论 打赏

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

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载