Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mtmd : use RMS norm for InternVL 3 38B and 78B mmproj #13459

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

Merged
merged 1 commit into from
May 11, 2025

Conversation

city96
Copy link
Contributor

@city96 city96 commented May 11, 2025

Follow-up to #13443 - in my original PR I was only checking the config file for the actual ViT and failed to realize the norm type was also different, since it wasn't included in that specific config. See referenced PR for more information.

Due to the norm type not being stored in the gguf metadata, we check the hidden size and block count instead.

Quick test

Before (topk=1, greedy sampling, black and white image)

before

After (topk=1, greedy sampling, same image)

after

Copy link
Collaborator

@ngxson ngxson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks

@ngxson ngxson merged commit c104023 into ggml-org:master May 11, 2025
44 checks passed
@city96 city96 deleted the internvl_mmproj_fix branch May 11, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants