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

An error was encountered when executing the cli.py #108

Open
Gechenseu opened this issue Oct 16, 2024 · 0 comments
Open

An error was encountered when executing the cli.py #108

Gechenseu opened this issue Oct 16, 2024 · 0 comments

Comments

@Gechenseu
Copy link

output_ids = model.generate(
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/transformers/generation/utils.py", line 1588, in generate
return self.sample(
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/transformers/generation/utils.py", line 2642, in sample
outputs = self(
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/ssd01/chenge/LLaMA-VID-main/llamavid/model/language_model/llava_llama_vid.py", line 85, in forward
outputs = self.model(
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 693, in forward
layer_outputs = decoder_layer(
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 408, in forward
hidden_states, self_attn_weights, present_key_value = self.self_attn(
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 305, in forward
query_states = self.q_proj(hidden_states)
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.conda/envs/llamavid/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight.to(device=input.device), self.bias.to(device=input.device))
AttributeError: 'NoneType' object has no attribute 'to'

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