/ Модель

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

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
clewen · dense
Базовая модель
clef
Библиотека
transformers
Опубликована
6 окт 2026

clewen-flash

Генерация текстаТекст → текст

Мультимодальная модель, объединяющая Qwen3.5-9B и Clef-Flash для диалога, анализа изображений и структурированных решений с вызовом инструментов.

128скачиваний за 30 дней0лайковвеса обновлены7 окт 2026

Бенчмарки

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

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

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

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

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

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

Clewen-Flash — мультимодальная модель salyamq, объединяющая текстовую и визуальную модель Qwen3.5-9B с моделью структурированных решений Cloudflare Clef-Flash на общей основе. По карточке, модель поддерживает диалог и работу с изображениями; режим решения принимает также JSON и выдаёт структурированные решения, включая выбор инструментов. Для режима решений использованы восстановленные переключаемые адаптеры и исходная совместная schema head Clef; дополнительного обучения не проводилось, а восстановленные адаптеры лишь приближённо воспроизводят обученные изменения.

Модель предназначена для обработки запросов с текстом, изображениями и JSON, а также для агентных сценариев с вызовом инструментов. В README приведены результаты оценки структурированных решений на BFCL, API-Bank и BANKING77; они не характеризуют качество генерации текста. Модель распространяется в формате safetensors под лицензией Apache-2.0.

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

  • структурированный выбор действий для вызова API
  • классификация пользовательских запросов по намерениям
  • диалог с передачей изображений на анализ
  • обработка запросов в формате JSON
  • агентные сценарии с выбором инструментов

Ограничения

Восстановленные адаптеры приближённо воспроизводят обученные изменения, а качество генерации текста в README не оценивалось. Приведённые бенчмарки относятся к структурированным решениям.

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

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

Открыть на Hugging Face

Clewen-Flash

Clewen-Flash combines Qwen3.5-9B text and image generation with Cloudflare Clef-Flash structured decisions, sharing one backbone. The decision mode uses recovered switchable adapters and the original Clef joint schema head. No additional training was performed. Recovered adapters approximate the learned changes; they are not the original LoRA factors.

Usage

Both modes support text and images. Decision inputs can also contain JSON. Modes are selected explicitly:

  • Qwen: text generation and image understanding.
  • Clef: structured answers with probabilities for choice, noul (yes/no), and score questions.

Required runtime packages:

torch==2.10.0
torchvision==0.25.0
transformers==5.10.2
huggingface-hub>=1.5,<2
accelerate>=1.12,<2
safetensors>=0.6,<1
pillow>=11,<13
numpy>=2,<3

The clewen[cuda] installation below also installs flash-linear-attention[cuda]==0.5.2 and a prebuilt causal-conv1d==1.7.0 wheel for Python 3.11 or 3.12.

Use Transformers 5.10.2. Older versions such as 4.56.0 fail to import PreTrainedConfig from this release. In Jupyter, use %pip instead of pip in the commands below, then restart the kernel and rerun the imports after installation.

Install on Linux with Python 3.11 or 3.12 and a CUDA GPU:

pip install torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128
pip install "clewen[cuda] @ git+https://github.com/salyamq/clewer.git"
from PIL import Image
from transformers import AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "salyamq/clewen-flash",  # or "salyamq/clewen"
    trust_remote_code=True,
    device_map="cuda",
    dtype="bfloat16",
)

# 1. Qwen: text generation
reply = model.text(
    [{
        "role": "user",
        "content": "Explain gradient descent in plain language and give one simple example.",
    }],
    max_new_tokens=256,
)
print(reply["answer"])

# 2. Clef: structured decision from text
result = model.decision({
    "state": "I was charged twice for my monthly subscription. Please refund the duplicate charge.",
    "questions": {
        "department": {
            "type": "choice",
            "instructions": "Which support department should handle this request?",
            "criteria": {
                "billing": "Payments, invoices, subscriptions, and refunds.",
                "technical": "Software errors, connection issues, and service outages.",
                "account": "Login, passwords, and account access.",
            },
        },
    },
})
print(result["answers"]["department"])

# 3. Qwen: text generation from a photo
image = Image.open("example.jpg").convert("RGB")
reply = model.text(
    [{
        "role": "user",
        "content": [
            {"type": "image", "image": image},
            {"type": "text", "text": "Describe this photo in two sentences."},
        ],
    }],
    max_new_tokens=128,
)
print(reply["answer"])

# 4. Clef: structured decision from a photo
result = model.decision({
    "state": "Inspect the attached photo and decide whether a cat is visible.",
    "images": [image],
    "questions": {
        "cat_visible": {
            "type": "noul",
            "instructions": "Is at least one cat visible in the photo?",
        },
    },
})
print(result["answers"]["cat_visible"])

For text or JSON decisions, omit images and put your information in state. Both modes use the same loaded model instance.

Results

Decision-mode scores from complete evaluation runs. Scores are percentages; higher is better. Workflow exact-action scores require the complete action set to match the reference labels.

Benchmark / metricClewenClewen-FlashClefClef-FlashJevDiffusionGemma JevKev 9BLaya
BFCL — case exact accuracy98.4198.8898.598.895.896.594.538.1
API-Bank — accuracy91.7393.1191.993.188.283.756.311.5
BANKING77 — macro-F194.0890.8094.290.979.774.384.814.3
RAGTruth — hallucination F179.3035.7479.435.676.570.446.248.8
When2Call MCQ — accuracy72.4865.3672.465.681.075.449.611.9
Invoice processing — exact actions64.6757.1164.757.161.8———
Invoice processing — primary action86.4474.2286.273.383.1———
Customer service — exact actions76.3176.9676.377.076.0———
Security incidents — exact actions63.3361.6762.961.761.7———
Agent trace observability — primary action68.4769.8268.569.871.6———
Decision latency — median, ms ↓142.3078.06209.338.8524.184.451.45.8
Decision latency — p95, ms ↓274.15111.26238.6122.4536.0211.2187.9222.5

Latency was measured on one H200 in BF16 across the five Decision Index benchmarks. It includes input encoding and answer decoding, excluding model loading and warmup. These evaluations measure structured decisions, not text-generation quality.

License

Apache-2.0. Qwen components are credited to the Qwen authors; Clef components are credited to Cloudflare. See LICENSE, LICENSE-QWEN, LICENSE-CLEF, and NOTICE for attribution and license details.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
ClewenModel
Ревизия весов
6627df5

0 моделей