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

How to decode output information from model.chat() #7

Open
Leonard-Yao opened this issue Nov 21, 2024 · 0 comments
Open

How to decode output information from model.chat() #7

Leonard-Yao opened this issue Nov 21, 2024 · 0 comments

Comments

@Leonard-Yao
Copy link

Hi, it's a amazing job. We can get very accurate description from the demo. However , when I run outputs = self.model.chat(self.prompt, [image], max_new_tokens=200)
print(self.tokenizer.decode(outputs[0]))
the error occurred, text = self._tokenizer.decode(token_ids, skip_special_tokens=skip_special_tokens)
OverflowError: out of range integral type conversion attempted. And the output is [1, 3148, 1001, 29901, 450, 1967, 29901, 29871, -200, 29871, 8449, 5930, 297, 445, 1967, 29901, 10884, 29899, 2204, 332, 29892, 17251, 29892, 447, 911, 29892, 16847, 29892, 470, 4482, 3578, 29973, 319, 1799, 9047, 13566, 29901, 17511, 3578, 2].
how can I get the docede output , thank U.

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

1 participant