Skip to content
Computer vision

CSM-1-Preview

ИИ-ассистент для задач кибербезопасности

2 min readupdated

Экспериментальная модель от OpenModel-Labs, заточенная под помощь специалистам по защите информации, инженерам и студентам. Она основана на базе Qwen3.5-27B (27.36 млрд параметров) с помощью LoRA-адаптера (метода дообучения через компактные матрицы весов), который уже вшит в основные веса формата bf16. В отличие от универсальных моделей, CSM-1-Preview сфокусирована на оборонительной стороне: помогает разбирать уязвимости, писать правила детекта и проводить статический анализ подозрительных файлов, но при этом отклоняет запросы на создание готовых эксплойтов и вредоносного ПО.

Ключевые особенности

  • Помогает разбирать атаки, уязвимости и поведение вредоносов с точки зрения защиты.
  • Пишет и проверяет правила детектирования (Sigma, YARA и поисковые запросы), а также плейбуки реагирования на инциденты.
  • Поддерживает режим рассуждений (enable_thinking=True) и вызов внешних инструментов (tool calling) через шаблон чата.
  • Настроена на отказ в генерации вредоносного кода с предложением безопасной альтернативы, а также обезвреживает индикаторы компрометации (defang IOCs).

Что можно сделать

  • Встроить в локального ассистента для SOC-аналитиков, чтобы быстрее писать и ревьюить Sigma- и YARA-правила.
  • Использовать в изолированной песочнице для первичного статического анализа подозрительных скриптов и расширений браузера или IDE.
  • Применять при подготовке к CTF и изучении принципов безопасной разработки (secure-by-design).

Пример

from transformers import AutoTokenizer, AutoModelForImageTextToText
import torch

repo = "OpenModel-Labs/CSM-1-Preview"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForImageTextToText.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": "How do I detect Kerberoasting in Windows event logs?"}]
prompt = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False, enable_thinking=False)
ПодробнееТребования: около 55 ГБ VRAM в bf16, свежая версия transformers и библиотека flash-linear-attention.
Оптимальные настройки генерации: temperature=0.7 для диалога и 0.2–0.4 для аналитических задач (top_p=0.9, top_k=20).
Ограничения: формальных бенчмарков пока нет, модель может выдумывать номера CVE и поля API — любые команды и правила нужно проверять вручную.
Безопасность: при подключении инструментов анализа файлов авторы рекомендуют запускать их только в песочнице без доступа к сети.
Discuss Telegram 2 77

Will it run?

Runs in 4-bit

Full precision does not fit, a quantised version does: quality barely changes down to 8 bits, more noticeably at 4 bits.

  • BF16weights 51 GB · ready files57 GB
  • FP8 / INT8recommendedweights 25 GB29 GB
  • 4-bitweights 14 GB16 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # OpenModel-Labs/CSM-1-Preview
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download OpenModel-Labs/CSM-1-Preview --local-dir ~/models/CSM-1-Preview
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to CSM-1-Preview
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of Qwen3.5-27B (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 12All on Hugging Face
Fine-tunes 12All on Hugging Face
LoRAs and adapters 6All on Hugging Face

About the model

OpenModel-Labs/CSM-1-Preview
Author
OpenModel-Labs
Category
Computer vision
Released
Posted

On NeyroLearn

Hugging Face

772

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments