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

where is the lightseq.inference Transformer class file? #195

Open
VincentChen95 opened this issue Sep 30, 2021 · 1 comment
Open

where is the lightseq.inference Transformer class file? #195

VincentChen95 opened this issue Sep 30, 2021 · 1 comment

Comments

@VincentChen95
Copy link

hello team, I am following the tutorial to load a transformer model with a PB format file.
Code:

import lightseq.inference as lsi
import sys

file_name = sys.argv[1]
model = lsi.Transformer(file_name, 8)
output = model.infer([[1, 2, 3], [4, 5, 6]])

I am trying to understand what parameters we should pass to the "Transformer" class.
However, I cannot find the "Transformer" class in lightseq.inference
could you please tell me where can I find that class?
thank you

@Taka152
Copy link
Contributor

Taka152 commented Oct 9, 2021 via email

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