Skip to content
Other

GigaRP4-37B-A4B

GigaChat4 для текстовых ролевых игр

2 min readupdated

GigaRP4 — это версия языковой модели GigaChat4-37B-A4B-Unstiffened (модель с частичным возвратом слоёв к базовым весам), дообученная автором SubMaroon для полноценного ролевого отыгрыша (RP). Обычный инструктивный тюнинг мешает модели вести диалог: она отвечает слишком сухо и плохо держит роль. Автор применил метод SPIN-0 (self-play DPO, при котором модель сравнивает эталонные сцены из датасета с собственными ответами). В результате генерация стала более развёрнутой, а модель перестала путать персонажей и писать за игрока.

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

  • Метод SPIN-0: обучение на парах из качественных ролевых сцен и собственных старых генераций модели без ручной разметки ошибок.
  • Стабильный русский язык: реплики на русском больше не разбавляются вставками на английском языке.
  • Контроль сцены: модель отслеживает действия нескольких персонажей и не перехватывает реплики пользователя.
  • Сниженная цензура: в режиме instant модель корректно отыгрывает NSFW-сцены (18+).

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

  • Запустить в текстовых ролевых клиентах или ботах через vLLM и SGLang в instant-режиме (без рассуждений).
  • Использовать готовые GGUF-сборки в локальных клиентах на базе llama.cpp с поддержкой GigaChat4.
  • Подключить отдельный LoRA-адаптер к исходной модели GigaChat4-37B-A4B-Unstiffened для экономии места.

Пример

# Передача параметра в vLLM / SGLang для работы в instant-режиме
chat_template_kwargs = {"reasoning": false}
ПодробнееМетрики (held-out eval, NLL): chosen улучшился с 2.755 до 2.316, rejected вырос с 1.050 до 1.388 к 100-му шагу.
Обучение: 100 шагов из 247 (~400 пар), RTX PRO 6000 (96 GB), LoRA разного ранга (от 4 до 32) влита в веса.
Ограничения: сохранились шаблонные фразы (slop), режим reasoning не обучался и может выдавать отказы.
Лицензия: некоммерческая (наследуется от оригинальной GigaChat4-37B).
Discuss Telegram 0 15

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 71 GB · ready files79 GB
  • FP8 / INT8recommendedweights 36 GB40 GB
  • 4-bitweights 20 GB23 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.

    # SubMaroon/GigaRP4-37B-A4B
    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 SubMaroon/GigaRP4-37B-A4B --local-dir ~/models/GigaRP4-37B-A4B
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to GigaRP4-37B-A4B
  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.0b42from December 2, 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, 2026

    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. GigaChat4-37B-A4B-basefamily root
  2. GigaChat4-37B-A4B-bf16
  3. GigaChat4-37B-A4B-Unstiffened
  4. GigaRP4-37B-A4B

New posts about versions of GigaChat4-37B-A4B-base (quants, finetunes, LoRAs) will show up under the bell.

Fine-tunes 1All on Hugging Face

About the model

SubMaroon/GigaRP4-37B-A4B
Author
SubMaroon
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

150

Ask AI about this model

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

Comments