/ Модель

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

Контекст
262 144 токена
Параметры
7,2 млрд
Размер весов
17,9 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-9B-Base
Библиотека
transformers
Опубликована
27 сен 2026

CrossbowReviewer-9B

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

CrossbowReviewer-9B — дообученная модель для типизированной проверки кода по набору правил качества, которая выдаёт решения и оценки уверенности без текста рецензии.

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

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

CrossbowReviewer-9B 1.1 — модель для автоматизированного анализа кода, разработанная Riposta на базе Qwen3.5-9B-Base. Это дообученная плотная авторегрессионная модель семейства Qwen3.5 с 7,2 млрд параметров и контекстом до 262 144 токенов. Она оценивает код по встроенным правилам и выдаёт типизированные решения: да или нет, выбор из вариантов либо оценку с распределением вероятностей и калиброванной уверенностью. Текст рецензии модель не генерирует; вопросы обрабатываются за один проход. Доступны веса BF16 в Safetensors и версия Q8_0 в GGUF; лицензия — Apache-2.0.

Модель предназначена для проверки отдельных файлов или фрагментов кода по правилам проектирования и SOLID, корректности, обработки ошибок, безопасности, производительности, читаемости, тестируемости, тестирования и API. Она поддерживает Java, Python, TypeScript, JavaScript, Go, C# и Rust. Практически лучше применять её для правил проектирования, читаемости, корректности, тестирования и идиом языка; результаты можно получать через совместимый с Jev endpoint `/v1/systemone`.

Оценка безопасности ограничена: модель слабо отслеживает потоки данных и может ошибаться на безопасных примерах, похожих на уязвимые. Проверки инъекций, обхода путей, XSS, SSRF и открытых перенаправлений требуют дополнительной проверки человеком или более сильной reasoning-моделью. Данные обучения преимущественно синтетические или размечены LLM; оценка на реальном коде охватывает небольшую выборку. Модель рассматривает один файл за раз, не анализирует diff и не видит остальную кодовую базу; качество произвольных пользовательских вопросов не измерено. Запросы и документация ориентированы на английский язык.

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

  • проверка Python-кода на корректность и читаемость
  • оценка соблюдения принципов SOLID и правил проектирования
  • поиск проблем обработки ошибок и тестируемости в файле
  • проверка идиом Java, TypeScript, JavaScript, Go, C# и Rust
  • предварительная оценка кода по правилам безопасности с последующей проверкой человеком

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

CrossbowReviewer-9B 1.1

Calibrated code review decisions in one forward pass. It asks up to 107 rules per file, runs in ~0.2 s on an A100 and in ~3 s on a Mac with the Q8_0 GGUF.

CrossbowReviewer-9B fine-tunes Qwen3.5-9B-Base for Jev-style typed decisions about code. It writes no review text. For each question, such as "is this free of SQL injection?" or "does each class have one reason to change?", it returns a choice, a calibrated confidence and the full distribution. Its inference server provides a /v1/systemone endpoint that follows the Jev request schema.

Inference server · Quickstart · Architecture · Benchmarks · Artifact manifest · 1.0 is kept under the v1.0 tag.

What's new in 1.1

Same architecture, format and API as 1.0 (drop-in replacement). The training data and recipe changed.

1.01.1
Training data1 466 synthetic snippets4 866 samples: synthetic + 445 vulnerable/fixed pairs with a verified contrast + 900 real-code files with soft labels
LoRArank 16, alpha 32, lr 1e-4rank 32, alpha 64, lr 5e-5
Temperature1.0441.122
Evaluationmacro per-rule metricspooled metrics, cluster bootstrap, paired tests, a held-out OWASP set, vuln/fix pairs

Measured improvements (1.1 vs 1.0, paired, 95% CI):

TestResult
Vulnerability/fix pairs (98)pair accuracy 0.04 → 0.235; vulnerable flagged 0.05 → 0.39; ΔMCC +0.16 (+0.04, +0.30)
Real codeAUC 0.938 → 0.961 (Δ +0.023, CI +0.014…+0.032); AP 0.58 → 0.71; MCC 0.47 → 0.51 (CI includes 0)
OWASP safe-recognized (taint traps)0.26 → 0.55 on the 435 set, 0.32 → 0.42 on the held-out set
Calibration on security dataECE 0.24 → 0.15–0.17
Syntheticunchanged (MCC 0.72 both)

Not improved, said plainly: on an independent held-out OWASP set (429 cases) 1.1 and 1.0 are equal (MCC 0.34 both), and the untuned Qwen3.5-9B-Base is as good (0.39). Data-flow security is not something this model learns in one pass. See docs/BENCHMARKS.md for all tables.

Pooled MCC

Features

  • Typed decisions: noul (yes/no), choice (up to 26 options) and score (2–10 levels), asked against the code as state.
  • One pass: all questions share one prefill. Option-letter logits are read at each answer slot, so no answer text is generated.
  • 120 built-in rules: SOLID and design principles, patterns and anti-patterns, correctness, error handling, security (OWASP / CWE), performance, readability, clean code, testability, testing, API design and language idioms. Two aggregate questions are included (primary_category, severity).
  • 7 languages: Java, Python, TypeScript, JavaScript, Go, C#, Rust.
  • Full weights: no adapter and no conversion step. Safetensors work with transformers; GGUF works with llama.cpp.

Architecture

Qwen3.5-9B-Base (32 layers, 8 × (3 Gated DeltaNet + 1 Gated Attention), hidden 4096) with a rank-32 LoRA merged into the weights. No added layers or heads: all questions go in one prompt, the logits of the option letters are read at every Answer: slot in a single forward pass, and a fitted temperature turns them into calibrated probabilities.

Architecture

Details, base-model table and training recipe: docs/ARCHITECTURE.md.

Downloads

FilesFormat and useSize
model-0000{1..4}-of-00004.safetensors + configsBF16 safetensors. transformers backend (CUDA, Apple MPS, CPU)17.9 GB
gguf/CrossbowReviewer-9B-Q8_0.ggufQ8_0 GGUF. llama.cpp backend; fits 12 GB GPUs and Apple Silicon9.5 GB

decision_config.json holds what turns logits into decisions: the fitted temperature (1.122), the option letters and the prompt format. Both backends read it. If you cache 1.0's decision_config.json, refresh it.

Parity: the merged safetensors match base + LoRA on 1026/1030 decisions (mean |Δp| 0.002); the Q8_0 GGUF matches the safetensors predictions on 40/40 decisions (mean |Δp| 0.008).

Quick start

git clone https://github.com/riposta/CrossbowReviewer && cd CrossbowReviewer
uv run uvicorn server:app --port 8000     # transformers backend; downloads this repo on first request
curl -s localhost:8000/v1/systemone -H 'content-type: application/json' \
  -d '{"state": {"language": "python", "code": "def add(items=[]):\n    items.append(1)\n    return items"}}'

Without questions, every rule for state.language is asked. yes means compliant:

{"decisions": {"py_mutable_default": {"choice": "no", "confidence": 0.98, "distribution": {"yes": 0.02, "no": 0.98}}, "...": "..."}}

To pin 1.0, use revision="v1.0" in from_pretrained or hf download --revision v1.0. For llama.cpp, custom questions and all options, see docs/QUICKSTART.md.

Comparison

Pooled MCC (1 = perfect, 0 = chance), 95% cluster-bootstrap CI in docs/BENCHMARKS.md:

SystemSyntheticReal codeOWASP held-outVuln/fix pairs
CrossbowReviewer 1.10.720.510.340.24
CrossbowReviewer 1.00.720.470.340.08
Qwen3.5-9B-Base (zero-shot)0.26−0.130.390.05
Jev 1.14.0 (latest)0.580.250.340.10
Jev 1.13.00.570.25––
basal-omni-1.0-max (zero-shot)0.600.260.50¹0.14
Claude Opus 5.5 (reasoning)0.850.670.94¹–
GPT-6 Sol (reasoning)0.800.84²0.77¹–

¹ OWASP 435-case set (held-out set not run for these systems). ² Real-code labels come from frontier judges of the same families, so frontier scores there are likely inflated.

  • Calibration: ECE is 0.010 on synthetic and 0.014 on real code. When the model says 0.9, it is right about 90% of the time.
  • Latency: reasoning models are better on security, but 25–50× slower (8–10 s per file versus ~0.2 s).

Limitations — read before use

Security taint traps. On OWASP the model flags 74–88% of vulnerable cases and recognizes only 42–55% of the safe cases built to look vulnerable (tainted input reaching only a dead branch, overwritten by a constant, and so on). 1.0 recognized 26–32%. One forward pass cannot trace data flow the way a reasoning model can (Opus 5.5: 94%), and the zero-shot base model is no worse than the fine-tune on this task. Treat no on data-flow security rules (injection, path_traversal, xss, ssrf, open_redirect) as "needs a closer look" and escalate to a reasoning model or a human. On real-world-like security code, no confidence threshold was certifiable, so security decisions should always be reviewed.

Recommended use. Use the model directly for design, readability, correctness, testing and idiom rules.

Other limits:

  • Mostly synthetic and LLM-labeled data. Real-code labels are soft labels from LLM judges, not human reviews of real pull requests. Synthetic scores overstate real-world accuracy.
  • Recall on real violations is 0.36 at the default threshold (specificity 0.99). The model is conservative on real code; use the distribution (AUC 0.96) to tune your threshold.
  • Small evaluation sets. Real code is 55 files from 9 repositories, pairs are 98, one seed per model. Differences below ~0.05 MCC are not distinguishable.
  • One file at a time. The model judges snippets, not diffs, and does not see the rest of the codebase.
  • Custom questions outside the trained rules use the same format, but their quality is not measured.
  • Prompts are in English. choice supports up to 26 options (Jev: 255).

What did not work (so you don't repeat it)

Documented in the research log: more security-only pairs (v4: better recall, worse calibration), contrast-format training with a fixed rule prefix (v6: worse on real code and OWASP), moving the rule list before the code (prefix layout: worse on OWASP injection and path traversal), averaging both option orders, and LoRA on basal-omni (collapsed to chance).

Training

  • Data: 4 866 samples: synthetic snippets (language × rule × compliant/violating, labeled by an LLM), 445 vulnerable/fixed pairs from GitHub Security Advisories whose contrast was confirmed by two frontier judges, and 900 real-code files with soft labels.
  • Method: LoRA on all linear layers (rank 32, alpha 64), merged into these full weights. Cross-entropy over option-letter logits at every answer slot. Each sample shows a random subset of questions, always including its target rule.
  • Optimization: 3 rounds × 1 epoch, AdamW, lr 5e-5, bf16, 1× A100 (GCP). The best round was selected on a validation split.
  • Calibration: a single temperature (1.122) fitted on a validation split.
  • Not included: the multi-token-prediction head of the base model. No MTP weights are in this repo (config.json still carries the base value mtp_num_hidden_layers: 1), because decisions never generate text.

License

Apache 2.0, the same as the base model. See LICENSE and NOTICE.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
f9c7929

0 моделей