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

typeError: isin() received an invalid combination of arguments - got (test_elements=int, elements=Tensor,), but expected one of #407

Open
2 tasks done
smallblue12138 opened this issue Jun 5, 2024 · 4 comments

Comments

@smallblue12138
Copy link

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

hello,我用官方提供的web demo拉起web服务以后,上传图片,submit问题后服务端报错typeError: isin() received an invalid combination of arguments - got (test_elements=int, elements=Tensor,), but expected one of.我使用的是qwen-vl模型, 报错的方法是model.chat_stream,请问这个问题该怎么解决

期望行为 | Expected Behavior

No response

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):

备注 | Anything else?

No response

@fang-d
Copy link

fang-d commented Jun 6, 2024

Hi @smallblue12138, I met the same problem and raised an issue in #406. In that issue, I gave a preliminary solution. I hope it helps.

@smallblue12138 您好,我也遇到了同样的问题,并在 #406 中提交了一个issue。在这个issue中,我给出了一个初步的解决方案。希望这对您有帮助。

@smallblue12138
Copy link
Author

Hi @smallblue12138, I met the same problem and raised an issue in #406. In that issue, I gave a preliminary solution. I hope it helps.

@smallblue12138 您好,我也遇到了同样的问题,并在 #406 中提交了一个issue。在这个issue中,我给出了一个初步的解决方案。希望这对您有帮助。

非常感谢您的帮助,我按照您的方法修改代码后又报了,新的错误: NotImplementedError: Cannot copy out of meta tensor;no data

@fang-d
Copy link

fang-d commented Jun 7, 2024

@smallblue12138 如果可以的话,请您提供更多的信息,包括但不限于更详细的报错信息、错误位置、环境等,以便其他人能更好地帮助您。

非常感谢您的帮助,我按照您的方法修改代码后又报了,新的错误: NotImplementedError: Cannot copy out of meta tensor;no data

@SteinGate0
Copy link

仅需将您的transformers版本降低到4.32.0即可:)

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