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

关于Beam Search推理,Qwen2-Audio的模型是否支持beam search推理 #93

Open
yxduir opened this issue Nov 6, 2024 · 0 comments

Comments

@yxduir
Copy link

yxduir commented Nov 6, 2024

output_ids = model.generate(**inputs,num_beams=5, max_new_tokens=256, min_new_tokens=1, do_sample=False)

[rank0]: NotImplementedError: Make sure that a _reorder_cache function is correctly implemented in transformers.models.qwen2.modeling_qwen2 to enable beam search for <class 'transformers.models.qwen2.modeling_qwen2.Qwen2ForCausalLM'>

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