-
Notifications
You must be signed in to change notification settings - Fork 16
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
llava_trainer.py: Type and Attribute Error #8
Comments
It seems like your input_id is None. I guess there must sth wrong with your input, could you check your training data format or show me some case of your training data? |
This is my input json format, I have exactly followed https://github.com/VectorSpaceLab/Video-XL/blob/main/assets/train_example.json this format. { Is there any other input formats? |
Yes, '\n' exist only in {"from":"human","value":} pairs for every input. Is that, what you mean? if no, could you please provide a example of ideal input formats for a video? And, still the error comes in. Do I need to put '\n' at the end of every "value:.......\n" like that? Please confirm me, if I also have to use '\n' in {"from": "gpt", "value"} pairs? |
OK, I will try finetune on other machines. And I will upload some data I used within these days. At that time, maybe you can first use my data to train. If it is ok, you can debug what is wrong with your custom data. |
Thanks for your reply. |
I think you can check these part of codes(videoxl/videoxk/model/llava_arch.py). For the video input, the tensor shape of video should be (N,3,144,144); where N is the frame of videos. def encode_multimodals(self, videos_or_images, video_idx_in_batch, split_sizes=None):
|
Hi, I am not sure the issue has been settled. I have released some training data and you can use it to fine-tune the model. Thanks once again for patient waiting. |
/Video-XL/videoxl/videoxl/train/llava_trainer.py", line 252, in compute_loss
if "retrieval_span" in inputs:
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
Video-XL/videoxl/videoxl/train/llava_trainer.py", line 268, in _prepare_inputs
inputs.pop("length", None)
AttributeError: 'NoneType' object has no attribute 'pop'
Traceback (most recent call last):
Video-XL/videoxl/videoxl/model/language_model/llava_qwen.py", line 1694, in forward
if input_ids.shape[1] != 1:
AttributeError: 'NoneType' object has no attribute 'shape'
Tried with 3 zero approaches- zero3.json, zero3_offload.json, and zero2_offload.json, still this error came in.
May I know what is the fix for those errors?
The text was updated successfully, but these errors were encountered: