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

如何进行推理? #91

Open
GinkgoX opened this issue Aug 11, 2021 · 1 comment
Open

如何进行推理? #91

GinkgoX opened this issue Aug 11, 2021 · 1 comment

Comments

@GinkgoX
Copy link

GinkgoX commented Aug 11, 2021

您好,请问训练好的权重可以单独拿出来做成推理服务,提供推理接口吗?

@JayYip
Copy link
Owner

JayYip commented Aug 11, 2021

可以的,具体预测的实现可以参考

https://github.com/JayYip/bert-multitask-learning/blob/d1f7defd6f68f7f45641123eaf295f7620cc46e2/bert_multitask_learning/run_bert_multitask.py#L397

如果要存成SavedModel来推理的话可能需要一些模型改动。

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