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

Runtime Error #27

Open
xones267 opened this issue Oct 18, 2024 · 2 comments
Open

Runtime Error #27

xones267 opened this issue Oct 18, 2024 · 2 comments

Comments

@xones267
Copy link

pixel_values = torch.cat([pv for pv in all_pixel_values if pv is not None], dim=0) if any(all_pixel_values) else None
RuntimeError: Boolean value of Tensor with more than one value is ambiguous

such error exist while I am using the finetune_lora_vision script

@2U1
Copy link
Owner

2U1 commented Oct 18, 2024

Does your dataset has mixed modality?
I just updated the code for the issue, so you can use it. However I'm not sure this code can handle mixed modality dataset.

@2U1
Copy link
Owner

2U1 commented Nov 26, 2024

If you are using mixed-modality data, use zero2 for fine-tuning.

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

2 participants