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

Fix type error when the visual encoder is not CLIP #496

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

hhaAndroid
Copy link
Collaborator

@hhaAndroid hhaAndroid commented Mar 20, 2024

When the input type is fp32 and the model type is bf16, CLIP automatically performs type conversion, so no error occurs. However, if we switch to other CLIP models such as SigLIP, an error will be thrown.

image

@hhaAndroid hhaAndroid requested a review from LZHgrla March 20, 2024 02:55
@pppppM pppppM merged commit 5a9ba52 into InternLM:main Mar 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants