Skip to content
New issue

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

pretrain.sh #12

Open
YePG opened this issue Dec 1, 2021 · 4 comments
Open

pretrain.sh #12

YePG opened this issue Dec 1, 2021 · 4 comments

Comments

@YePG
Copy link

YePG commented Dec 1, 2021

    --ckpt ${MTPATH}/mt.ckpts/esen/ckpt.exp.pretrain4 \

what is the ckpt.exp.pretrain4 ?
I run the code and get FileNotFoundError: [Errno 2] No such file or directory: './data/mt.ckpts/esen/ckpt.exp.pretrain4'

@ghost
Copy link

ghost commented Dec 1, 2021

If this parameter is set while training a generator, its usage is to save model. So you can just try mkdir to create such folder.

@ghost
Copy link

ghost commented Dec 1, 2021

( also the same in training retriever

@NCUIui
Copy link

NCUIui commented Oct 16, 2023

RuntimeError: Output 0 of SplitBackward0 is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.
执行预训练这个错误如何解决?谢谢

@yangkent114
Copy link

RuntimeError: Output 0 of SplitBackward0 is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one. 执行预训练这个错误如何解决?谢谢

I use Chatgpt &then I got the measure to fix the issue, the problem exits in transformer.py line 131 q *= self.scaling This error indicates that there is an inplace operation in your code that modifies Tensors referenced by multiple views.The solution is add q = q.clone() before q *= self.scaling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants