You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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'>
The text was updated successfully, but these errors were encountered:
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'>The text was updated successfully, but these errors were encountered: