/ Модель

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

Контекст
2 048 токенов
Параметры
33,5 млн
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
cyberslm-base
Библиотека
pytorch
Опубликована
21 авг 2026

cyberslm-instruct

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

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

52скачиваний за 30 дней1лайквеса обновлены21 авг 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CyberSLM-instruct — небольшая англоязычная модель для генерации текста в формате инструкций, разработанная Sabari2005 как дообучение sabari2005/cyberslm-base на 23 540 диалогах по кибербезопасности. Это плотная причинная языковая модель семейства Llama на 33,5 млн параметров с контекстом 2048 токенов; метаданные указывают PyTorch и формат Safetensors. Модель предназначена для экспериментов с малыми языковыми моделями и демонстрации проверенного конвейера обучения, а также может служить базовой точкой сравнения при масштабировании.

Модель усвоила структуру инструкционных ответов, но часто ошибается по существу, уверенно выдаёт неверные сведения, повторяет фрагменты и может не завершать ответ. Авторы прямо не рекомендуют использовать её как справочник по безопасности, для реагирования на инциденты или генерации кода, а также запускать созданный ею код. Обучающие данные не опубликованы и не распространяются. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

CyberSLM-instruct — 33.5M-parameter cybersecurity assistant

Instruction-tuned from sabari2005/cyberslm-base on 23,540 cybersecurity conversations.

Code: github.com/Sabari2005/cyberslm

Read this before using it

At 33.5M parameters this model learned the shape of a good answer — markdown structure, numbered steps, worked examples, mitigation sections — and is frequently wrong about the content.

Measured over 8 greedy prompts:

categorymean 8-gram repetitionstopped on EOS
security18.7%1 / 4
general18.9%1 / 2
code19.9%0 / 2
overall19.0%2 / 8

Do not use this as a factual security reference. Do not run code it generates. It is a demonstration of a correct end-to-end training pipeline and a baseline for scaling.

Where it works

Well-covered in-domain questions come out correct and terminate cleanly:

What is SQL injection and how do I prevent it?

SQL injection (SQLi) is a security vulnerability that allows attackers to manipulate database queries by injecting malicious SQL code through input fields. It occurs when user-supplied data is improperly sanitized, allowing attackers to manipulate the database. For example, if an attacker submits a username like admin' -- as the username, the query becomes: SELECT * FROM users WHERE username = '[input]' AND password = '[input]'.

What is a firewall?

A firewall is a network security device or software that monitors and controls incoming and outgoing network traffic based on predefined security rules. It acts as a barrier between trusted internal networks and untrusted external networks, such as the internet.

Where it fails

All observed, reproducible, and the majority case:

  • Wrong content, confident tone. Asked to contrast symmetric and asymmetric encryption it answered about hashing and IKE, never addressing the question.
  • Circular definitions. "A buffer overflow is a type of buffer overflow that could lead to arbitrary code execution."
  • Topically-adjacent but wrong vocabulary. Asked how to investigate a phishing email it produced SameSite and Strict — real security terms, wrong topic (they are cookie attributes).
  • Degenerate loops in code. port: The port to use repeated to the token limit.
  • Unreliable termination. Only 2 of 8 prompts stopped on EOS; the rest ran to the token limit.

These are consequences of scale, not of the training run — the loss curve is healthy and the pipeline is machine-verified (35 architecture checks, 173 tests).

Model details

parameters33,531,264
architecture12 layers, d_model 384, 6 heads, SwiGLU 1024, RoPE, RMSNorm, tied head
context2048
vocab32,000 (SentencePiece BPE)
base modelsabari2005/cyberslm-base
SFT data23,540 conversations, 15.1M supervised tokens
epochs3 (2,208 optimizer steps)
optimiserAdamW, lr 2e-5, 3% warmup, cosine, bf16
best val loss2.2627 (response tokens only)

Loss is computed on assistant responses only; prompts are masked. 88% of tokens in the SFT set are supervised.

Usage

pip install torch sentencepiece
git clone https://huggingface.co/sabari2005/cyberslm-instruct
cd cyberslm-instruct
python infer_chat.py --prompt "What is SQL injection and how do I prevent it?"

Interactive:

python infer_chat.py --interactive

Options:

python infer_chat.py \
    --prompt "What is a buffer overflow?" \
    --max-new-tokens 200 \
    --temperature 0.0      # 0 = greedy, recommended for this model

Prompt format

The model was trained on this exact layout, with a real BOS token id prepended and EOS terminating each response:

### User:
{question}

 ### Assistant:
{response}<eos>

Build prompts with the bundled formatter (infer_chat.py does this). Hand-assembling the string produces different token ids at every segment boundary, because SentencePiece prepends a word-boundary marker per encode() call — the model then sees something it was never trained on.

import torch
from configs.sft_config import default_config
from data.prompt_formatter import PromptFormatter, Tokenizer
from model.cyberslm import CyberSLM

cfg = default_config()
cfg.tokenizer.model_path = "tokenizer/tokenizer.model"
cfg.model.max_seq_len = cfg.data.max_seq_len = 2048

tok = Tokenizer(cfg.tokenizer.model_path)
fmt = PromptFormatter(cfg=cfg, tokenizer=tok)

model = CyberSLM(cfg.model)
model.load_state_dict(torch.load("models/instruct.pt", map_location="cpu",
                                 weights_only=False))
model.eval()

ids = fmt.format_for_inference({"messages": [{"role": "user",
                                              "content": "What is XSS?"}]})
out = model.generate(torch.tensor([ids]), max_new_tokens=200,
                     temperature=0.0, eos_id=tok.eos_id)
print(tok.decode(out[0, len(ids):].tolist()))

Decoding uses a KV cache — roughly 50–70 tok/s on CPU.

Intended use

Research into small language models; a scaling baseline; a demonstration of a verified training pipeline. Not for security advice, incident response, code generation, or anything where accuracy matters.

Training data

Not published. Curated cybersecurity instruction data; not redistributed.

License

Apache-2.0 for the code and weights. Verify licensing for downstream use against the sources the data was curated from.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей