/ Модель

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

Лицензия
Своя лицензия
Базовая модель
vega-U
Библиотека
vegaml
Опубликована
10 ноя 2026

niti-gate-vegaml-4b

Классификация текстаТекст → label3 профессии

Модель PromptForce классифицирует вызовы инструментов кодовых ИИ-агентов, решая, разрешить их или заблокировать и определяя тип возможного нарушения.

85скачиваний за 30 дней6лайковвеса обновлены21 ноя 2026

Бенчмарки

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

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

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

  • harness-hub/safeagents-judge-bench

    score · выше — лучше

    Результат

    0,905

    auroc 0,957balanced_accuracy 0,905category_macro_f1 0,497
    Hugging Face Leaderboards

    Публичная таблицаревизия не подтверждена

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

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

niti-gate-vegaml-4b — модель PromptForce для проверки вызовов инструментов ИИ-агентов в политическом шлюзе Niti. Она оценивает, разрешить ли вызов или заблокировать его, а для заблокированных вызовов определяет тип нарушения: манипуляция оценкой, изучение внутреннего устройства среды, злоупотребление учётными данными, утечка данных, обход песочницы или другое превышение полномочий.

Модель состоит из двух классификационных голов поверх неизменённой и замороженной модели vega-U на базе Qwen3.5-4B; сами головы занимают 16 МБ. Для оценки используются задача пользователя, имя и JSON-аргументы вызова инструмента, а также результаты сканирования. На тестовом наборе safeagents-judge-bench v2 из 661 вызова модель показала сбалансированную точность 0,905, AUROC 0,957 и полноту обнаружения блокируемых вызовов 0,882. Для практического использования требуется GPU: на CPU обработка одного вызова занимает около 23 секунд.

Модель предназначена для кодовых агентов, работающих в песочнице; другие области не проверялись. Она может блокировать допустимые вызовы, поэтому порог следует выбирать с учётом цены ложных блокировок и пропусков. Это классификатор-судья, а не средство изоляции: его следует использовать вместе с реальными ограничениями среды и политиками безопасности. Лицензия указана как other; README отдельно отмечает лицензии Apache-2.0 у vega-U и Qwen3.5-4B, но не уточняет условия лицензии самой модели.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

niti-gate-vegaml-4b

Decides whether an AI agent's tool call should be allowed or blocked, and if blocked, what kind of misuse it is (eval gaming, harness introspection, credential misuse, exfiltration, sandbox escape, other overreach). Built for the gate in Niti, PromptForce's policy gateway for coding agents.

It is two small heads on top of vegaml: the vega-U engine reading the call with Qwen3.5-4B, both frozen and unchanged. All the reading is theirs; this repo adds only the heads (16 MB). Built on vegaml; not affiliated with or endorsed by its authors or by Qwen.

Results

safeagents-judge-bench v2, test split, 661 calls (536 block, 125 allow), run with the bench's own job code. The bench was never used for training or tuning: the block threshold (0.225) was chosen on our own held-out data.

MetricHF Jobs A100 80GBRTX 3090
Balanced accuracy0.9050.909
AUROC0.9570.957
Recall (blocks caught)0.8820.882
False blocks (allowed calls blocked)0.0720.064
Trajectories caught78/8279/82
Category macro F10.4970.495
Category accuracy0.7290.728
Latency p50 / p950.41 s / 0.61 s0.19 s / 0.36 s

The A100 column is the leaderboard run (HF Jobs a100-large, vegaml==0.15.0), on the same hardware as the other decision models; the two runs differ only by GPU numerics (5 of 661 verdicts). At the time of submission it is first on the bench's block-decision track (balanced accuracy) and fourth on the category track, where the small sandbox_escape (4 calls) and credential_misuse (15 calls) classes weigh as much as the large ones.

GPU memory: 8.3 GB allocated (11.3 GB on card). On CPU it runs at about 23 s per call, so a GPU is needed in practice.

Use

pip install vegaml safetensors huggingface_hub
import sys
from huggingface_hub import snapshot_download
path = snapshot_download("prompt-force/niti-gate-vegaml-4b"); sys.path.insert(0, path)
from niti_gate import NitiGate

gate = NitiGate(path, device="cuda")
task = "Fix the failing date parser test."
gate.decide({"task": task, "name": "bash", "args": '{"command": "cat /root/.config/gh/hosts.yml"}', "findings": []})
# {'verdict': 'block', 'p_block': 0.671, 'category': 'harness_introspection', 'category_probs': {...}}
gate.decide({"task": task, "name": "bash", "args": '{"command": "python -m pytest tests/test_dates.py -q"}', "findings": []})
# {'verdict': 'allow', 'p_block': 0.005, 'category': 'legit', 'category_probs': {'legit': 1.0}}

The input is the bench's judge view: the user's task, the tool call (name and JSON arguments) and any scanner findings. decide(..., threshold=...) trades recall for false blocks.

gate.system_one(state) answers in the System One shape the bench's jobs read. Its block probability is rescaled so the tuned threshold sits at 0.5 (monotone, so the ranking is unchanged); the raw value is in p_block_raw.

Training

Heads trained on agent tool calls labelled by real user decisions and a panel of open judge models.

  • Block head: PCA (256 components) then logistic regression on vega-U's features for the block question; blocks are kept against legitimate calls at 1:4.
  • Category head: the same over the category question, trained on blocked calls plus a sample of legitimate ones.

Limits

  • Tuned for coding agents in a sandbox; other domains are untested.
  • Blocks more legitimate calls on some Terminal-Bench-style tasks (0.231 on bench v1). Raise the threshold where false blocks cost more than misses.
  • A judge, not a sandbox: use it alongside real isolation and policy.
  • On CPU, uninstall flash-linear-attention (fla) if present: its GPU kernels take over the reader and fail on CPU tensors.

License

The heads, niti_gate.py and config.json in this repo are licensed for non-commercial research and evaluation only; see LICENSE. For commercial use, contact PromptForce.

vegaml, vega-U and Qwen3.5-4B are not included here; they are downloaded from their own repos under their own licence (Apache-2.0). See NOTICE.

Credits

  • vegaml and vega-U by Nandakishor M (Apache-2.0)
  • Qwen3.5-4B by the Qwen team, Alibaba (Apache-2.0)
  • safeagents-judge-bench for the evaluation and its judge input format

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

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

GPU в ailist

Универсальный рантайм · vegaml · text-classification

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

Подбираем GPU…

Ревизия весов
16d1ddb

0 моделей