Skip to content
Other

tiny-aya-fire-sandesh-sft-clean

защищённый ИИ-ассистент для анализа SMS

2 min readupdated

Компактная языковая модель на 3.35 млрд параметров от автора ashank-crazy, созданная на базе CohereLabs/tiny-aya-fire с помощью SFT (контролируемого дообучения) и влитой LoRA-адаптации. Она работает как помощник для разбора входящих SMS: выполняет поручения пользователя, но при этом распознаёт мошеннические инструкции внутри сообщений, игнорирует их и предупреждает о скаме. В отличие от базовой версии, которая легко поддаётся скрытым промпт-инъекциям в тексте писем, этот файнтюн сводит успешность атак к нулю и отвечает строго одним валидным JSON-вызовом инструмента. Модель пригодится разработчикам мобильных ассистентов и агентов, работающих с ненадёжными внешними данными на английском, хинди, бенгальском, тамильском и маратхи.

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

  • Нулевая уязвимость к инъекциям: в тестах на статических и адаптивных атаках (best-of-16, включая обфускацию через base64, rot13 и скрытые символы) показатель ASR (доля успешных взломов) упал с 12.5–52.1% у базовой модели до 0.0%.
  • Высокая точность выполнения задач: корректно справляется с запросами пользователя в 99.5% случаев на чистых сообщениях и в 99.7% случаев при наличии вредоносного спама.
  • Активное предупреждение об угрозах: в 94.9% сценариев с мошенническими SMS модель не просто игнорирует атаку, но и прямо сигнализирует пользователю о попытке скама.
  • Стабильный формат вывода: в 100% тестов возвращает корректный JSON tool call без зависаний и повторного перечитывания входящих.

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

  • Умный фильтр и ассистент для входящих SMS: встроить модель в мобильное приложение или локальный бот для поиска кодов, анализа уведомлений и автоматической пометки фишинга.
  • Агентский пайплайн с защитой от prompt injection: использовать как компактный модуль маршрутизации (tool-calling) при обработке любых ненадёжных пользовательских сообщений на поддерживаемых языках.
  • Бенчмаркинг безопасности LLM: применять как эталонную устойчивую модель для тестирования собственных систем защиты агентов от перехвата управления.

Пример

Модель принимает системный промпт со списком доступных функций, запрос пользователя и содержимое входящих сообщений как результат вызова read_inbox (формат описан в sandesh/tools.py репозитория проекта). В ответ она генерирует один JSON-объект с вызовом нужного инструмента, игнорируя вшитые в текст SMS команды злоумышленников и отмечая наличие мошенничества.

ПодробнееОбучение: метод SafeTune PlainSFTTrainer на обучающей выборке SandeshBench (отфильтровано через CuratorKIT).
Бенчмарки: Global-MMLU (en/hi/bn) — 49.0% (против 48.0% у базы), XSTest (ложные отказы на безопасных запросах) — 12.4%.
Скорость и размер: 3.35B параметров, скорость генерации в тестах — около 24 tokens/s.
Ограничения: модель ориентирована на строгий формат JSON tool call под схему sandesh/tools.py и протестирована на языках en, hi, hinglish, bn, ta, mr.
Discuss Telegram 0 17

Will it run?

Runs in BF16

Fits without quantisation.

  • BF16weights 6.2 GB · ready files7.4 GB
  • FP8 / INT8recommendedweights 3.1 GB3.9 GB
  • 4-bitweights 1.8 GB2.4 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.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 2060 · BF16 — from RTX 5060 Ti 8GB

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

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.

    # ashank-crazy/tiny-aya-fire-sandesh-sft-clean
    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 ashank-crazy/tiny-aya-fire-sandesh-sft-clean --local-dir ~/models/tiny-aya-fire-sandesh-sft-clean
    # The model is in ~/models. How to run it is in the model card (link above).
  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

  1. tiny-aya-basefamily root
  2. tiny-aya-fire
  3. tiny-aya-fire-sandesh-sft-clean

New posts about versions of tiny-aya-base (quants, finetunes, LoRAs) will show up under the bell.

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

About the model

ashank-crazy/tiny-aya-fire-sandesh-sft-clean
Author
ashank-crazy
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

170

Ask AI about this model

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

Comments