Quick Answer
As of November 2026, Cross-Encoder’s cross-encoder/ms-marco-MiniLM-L12-v2 is the top pick for local use when prioritizing weight storage, with 0.1 GB of F32 weights versus 0.6 GB for Alibaba NLP’s Alibaba-NLP/gte-reranker-modernbert-base [1][2]. The ranking is ms-marco-MiniLM-L12-v2 (Cross-Encoder), and gte-reranker-modernbert-base (Alibaba NLP) [1][2].
Key Takeaways
- Verdict: choose Cross-Encoder’s
cross-encoder/ms-marco-MiniLM-L12-v2for its smaller F32 weight footprint: 0.1 GB [1], versus 0.6 GB for Alibaba NLP’sAlibaba-NLP/gte-reranker-modernbert-base[2]. Alibaba-NLP/gte-reranker-modernbert-baseoffers more context: 8K tokens [2], versus 512 tokens forcross-encoder/ms-marco-MiniLM-L12-v2[1].- Hardware estimate for
cross-encoder/ms-marco-MiniLM-L12-v2: hypothetical 4-bit weights occupy approximately 16.5 MB (33M parameters × 0.5 bytes); this estimates weights alone, not total RAM or VRAM requirements [1]. - Hardware estimate for
Alibaba-NLP/gte-reranker-modernbert-base: hypothetical 4-bit weights occupy approximately 75 MB (150M parameters × 0.5 bytes); this estimates weights alone, not total RAM or VRAM requirements [2]. - Both models use the Apache-2.0 licence, so licence choice does not distinguish them [1][2].
How do ms-marco-MiniLM-L12-v2 and gte-reranker-modernbert-base compare?
| Model | Organization | Parameters | VRAM at 4-bit (estimated) | Context | License | Benchmark (date) |
|---|---|---|---|---|---|---|
| cross-encoder/ms-marco-MiniLM-L12-v2 [1] | Cross-Encoder [1] | 33M [1] | 16.5 MB weights only; estimated (33M parameters × 0.5 bytes), excluding runtime memory [1] | 512 tokens [1] | Apache-2.0 [1] | — |
| Alibaba-NLP/gte-reranker-modernbert-base [2] | Alibaba NLP [2] | 150M [2] | 75 MB weights only; estimated (150M parameters × 0.5 bytes), excluding runtime memory [2] | 8K tokens [2] | Apache-2.0 [2] | — |
Which model should you run locally?
1. ms-marco-MiniLM-L12-v2
ms-marco-MiniLM-L12-v2 from Cross-Encoder is a reranker first published on Hugging Face on March 2, 2022.[1] For local deployments that prioritize a smaller weight footprint, it is the better starting choice: its F32 weights are listed at 0.1 GB, compared with 0.6 GB for Alibaba NLP’s gte-reranker-modernbert-base.[1][2] Compare those listed weights directly when storage is your constraint; do not treat either figure as a complete download size or installation budget.
Cross-Encoder’s model has 33M parameters and a context length of 512 tokens.[1] Use cross-encoder/ms-marco-MiniLM-L12-v2 as its Hugging Face identifier. The context limit is a practical selection criterion: check the inputs you intend to rerank against that window before choosing the model. Include representative inputs in that check so the choice reflects what your application will actually send to the model. A compact weight footprint does not compensate for inputs that exceed the supported context.
Alibaba NLP’s alternative has 150M parameters and an 8K-token context window.[2] The tradeoff is therefore concrete: Cross-Encoder offers fewer parameters and smaller listed F32 weights, while Alibaba NLP offers a longer context.[1][2] Choose according to the input length your application needs and the weight footprint you want to accommodate. Parameter counts alone do not establish which model ranks your documents more accurately. A longer supported context is a capacity difference, not evidence of a ranking-quality advantage.
For a hypothetical 4-bit representation, Cross-Encoder’s weight storage is estimated at 16.5 MB, calculated as 33M parameters × 0.5 bytes per parameter.[1] That estimate covers parameter storage alone. Runtime overhead requires a separate budget, and the calculation does not establish a measured VRAM requirement. The listed F32 weight size likewise describes weights rather than a complete installation or execution footprint. Do not label the estimate as observed GPU usage.
Both models carry the Apache-2.0 licence.[1][2] Licence choice therefore provides no distinction between them here. Alibaba NLP’s model was first published on Hugging Face on January 20, 2025.[2] Cross-Encoder’s earlier publication date establishes its release chronology; it does not demonstrate compatibility with a particular runtime or superiority on a current workload. Use the licence and publication dates as descriptive properties, rather than substitutes for a workload evaluation.
The local recommendation is conditional but clear. Start with Cross-Encoder when your inputs fit its 512-token context and reducing the listed F32 weight footprint from 0.6 GB to 0.1 GB is the deciding requirement.[1][2] Choose Alibaba NLP when its 8K-token context better matches your inputs.[2] Treat ranking quality and execution memory as separate evaluation questions before committing either model to your application. Keep those checks explicit so a storage preference does not become an unsupported claim about execution.
2. gte-reranker-modernbert-base
gte-reranker-modernbert-base from Alibaba NLP is a reranker first published on Hugging Face on January 20, 2025 [2]. Its repository identifier is Alibaba-NLP/gte-reranker-modernbert-base. The model has 150M parameters, an 8K-token context window, F32 weights listed at 0.6 GB, and an Apache-2.0 licence [2]. Its case for local use rests on that context allowance, with a larger stated weight footprint than its competitor [1][2].
Cross-Encoder’s ms-marco-MiniLM-L12-v2 has 33M parameters, a 512-token context window, and F32 weights listed at 0.1 GB [1]. Alibaba NLP’s model therefore offers a longer context window while carrying more parameters and larger F32 weights [1][2]. The distinction matters when choosing between smaller stated weights and room for longer inputs. Those specifications do not establish a ranking-quality advantage, a latency advantage, or a particular hardware requirement.
For hypothetical quantized weights, estimated 4-bit weight storage is 75 MB, calculated as 150M parameters × 0.5 bytes per parameter [2]. Treat that figure as an arithmetic estimate of weight storage, not measured VRAM consumption or a complete download size. The listed 0.6 GB figure describes F32 weights [2]; neither figure establishes total runtime memory. A deployment decision still needs a measurement of the actual configuration you intend to run.
Licence terms provide no advantage over the smaller alternative: both models use Apache-2.0 [1][2]. Release timing also needs a narrow reading. Alibaba NLP’s model first appeared on Hugging Face on January 20, 2025 [2], while Cross-Encoder’s model first appeared on March 2, 2022 [1]. Those dates establish publication chronology; they do not demonstrate compatibility with particular software or better results on your workload.
Choose Alibaba NLP’s reranker when your input-length requirement exceeds the competitor’s 512-token context [1] and falls within its own 8K-token context [2]. The longer window is the concrete reason to accept its 0.6 GB F32 weights [2] over the alternative’s 0.1 GB [1]. For inputs that fit either window, the stated figures support Cross-Encoder when smaller weights decide the choice. Alibaba NLP remains the context-driven pick; its licence and weight footprint supply no separate advantage [1][2].
What hardware do you need for either model?
The cross-encoder/ms-marco-MiniLM-L12-v2 model from Cross-Encoder has 33M parameters [1]. Its estimated weight memory is 16.5 MB at 4-bit precision (parameters × 0.5 bytes) [1], or 33 MB at 8-bit precision (parameters × 1 byte) [1]. Those estimates describe parameter storage, not total GPU memory consumption. The listed F32 weights occupy 0.1 GB on disk [1]; that figure describes the weights rather than a complete installation or download.
Alibaba NLP’s Alibaba-NLP/gte-reranker-modernbert-base has 150M parameters [2]. Its estimated weight memory is 75 MB at 4-bit precision (parameters × 0.5 bytes) [2], or 150 MB at 8-bit precision (parameters × 1 byte) [2]. The listed F32 weights occupy 0.6 GB on disk [2]. Quantized weight estimates do not establish the size of an available download or guarantee that a particular runtime supports the chosen precision.
For smaller GPUs, Cross-Encoder’s model is the candidate with the lower estimated weight-memory requirement at either precision [1][2]. That advantage does not establish a minimum GPU capacity: total runtime memory requirements remain unquantified. Context also matters to the choice: Cross-Encoder’s model supports 512 tokens [1], while Alibaba NLP’s model supports 8K tokens [2]. Choose the smaller weight footprint when conserving memory is the priority [1][2], and consider the larger context window when your inputs require it [2].
Frequently Asked Questions
Which is better: Cross-Encoder’s cross-encoder/ms-marco-MiniLM-L12-v2 or Alibaba NLP’s Alibaba-NLP/gte-reranker-modernbert-base?
Choose cross-encoder/ms-marco-MiniLM-L12-v2 when reducing weight storage is your priority: its F32 weights are 0.1 GB, with a 512-token context [1]. Choose Alibaba-NLP/gte-reranker-modernbert-base when you need its 8K-token context; its F32 weights are 0.6 GB [2]. Those figures support a choice based on weight footprint and context, but they do not establish a ranking-quality winner. Evaluate relevance on your own queries and documents before deciding.
How much VRAM does each model need?
The listed F32 weight sizes are 0.1 GB for ms-marco-MiniLM-L12-v2 (Cross-Encoder) [1] and 0.6 GB for Alibaba-NLP/gte-reranker-modernbert-base [2]. Weight size alone does not establish total VRAM requirements or whether either model fits a particular GPU. Measure peak memory in your intended runtime with representative inputs and batching. Use the cited sizes to compare weights, and obtain a runtime measurement before setting a VRAM budget.
What are the licences, and can I use either model commercially?
Both ms-marco-MiniLM-L12-v2 (Cross-Encoder) and Alibaba-NLP/gte-reranker-modernbert-base list Apache-2.0 [1][2]. Apache-2.0 permits commercial use subject to its terms [1][2]. The declared licence therefore does not distinguish these models for a commercial deployment. Review the licence terms when preparing your application for distribution, and assess ranking quality, context needs and deployment requirements separately. A matching licence does not establish matching model behaviour or integration requirements.
Can either model run on a CPU?
CPU execution is unverified in this comparison, so neither model receives a CPU deployment recommendation. Confirm support in your intended runtime and measure latency on representative query-document pairs. The parameter counts are 33M for ms-marco-MiniLM-L12-v2 (Cross-Encoder) [1] and 150M for Alibaba-NLP/gte-reranker-modernbert-base [2]. Those counts describe model scale; they do not establish CPU compatibility, throughput or acceptable latency for your application.
What will running either model locally cost?
A monetary running cost cannot be inferred from the listed weight sizes. ms-marco-MiniLM-L12-v2 (Cross-Encoder) has 0.1 GB of F32 weights [1], while Alibaba-NLP/gte-reranker-modernbert-base has 0.6 GB [2]. Neither figure establishes complete download size, runtime memory use or electricity cost. Build your budget around measured resource use and your own hardware and energy prices. Both models declare Apache-2.0 [1][2]; that licence information alone does not calculate deployment cost.
Can I switch models later?
Treat a later switch as an integration change that needs validation. Keep the exact repository identifiers in your configuration: cross-encoder/ms-marco-MiniLM-L12-v2 [1] and Alibaba-NLP/gte-reranker-modernbert-base [2]. Recheck input handling and relevance before replacing either model. Context limits differ: 512 tokens for the Cross-Encoder model [1] and 8K tokens for the Alibaba NLP model [2]. Those specifications do not establish interchangeable interfaces, equivalent rankings or unchanged runtime memory requirements.
Sources
- cross-encoder/ms-marco-MiniLM-L12-v2 model card (Hugging Face) — 2026-11-11 · ms-marco-MiniLM-L12-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