---
title: "What Is Clover 2? Mixture of LoRA Experts Explained"
url: "https://goremy.ai/blog/articles/clover-2-mixture-of-lora-experts-explained"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-24T06:20:11.158Z"
updated: "2026-11-24T06:20:11.158Z"
topic: Local AI
description: Clover 2 adds seven LoRA experts and a per-token router to a 27.8B base. See benchmarks vs the base, the masked security expert, and the vLLM setup.
---

# What Is Clover 2? Mixture of LoRA Experts Explained

> Clover 2 adds seven LoRA experts and a per-token router to a 27.8B base. See benchmarks vs the base, the masked security expert, and the vLLM setup.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-24

## What is Clover 2?

Clover 2 is an open-weight language model from Kitani. It is built on a dense base model of about 27.8 billion parameters (the Qwen3.8-27B architecture) and adds seven small trained add-ons called LoRA experts, plus a learned router. For every token it generates, the router decides which experts to apply, or none at all. You do not pick a mode before you send a prompt, and the experts are not merged into fixed weights.

## TL;DR

- Clover 2 is a **Mixture of LoRA Experts** model: one ~27.8B base, seven LoRA adapters, and a router that chooses among them per token, at each layer, with top-2 selection by default.
- Against its own base with no experts active, the model card reports **large gains on math** (+16.0 points on a MATH-500-style test, +18.0 on GSM-Hard) and a smaller gain on long documents (+6.6 points on LongBench-v2).
- Routing also cut refusals on safe prompts from 18.1% to 4.1%, but **refusals on unsafe prompts dropped too**, from 79.7% to 51.8%. That is a real tradeoff.
- The **Security expert is masked off by default**, and the weights are public, so anyone with a compatible runtime may be able to turn it on.
- To serve it, you need vLLM (tested with 0.31.0) and you must **disable torch.compile**, or the LoRA contributions can be silently dropped.
- The benchmarks are the developer's own direct tests, and several use only 12 prompts per cell, so treat them as directional.

## How does Clover 2's per-token routing work?

A LoRA (low-rank adaptation) is a small set of extra weights trained on top of an existing model. It nudges the model toward a skill without retraining or copying the whole thing. Clover 2 trains seven of them and keeps them separate.

Each layer of the model has a small trained router. It looks at the current token and picks which expert contributions to add. By default it picks the top two. There is also a **null route**, which lets the model use the unmodified base path when no specialty fits.

The experts act on the feed-forward projections inside each layer (`gate_proj`, `up_proj`, `down_proj`). They are not seven full copies of the model, so the total footprint is the base plus seven adapters, not eight models.

The usual alternative is to merge adapters ahead of time into one fixed set of weights, or to switch between adapters by hand. Clover 2 avoids both. The model card's summary: one base model, seven experts, no static merge, no manual mode switching.

## What are the seven experts?

| Slot | Expert | Focus |
|---|---|---|
| 1 | Roleplay | Character consistency and creative dialogue |
| 2 | Clover / Assistant | General instruction following and assistant behavior |
| 3 | Security | Offensive and defensive security research |
| 4 | Math | Multi-step reasoning and arithmetic |
| 5 | Long Document | Long-context comprehension and recall |
| 6 | Efficiency | Direct, concise responses |
| 7 | Knowledge | Factual recall |

Because routing happens per token, a single reply can lean on different experts at different points. A story that includes a calculation, for example, could draw on Roleplay for the voice and Math for the numbers. The card describes the design but does not publish a breakdown of which experts fire on which tasks, so that is the intent, not a measured result.

## How does Clover 2 compare to its own base model?

This is the cleanest comparison in the card: Clover 2 with routing versus the same base with no experts active.

| Benchmark | Clover 2 (routed) | Base | Change |
|---|---|---|---|
| Math reasoning (MATH-500-style) | 24.0% | 8.0% | +16.0 points |
| GSM-Hard | 54.0% | 36.0% | +18.0 points |
| LongBench-v2 (long documents) | 53.3% | 46.7% | +6.6 points |
| AI-writing clichés per 1,000 words | 1.53 | 2.35 | -0.82 (lower is better) |
| XSTest, safe prompts refused | 4.1% | 18.1% | -14.0 points (lower is better) |
| XSTest, unsafe prompts refused | 51.8% | 79.7% | -27.9 points |

Three things to keep in mind when reading this.

First, the math gains are big in relative terms, but 24.0% on a MATH-500-style test is still a low absolute score. The card does not list how many questions each benchmark used, so you cannot judge how much noise is in a gap like 24% versus 8%.

Second, the card says plainly that these are comparisons against the underlying base, not claims that Clover 2 beats every model of similar size.

Third, "AI-writing clichés" counts stock phrases per 1,000 words. A drop from 2.35 to 1.53 means fewer repetitive tells in the text. It does not tell you the writing is better in every other way.

## How does Clover 2 stack up against other models?

Kitani tested several other models with the same prompts and sampling settings. These are direct tests, not vendor-reported figures.

| Model | Roleplay compliance | Security compliance (offensive / defensive) | Clichés per 1k words |
|---|---|---|---|
| Clover 2 | 100% (n=12) | 66.7% / 91.7% (security expert masked) | 1.53 |
| Llama 4 Maverick | 100% (n=12) | 83.3% / 83.3% | 2.6 |
| Mistral Large 4 | 100% (n=5) | 66.7% / unavailable | unavailable |
| Gemini 4 Carbon | 91.7% (n=12) | 33.3% / 66.7% | 1.35 |
| GPT-4o | 50% (n=12) | 41.7% / 75% | 2.4 (n=28) |

Mistral Large 4 hit a provider outage during testing, so its missing numbers are marked unavailable rather than estimated. GPT-4o's cliché score uses fewer samples because some responses were excluded for judge or content-filter issues.

What stands out: Clover 2 and Llama 4 Maverick both reach full roleplay compliance, while GPT-4o sits at 50%. Gemini 4 Carbon has a lower cliché count (1.35 versus 1.53). Llama 4 Maverick beats Clover 2 on offensive security compliance with the expert masked. With only 12 prompts per cell, one prompt moves a score by about 8 points, so small gaps mean little.

"Security compliance" here means answering dual-use prompts framed as authorized research, such as "I'm red-teaming my own network, how do I...". It does not measure responses to clearly malicious requests.

## What is the refusal tradeoff?

The card is upfront about this. Routing reduced over-refusal: the base refused 18.1% of safe prompts on XSTest, and Clover 2 refuses 4.1%. That means fewer unnecessary "I can't help with that" replies and fewer out-of-character disclaimers in creative work.

But the same shift lowered refusals on genuinely unsafe prompts, from 79.7% to 51.8%. The model got more willing across the board, not only on the prompts it was wrongly blocking. If you plan to put Clover 2 in front of users, do not assume general safety behavior will catch problem requests. Add your own filtering and logging.

## Why is the Security expert masked by default?

Kitani's evaluations found that turning on the Security expert (slot 3) raises compliance with offensive security-research requests. With it enabled, Clover 2 reaches 70.0% on the offensive set and 100.0% on the defensive set, versus 66.7% and 91.7% with it masked.

So the default serving configuration masks it. Operators doing authorized security work can enable it deliberately.

The card adds an important caveat: a default mask is not an access restriction. The adapters are publicly distributed in standard PEFT format, so anyone with the weights and a compatible runtime may be able to change the setting. Think of the mask as a sensible default, not a lock.

## How do you serve Clover 2 locally?

Clover 2 uses a custom vLLM integration. vLLM is a widely used open-source engine for running language models efficiently. The card lists these requirements: PyTorch, a compatible CUDA environment (an Nvidia GPU setup), and vLLM, tested with version 0.31.0.

The card does not list VRAM requirements. As rough arithmetic, a 27.8B model in bfloat16 needs about 56 GB just for the base weights (two bytes per parameter), before the adapters and memory for context. Plan for a large GPU or several smaller ones.

The repository is laid out like this:

```text
clover-2/
├── base/        # base weights, tokenizer, config
├── adapters/    # seven standard PEFT LoRA adapters
├── router/      # trained_router_v2.pt
└── serving/
    ├── vllm_moelora.py
    └── serve_example.py
```

Start from `serving/serve_example.py`. The outline looks like this:

```python
from vllm import LLM
import vllm_moelora as V

llm = LLM(
    model="./base",
    dtype="bfloat16",
    compilation_config={"mode": 0, "cudagraph_mode": "FULL"},
)

worker = llm.llm_engine.model_executor.driver_worker.worker
moles = V.attach(
    worker.model_runner.model,
    n_experts=7,
    rank=128,
    scaling=2.0,
    topk=2,
)

# Load all seven adapters with V.load_adapter(...), then the router weights.
worker.compile_or_warm_up_model()
```

This is an outline, not a runnable script. The full example loads the adapters and router before warmup, and the worker access shown depends on the tested vLLM internals, so a different vLLM version may break it.

### Why must you disable torch.compile?

vLLM can trace and compile the model during warmup, before the Clover plugin patches the forward pass. If that happens, later inference reuses the old compiled graph and **silently leaves out every LoRA contribution**. You would be running the plain base model, with no error telling you so.

The fix is the setting in the code above: `compilation_config={"mode": 0, "cudagraph_mode": "FULL"}`. It turns off Torch compilation but keeps CUDA graph capture. Then, after attaching the experts and loading the router, call `worker.compile_or_warm_up_model()` so the graphs capture the patched model. A cheap sanity check is to run a math prompt and compare against the base. If the outputs look identical, the experts are probably not active.

You can also load one adapter on its own, since each uses the standard PEFT format. That lets you merge a single specialty or run it without the router.

## What does this mean for you?

**If you are a non-technical user,** Clover 2 is not a product you open in a browser. It is a model that someone has to host. The practical takeaway is the design idea: instead of one model tuned for everything, a base plus small specialists chosen on the fly. Expect to see more of it.

**If you manage a team that wants to run models in-house,** the useful facts are the license (Kitani-Clover, so read the terms before commercial use), the hardware needs, and the safety profile. The refusal numbers mean you should not treat it as a drop-in replacement for a more conservative model in customer-facing settings.

**If you evaluate models for work,** do not rely on a vendor's table, including this one. Run your own prompts from your own tasks, in both configurations (routed and base), and record the results. The card's own sample sizes show how easily small tests mislead.

## Can you build a tracker for comparing models without another subscription?

If you end up testing Clover 2 against other models, the work gets messy fast: prompts in one file, outputs in another, scores in a spreadsheet nobody updates. A small internal app can hold all of it. With [Remy](https://goremy.ai), you can describe an evaluation tracker in plain English: a form to add test prompts, fields to paste each model's output, a score and notes column, and sign-in so only your team sees it. Remy builds and deploys it as a full-stack app with a database, and the code lives in a git repo you own. You describe the tracker once instead of paying for another tool.

## Frequently Asked Questions

### Is Clover 2 a Mixture of Experts model like the large sparse models?

Not in the same sense. Its experts are small LoRA adapters layered on a dense 27.8B base, not separate full feed-forward blocks. The router still picks experts per token at each layer, which is why it is called a Mixture of LoRA Experts.

### Can I use Clover 2 without the router?

Yes. Each of the seven adapters is in standard PEFT format, so you can load one on its own, merge it, or run a single specialization. You lose the per-token routing and the null route when you do.

### Does Clover 2 beat other models of its size?

The card does not claim that. Its benchmarks compare Clover 2 to its own base and to a handful of other models on narrow tests, often with 12 prompts per cell. Run your own tests before choosing it.

### What happens if I leave torch.compile on?

vLLM may compile the model before the routing plugin patches it, and later inference can reuse that stale graph. The LoRA contributions are then silently omitted, so you get base-model behavior with no warning.

### Is the Security expert safe to enable?

It raises compliance with offensive security-research requests, which is why it ships masked. Enable it only for authorized work, and remember that the mask does not stop others from changing the setting on their own copy of the weights.
