Quick Answer
Cross-Encoder’s ms-marco-MiniLM-L2-v2 is the top pick for local use as of November 2026 when memory is the deciding constraint: its F32 weights occupy 0.1 GB versus 0.6 GB for Alibaba NLP’s gte-reranker-modernbert-base [1][2]. The ranking is ms-marco-MiniLM-L2-v2 (Cross-Encoder), and gte-reranker-modernbert-base (Alibaba NLP) [1][2].
Key Takeaways
- Verdict: choose Cross-Encoder’s
cross-encoder/ms-marco-MiniLM-L2-v2for its smaller weight footprint: 0.1 GB in F32 [1], versus 0.6 GB for Alibaba NLP’sAlibaba-NLP/gte-reranker-modernbert-base[2]. - The runner-up offers longer context:
Alibaba-NLP/gte-reranker-modernbert-basesupports 8K tokens [2], versus 512 tokens forcross-encoder/ms-marco-MiniLM-L2-v2[1]. - Hardware budgeting for
cross-encoder/ms-marco-MiniLM-L2-v2: estimated 4-bit weight storage is 8 MB (16M parameters × 0.5 bytes) [1]; weight storage alone does not establish total RAM or VRAM requirements. - Hardware budgeting for
Alibaba-NLP/gte-reranker-modernbert-base: estimated 4-bit weight storage is 75 MB (150M parameters × 0.5 bytes) [2]; weight storage alone does not establish total RAM or VRAM requirements. - Licence: both models use Apache-2.0 [1][2], so licensing does not distinguish the choices.
How do ms-marco-MiniLM-L2-v2 and gte-reranker-modernbert-base compare?
| Model | Organization | Parameters | VRAM at 4-bit (estimated) | Context | License | Benchmark (date) |
|---|---|---|---|---|---|---|
| Alibaba-NLP/gte-reranker-modernbert-base [2] | Alibaba NLP [2] | 150M [2] | 75 MB (estimated: parameters × 0.5 bytes; weights only, excludes runtime overhead) [2] | 8K tokens [2] | Apache-2.0 [2] | — |
| cross-encoder/ms-marco-MiniLM-L2-v2 [1] | Cross-Encoder [1] | 16M [1] | 8 MB (estimated: parameters × 0.5 bytes; weights only, excludes runtime overhead) [1] | 512 tokens [1] | Apache-2.0 [1] | — |
Which model should you run locally?
1. ms-marco-MiniLM-L2-v2
ms-marco-MiniLM-L2-v2 from Cross-Encoder is a reranking model first published on Hugging Face on 2022-03-02 [1]. Its Hugging Face identifier is cross-encoder/ms-marco-MiniLM-L2-v2. For local deployment, its practical advantage is the smaller listed weight footprint: F32 weights occupy 0.1 GB [1], compared with 0.6 GB for gte-reranker-modernbert-base from Alibaba NLP [2]. That difference supports choosing it when weight storage is the deciding constraint.
Cross-Encoder’s model has 16M parameters, a 512-token context and an Apache-2.0 licence [1]. Alibaba NLP’s alternative has 150M parameters, an 8K-token context and the same Apache-2.0 licence [2]. The tradeoff is therefore concrete: choosing Cross-Encoder reduces the listed weight storage requirement while accepting a shorter input window [1][2]. Neither parameter count nor weight size establishes comparative ranking quality.
At 4-bit precision, estimated weight storage is 8 MB, calculated as 16M parameters × 0.5 bytes per parameter [1]. Treat that figure as an estimate for parameter storage, not a measured checkpoint size or total runtime memory requirement. The estimate also does not establish that a particular quantized implementation is available or preserves ranking quality. Hardware capacity should not be judged from weight storage alone.
For installation planning, keep the listed weight size separate from the complete environment’s disk requirement. Check available storage and runtime memory independently. A parameter-storage estimate cannot establish that the model will load successfully alongside the rest of your local application.
The 512-token context requires attention when preparing query–document pairs [1]. Budget the query and document together within that limit; assigning the entire 512-token allowance to the document leaves no room for the query [1]. If the intended pairs fit, the shorter context can be an acceptable tradeoff for the smaller listed weights [1][2].
For an initial local check, use the exact repository identifier above and a query–document pair representative of the intended workload. Treat successful loading and relevance assessment as separate checks: loading alone does not establish how well the model ranks your documents.
Release date and licence add context without deciding performance. Cross-Encoder’s model dates to 2022-03-02 [1], while Alibaba NLP’s model dates to 2025-01-20 [2]. A later release alone does not establish better ranking or faster execution. Both carry Apache-2.0 licences [1][2], so licence choice provides no distinction between them here.
For local workloads that prioritize weight storage and fit within 512 tokens per query–document pair, ms-marco-MiniLM-L2-v2 is the better pick on the cited footprint figures: 0.1 GB of F32 weights versus 0.6 GB [1][2]. Choose it for that explicit memory tradeoff. Workloads requiring the alternative’s 8K-token context have a different requirement [2]; the smaller checkpoint does not resolve that need.
2. gte-reranker-modernbert-base
gte-reranker-modernbert-base from Alibaba NLP is a reranking model first published on Hugging Face on January 20, 2025.[2] Its exact repository identifier is Alibaba-NLP/gte-reranker-modernbert-base.[2] For local deployment, its distinguishing specification is an 8K-token context window,[2] compared with the 512-token limit of Cross-Encoder’s ms-marco-MiniLM-L2-v2.[1] That capacity is the concrete reason to consider it when input length drives the decision.
Alibaba NLP lists 150M parameters, F32 weights of 0.6 GB, and an Apache-2.0 licence.[2] Cross-Encoder lists 16M parameters, F32 weights of 0.1 GB, and the same Apache-2.0 licence.[1] The comparison therefore favors Cross-Encoder on published weight size and Alibaba NLP on context capacity.[1][2] Neither model gains a licensing advantage from the stated licence.[1][2]
Choose the Alibaba NLP model when the query and candidate text you need to rerank exceed the competing model’s 512-token allowance[1] but fit within its 8K-token window.[2] Budget the input for the query together with the candidate text; a document chunk that already consumes the entire allowance leaves no room for the query. The longer window gives you room to retain candidate text within the stated limit.[2]
The memory tradeoff remains explicit. Alibaba NLP’s published F32 weights occupy 0.6 GB,[2] versus 0.1 GB for Cross-Encoder.[1] At 4-bit precision, Alibaba NLP’s raw weight storage would be approximately 75 MB, estimated (150M parameters × 0.5 bytes).[2] That calculation describes weight storage only. Treat neither the estimate nor the published checkpoint size as a guarantee that a machine with that much spare memory can run the model.
A larger context window does not establish better ranking quality. No comparative benchmark score supports a quality winner here, and no supplied latency or throughput figure supports a speed winner. Likewise, the later publication date—January 20, 2025,[2] versus March 2, 2022[1]—does not establish either advantage.
For a recommendation driven by weight size, keep Cross-Encoder as the default: its published F32 checkpoint is smaller.[1][2] Choose Alibaba NLP when its 8K-token capacity[2] addresses your input requirements and its larger published weight allocation is acceptable.[1][2] The defensible reason to switch is context capacity; the stated licence is equal, and the stated memory footprint favors Cross-Encoder.[1][2]
What hardware do you need for either model?
Cross-Encoder’s cross-encoder/ms-marco-MiniLM-L2-v2 has 16M parameters [1]. Weight memory is estimated at 8 MB for 4-bit weights (params × 0.5 bytes) [1] and 16 MB for 8-bit weights (params × 1 byte) [1]. Alibaba NLP’s Alibaba-NLP/gte-reranker-modernbert-base has 150M parameters [2]. Its corresponding weight memory is estimated at 75 MB for 4-bit weights (params × 0.5 bytes) [2] and 150 MB for 8-bit weights (params × 1 byte) [2].
For disk planning, the listed F32 weights occupy 0.1 GB for cross-encoder/ms-marco-MiniLM-L2-v2 [1] and 0.6 GB for Alibaba-NLP/gte-reranker-modernbert-base [2]. Those are the supplied checkpoint sizes; the quantized estimates above describe weight storage calculated from parameter counts. Neither calculation establishes total installation size or total runtime memory, so avoid treating a weight estimate as the amount of free GPU memory required to run the model.
For a smaller GPU, cross-encoder/ms-marco-MiniLM-L2-v2 is the memory-first choice: its estimated 8-bit weights occupy 16 MB [1], compared with 150 MB for Alibaba-NLP/gte-reranker-modernbert-base [2]. Choose on that narrower basis when memory is the deciding constraint. The figures support a lower weight-memory requirement, but they do not establish a minimum GPU capacity or guarantee that either model fits alongside your other workloads.
Frequently Asked Questions
Which model is better for local reranking?
Choose cross-encoder/ms-marco-MiniLM-L2-v2 when smaller weights decide the deployment: its F32 weights occupy 0.1 GB [1]. Choose Alibaba NLP’s Alibaba-NLP/gte-reranker-modernbert-base when longer inputs matter: its context is 8K tokens [2], compared with 512 tokens [1]. Those figures support a conditional recommendation based on memory and input length. A ranking-quality winner cannot be inferred from parameter count, context capacity or release date alone.
How much VRAM do I need for either model?
Weight storage is a starting point, not a total VRAM requirement. ms-marco-MiniLM-L2-v2 (Cross-Encoder) has 0.1 GB of F32 weights [1]; Alibaba-NLP/gte-reranker-modernbert-base has 0.6 GB [2]. Neither figure guarantees operation with that much free VRAM. Runtime memory also needs to accommodate execution overhead and inputs. Choose cross-encoder/ms-marco-MiniLM-L2-v2 when the smaller published weight footprint matters, then measure total memory with your intended runtime and workload.
What are the licences, and how should I evaluate commercial use?
Both ms-marco-MiniLM-L2-v2 (Cross-Encoder) and Alibaba-NLP/gte-reranker-modernbert-base list Apache-2.0 as their licence [1][2]. The stated licence therefore provides no distinction between them for commercial selection. Review the applicable licence text and its obligations before distributing either model or incorporating it into a commercial product. Keep that review separate from deployment sizing: a shared licence does not establish identical memory requirements, runtime compatibility or ranking behavior.
Can I run either model on a CPU?
CPU compatibility needs confirmation in your chosen inference runtime; parameter counts alone do not establish support or usable performance. ms-marco-MiniLM-L2-v2 (Cross-Encoder) has 16M parameters [1], while Alibaba-NLP/gte-reranker-modernbert-base has 150M [2]. Those counts do not establish a CPU latency advantage. Before committing, verify that the runtime loads the exact repository, then measure memory and response time using representative query and document pairs.
What will running either model locally cost?
A dollar estimate needs your hardware, electricity costs and workload. The published F32 weight sizes are 0.1 GB for ms-marco-MiniLM-L2-v2 (Cross-Encoder) [1] and 0.6 GB for Alibaba-NLP/gte-reranker-modernbert-base [2]. Those figures distinguish weight storage, but they do not establish total operating cost. Both list Apache-2.0 [1][2]; neither that licence label nor checkpoint size supplies a hardware budget, energy measurement or cost per request.
Can I switch between the models later?
Plan for switching by keeping model selection configurable and validating each replacement before deployment. ms-marco-MiniLM-L2-v2 (Cross-Encoder) has a 512-token context [1], while Alibaba-NLP/gte-reranker-modernbert-base has an 8K-token context [2]. Moving to the shorter context requires budgeting for the combined query and document input, rather than allocating the entire limit to the document. Check runtime compatibility, memory use and ranking behavior before treating either repository as an interchangeable replacement.
Sources
- cross-encoder/ms-marco-MiniLM-L2-v2 model card (Hugging Face) — 2026-11-11 · ms-marco-MiniLM-L2-v2 on Q4KM
- Alibaba-NLP/gte-reranker-modernbert-base model card (Hugging Face) — 2026-11-11 · gte-reranker-modernbert-base on Q4KM
- Towards General Text Embeddings with Multi-stage Contrastive Learning — 2023-08-07