We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,在摘要提取中,进行多卡训练的时候,出现这样的问题AttributeError: 'DataParallel' object has no attribute 'prepare_decoder_input_ids_from_labels'是模型本身不能进行多卡训练吗?
The text was updated successfully, but these errors were encountered:
不好意思,目前的代码都没有考虑多卡训练。我也不会[捂脸]。
但是你这应该不是多卡训练的问题。
prepare_decoder_input_ids_from_labels() 是 AutoModelForSeq2SeqLM 模型的函数。你可以检查一下代码,正确的调用应该是类似 model.prepare_decoder_input_ids_from_labels(labels)。
prepare_decoder_input_ids_from_labels()
AutoModelForSeq2SeqLM
model.prepare_decoder_input_ids_from_labels(labels)
Sorry, something went wrong.
不好意思,目前的代码都没有考虑多卡训练。我也不会[捂脸]。 但是你这应该不是多卡训练的问题。 prepare_decoder_input_ids_from_labels() 是 AutoModelForSeq2SeqLM 模型的函数。你可以检查一下代码,正确的调用应该是类似 model.prepare_decoder_input_ids_from_labels(labels)。
没事,我也是在学习中,但是我单机单卡训练是没有问题的
No branches or pull requests
你好,在摘要提取中,进行多卡训练的时候,出现这样的问题AttributeError: 'DataParallel' object has no attribute 'prepare_decoder_input_ids_from_labels'是模型本身不能进行多卡训练吗?
The text was updated successfully, but these errors were encountered: