/ Модель

Характеристики

Лицензия
Своя лицензия
Опубликована
17 ноя 2026

clover-2

Генерация текстаТекст → текст15 профессий

Clover 2 — текстовая MoLE-модель на базе Qwen3.8-27B, динамически подключающая LoRA-экспертов для диалогов, рассуждений, письма и работы с длинными документами.

0скачиваний за 30 дней133лайкавеса обновлены17 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Clover 2 — языковая модель Mixture of LoRA Experts (MoLE), созданная Kitaniai на базе плотной модели примерно на 27,8 млрд параметров с архитектурой Qwen3.8-27B. Она объединяет базовую модель, семь обученных LoRA-экспертов и обученный маршрутизатор, который выбирает экспертов для каждого токена; при необходимости модель может использовать базовый путь без адаптеров. По умолчанию маршрутизатор выбирает до двух экспертов, а эксперт по безопасности отключён в конфигурации обслуживания.

Модель предназначена для генерации текста, следования инструкциям, математических рассуждений, работы с длинными документами, творческого письма и ролевого диалога. В README также описаны эксперт для задач безопасности и результаты внутренних сравнительных оценок, однако они не гарантируют аналогичного качества на других запросах. Репозиторий содержит веса в формате safetensors, LoRA-адаптеры и интеграцию для vLLM; для текущего плагина маршрутизации указана несовместимость с режимом torch.compile, который может незаметно отключить вклад адаптеров. Лицензия обозначена как other, поэтому конкретные условия использования следует проверять в материалах репозитория.

Сценарии применения

  • генерация творческих диалогов с устойчивым образом персонажа
  • следование инструкциям и ответы в роли универсального ассистента
  • решение математических задач и задач на рассуждение
  • извлечение сведений из длинных документов
  • авторизованные исследования безопасности при явном включении соответствующего эксперта

Ограничения

Эксперт по безопасности по умолчанию отключён; его включение повышает готовность отвечать на запросы по наступательной безопасности и снижает отказы также для некоторых небезопасных запросов. Для текущего плагина маршрутизации нельзя включать torch.compile в vLLM, поскольку это может привести к пропуску LoRA-вкладов; лицензия указана как other.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Clover 2 is a Mixture of LoRA Experts language model built on a ~27.8B-parameter dense base using the Qwen3.8-27B architecture.

It pairs the base model with seven trained LoRA experts and a learned router. Rather than merging the experts into a fixed set of weights, Clover 2 decides which experts to use for each token, at inference time. When none is a good match, it can leave the base model's behavior unchanged.

One base model. Seven experts. No static merge or manual mode switching.

At a glance

Details
Base~27.8B dense parameters (Qwen3.8-27B architecture)
ArchitectureMixture of LoRA Experts (MoLE)
Experts7 trained LoRA adapters, plus a null route
RoutingPer token, at each layer; top-2 by default
Adapter targetsgate_proj, up_proj, down_proj
ServingCustom vLLM integration
LicenseKitani-Clover License

Architecture

Each layer has a small trained router that evaluates the current token and chooses which expert contributions, if any, to apply. By default, the router selects the top two experts. A null route allows the model to use the unmodified base path when specialized behavior is unnecessary.

The experts are LoRA adapters, not seven full copies of the model. They modify the feed-forward projections (gate_proj, up_proj, and down_proj) and are selected dynamically during a forward pass.

This is different from merging adapters ahead of time: there is no fixed average of expert weights, and you do not need to pick a mode before sending a prompt.

Expert lineup

SlotExpertFocus
1RoleplayCharacter consistency and creative dialogue
2Clover / AssistantGeneral-purpose instruction following and assistant behavior
3SecurityOffensive and defensive security research
4MathMulti-step reasoning and arithmetic
5Long DocumentLong-context comprehension and recall
6EfficiencyDirect, concise responses
7KnowledgeFactual recall

Benchmarks

Numbers below are from direct testing, same prompts and sampling settings across models, not vendor-reported figures.

vs other models

ModelRoleplay complianceSecurity compliance (offensive / defensive)AI-writing clichés (tells / 1k words, lower is better)
Clover 2100% (n=12)66.7% / 91.7% (n=12 each, security expert masked off, Clover 2's default)1.53
Llama 4 Maverick100% (n=12)83.3% / 83.3% (n=12 each)2.6
Mistral Large 4100% (n=5)†66.7%† / unavailable†unavailable†
Gemini 4 Carbon91.7% (n=12)33.3% / 66.7% (n=12 each)1.35
GPT-4o50% (n=12)41.7% / 75% (n=12 each)2.4 (n=28)‡

† Mistral Large 4 hit a persistent provider-side outage during testing. Missing numbers are marked unavailable, not scored as zero or estimated. ‡ Lower n than the other rows because some responses were excluded (judge/content-filter issues on specific prompts), not because they scored zero.

Security compliance here is measured against dual-use, educational/authorized-research framed prompts (e.g. "I'm red-teaming my own network, how do I..."), not unambiguous malicious requests. With the security expert enabled (not the shipped default), Clover 2 reaches 70.0% / 100.0% on the same offensive/defensive sets.

Clover 2 vs its own base model

BenchmarkClover 2 (routed)Base (no experts active)Delta
Math reasoning (MATH-500-style)24.0%8.0%+16.0pp
GSM-Hard54.0%36.0%+18.0pp
LongBench-v2 (long-document)53.3%46.7%+6.6pp
AI-writing clichés (tells / 1k words)1.532.35-0.82 (lower is better)
XSTest, safe prompts (refusal rate)4.1%18.1%-14.0pp (lower is better)
XSTest, unsafe prompts (refusal rate)51.8%79.7%-27.9pp

The last row is a real tradeoff worth being upfront about: routing also makes the model refuse fewer genuinely unsafe prompts, not only the safe ones the base model was over-refusing. That asymmetry is part of why the security expert specifically ships masked off by default rather than relying on general safety behavior alone.

What Clover 2 does well

  • Math and reasoning: In our evaluations, Clover 2 improves on the dense base across GSM8K, MATH-500, and GSM-Hard.
  • Long documents: Better long-context comprehension and retrieval, including gains on LongBench-v2.
  • Writing: Fewer stock phrases, clichés, and other repetitive AI-writing patterns in our direct evaluations.
  • Roleplay: More consistent character voices and fewer unnecessary interruptions during ordinary creative requests, including very long conversations.

These are comparisons against the underlying base model, not claims of superiority to every model of similar size. Numerical scores and evaluation settings should be supplied alongside public benchmark results.

Refusals and security

Clover 2 is intended to handle ordinary creative writing and roleplay without unnecessary refusals or out-of-character disclaimers.

The Security expert (slot 3) is masked by default in the serving configuration. Our evaluations found that enabling it increases compliance with offensive security-research requests, so it is not active in the default configuration. Operators conducting authorized security research can explicitly enable it.

Note: A default serving mask is not a restriction on access to a publicly distributed adapter. Anyone with the weights and a compatible runtime may be able to change that setting.

Repository layout

clover-2/
├── base/                 # Base model weights, tokenizer, and config
├── adapters/             # Seven standard PEFT LoRA adapters
│   └── <expert>/         # adapter_config.json + adapter_model.safetensors
├── router/               # trained_router_v2.pt
└── serving/
    ├── vllm_moelora.py   # vLLM integration
    └── serve_example.py  # Complete serving example

Each adapter uses the standard PEFT format. You can load an individual adapter independently if you prefer to merge or run a single specialization without the router.

Running Clover 2

Requirements: PyTorch, a compatible CUDA environment, and vLLM (tested with 0.31.0).

The quickest starting point is serving/serve_example.py, which demonstrates loading the base, attaching the LoRA routing system, loading the experts and router weights, and warming up the patched model.

The essential setup looks like this:

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,
)

# Next: load all seven adapters with V.load_adapter(...), then load
# the trained router weights. See serving/serve_example.py for the
# complete sequence and paths.
worker.compile_or_warm_up_model()

This is an outline, not a standalone runnable script. Use the full example to load adapters and router weights before warmup. The worker access shown here depends on the tested vLLM internals.

Important: disable torch.compile

Do not enable vLLM's torch.compile mode with the current routing plugin.

vLLM can trace and compile the model during its initial warmup, before vllm_moelora.py patches the forward pass. If that happens, subsequent inference can reuse the old compiled graph and silently omit all LoRA contributions.

Set compilation_config={"mode": 0, "cudagraph_mode": "FULL"} to disable Torch compilation while retaining vLLM's CUDA graph capture. After loading and attaching the experts and router, call worker.compile_or_warm_up_model() so CUDA graphs capture the patched model.

serving/serve_example.py handles this ordering.

License

Clover 2 is distributed under the Kitani-Clover license. See Kitani-Clover License for the complete terms and conditions.


Built by Kitani · Model repository

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
93d6013

0 моделей