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

900帧视频推理error: AttributeError: 'int' object has no attribute 'index_select' #24

Open
h123fire opened this issue Dec 14, 2024 · 3 comments

Comments

@h123fire
Copy link

No description provided.

@h123fire h123fire changed the title 900视频推理error: AttributeError: 'int' object has no attribute 'index_select' 900帧视频推理error: AttributeError: 'int' object has no attribute 'index_select' Dec 14, 2024
@h123fire
Copy link
Author

Video-XL-main/videoxl/videoxl/model/language_model/llava_qwen.py", line 1832, in
tuple(past_state.index_select(0, beam_idx.to(past_state.device)) for past_state in layer_past),
AttributeError: 'int' object has no attribute 'index_select'

@shuyansy
Copy link
Collaborator

Could you share the code you are using? I haven't encountered this error.

@zzz130981
Copy link

Have you ever change gen_kwargs?when i change it:

gen_kwargs = {
    'temperature‘:1,2,
    'top_p': 0.9,
   'num_beams':0.2
}

I encountered the same questions as you

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