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

fairseq,marian,还有huggingface预训练的模型能够支持吗? #3

Open
xiuzhilu opened this issue Oct 27, 2021 · 1 comment

Comments

@xiuzhilu
Copy link

感谢大佬提供那么好的工具,我想一下,如果我的翻译模型是fairseq,Marian框架下训练出来,那我要怎么去适配turboTransformers这个工具,如果是huggingface预训练的翻译模型呢?又应该怎么去适配呢

@feifeibear
Copy link
Contributor

https://github.com/TurboNLP/Translate-Demo/blob/master/mytranslator.py#L622
参考一下这个例子,把decoder的调用都换成turbo的。其他框架也是一样的道理。

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

2 participants