You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are well used custom models which implement BERT with RoPE.
This is a tracking issue to add support for them in Transformers.
One motivation for this is so that the Transformers modeling backend for vLLM can run these models, allowing us to completely remove all embedding model implementations from vLLM.
@vasqu@ed22699 Following up on "multimodal ones + MoE could be done next": I'd like to take the MoE variant (nomic-ai/nomic-embed-text-v2-moe) unless someone is already on it.
Its config declares model_type: nomic_bert with num_experts=8, moe_top_k=2 and moe_every_n_layers=2, none of which the native NomicBert supports today, so it still needs trust_remote_code.
Plan, text-only:
MoE block (router + top-k experts) on every second layer in modular_nomic_bert.py, plus the new config fields
weight conversion from the megablocks expert layout
tiny-config tests, and logit parity against the remote-code model
Two questions before I start:
Should the experts reuse one of the existing MoE modules in the library (if so, which one would you point me to), or stay custom?
Extend NomicBert under the same model_type, or add a separate nomic_bert_moe?
Snowflake GTE: still remote code, e.g. Snowflake/snowflake-arctic-embed-m-v2.0 (Downloads last 30d: 81,027 · Likes: 108 · Params: ~305M · License: apache-2.0 · Released: 2024-11). It may only need a mapping onto the new gte model; no open PR found.
Hi @ArthurZucker, the author of #48416 here, thanks for the update! #48416 also covered Snowflake GTE alongside Alibaba's checkpoints, as mentioned in its model doc on main and tested in the integration tests. Its checkpoint already declares model_type: "gte" as well, so AutoModel.from_pretrained("Snowflake/snowflake-arctic-embed-m-v2.0") should load the model without trust_remote_code
Activity
vasqu commentedon Dec 9, 2025
Sorry missed this, commenting myself to also keep track for what to integrate
ed22699 commentedon Dec 27, 2025
Hi @hmellor, @Bumsparkle and I would love to take this on if it's still available
vasqu commentedon Apr 2, 2026
Some updates
harshaljanjani commentedon Aug 29, 2026
Working on GTE, Alibaba-NLP/gte-*-en-v1.5 and gte-multilingual-*, which should also cover snowflake-arctic-embed-m-v2.0 since it ships the same architecture, will raise the PR. #48407 is a fix I hit on the way.
jayzuccarelli commentedon Oct 6, 2026
@vasqu @ed22699 Following up on "multimodal ones + MoE could be done next": I'd like to take the MoE variant (nomic-ai/nomic-embed-text-v2-moe) unless someone is already on it.
Its config declares
model_type: nomic_bertwithnum_experts=8,moe_top_k=2andmoe_every_n_layers=2, none of which the native NomicBert supports today, so it still needstrust_remote_code.Plan, text-only:
modular_nomic_bert.py, plus the new config fieldsTwo questions before I start:
model_type, or add a separatenomic_bert_moe?ArthurZucker commentedon Oct 20, 2026
Status update on this tracking list:
nomic_bert(Internalise the NomicBERT model #43067)gte(model: Add GTE to Transformers #48416)jina_embeddings_v3(AddJina-Embeddings-V3Model #44251)gtemodel; no open PR found.To add it, follow the modular guide and the Transformers tenets.
harshaljanjani commentedon Oct 21, 2026
Hi @ArthurZucker, the author of #48416 here, thanks for the update! #48416 also covered Snowflake GTE alongside Alibaba's checkpoints, as mentioned in its model doc on
mainand tested in the integration tests. Its checkpoint already declaresmodel_type: "gte"as well, soAutoModel.from_pretrained("Snowflake/snowflake-arctic-embed-m-v2.0")should load the model withouttrust_remote_codevasqu commentedon Oct 21, 2026
I think we got all of the models listed here cc @hmellor fyi
ArthurZucker commentedon Oct 22, 2026
Let's close then ty all!