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

add nomic-ai modernbert #4320

Merged
merged 6 commits into from
Jan 21, 2025
Merged

add nomic-ai modernbert #4320

merged 6 commits into from
Jan 21, 2025

Conversation

arnej27959
Copy link
Member

@bjorncs please review
@glebashnik FYI

bjorncs
bjorncs previously approved these changes Jan 20, 2025
@@ -0,0 +1,13 @@
[
{ "remove": "id:test:doc::1" },
Copy link
Member

Choose a reason for hiding this comment

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

Why is the remove operation neccessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's only there to remove the single doc (in docs.json) used by the other tests. Will clean up.

{
"kw": "hello",
"qtext": "Hello world",
"dtext": "Hello world",
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of dtext?

#puts("OK[#{idx}]: #{expval}")
end

def check_prefix_suffix(expected_v, actual_v, fixlen)
Copy link
Member

Choose a reason for hiding this comment

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

The purpose of this method is just to skip comparison of the middle element (index 5)?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, it's to skip the middle 758 elements in the actual vector - comparing just the 5 first and last. index 5 is a placeholder from where the python "torch" library prints "...".

@arnej27959 arnej27959 merged commit 2ec50c9 into master Jan 21, 2025
2 checks passed
@arnej27959 arnej27959 deleted the arnej/add-nomic-ai-modernbert branch January 21, 2025 07:39
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.

2 participants