/ Модель

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

Лицензия
Apache 2.0
Архитектура
gemma4_unified · dense
Базовая модель
gemma-4-12B
Библиотека
transformers
Опубликована
23 окт 2026

Smaug-Humanizer

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

Smaug Humanizer переписывает преимущественно англоязычный текст, созданный ИИ, сохраняя его содержание и структуру и придавая ему более естественное звучание.

1 168скачиваний за 30 дней31лайквеса обновлены26 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Smaug Humanizer — модель Abacus.AI для переписывания текста, созданного ИИ, так, чтобы он звучал естественнее и напоминал человеческий стиль. Она сохраняет факты, числа, имена и структуру исходного текста, меняя формулировки, ритм и тон. Модель основана на Gemma 4 12B и дообучена методом SFT с LoRA, а затем оптимизирована с помощью GRPO; размер — 12 млрд параметров, формат весов — bf16. Поддерживает диалоговый сценарий и работает преимущественно с английским текстом.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

1. Model Introduction

Smaug Humanizer rewrites AI-generated text so that it reads as if a person wrote it. It keeps the facts, numbers, names and layout of the input, and changes the wording, rhythm and voice. It is a 12B model, fine-tuned by Abacus.AI from gemma-4-12B.

2. Model Summary

Base modelgoogle/gemma-4-12B (pretrained model, not instruction-tuned)
Parameters12B
Precisionbf16
Input / outputAI-written text / the same text rewritten in a human voice
Best input lengthup to about 500 words per call (see Limitations)
TrainingSFT on 3,676 rewrite pairs, then 200 steps of GRPO
Recommended samplingtemperature 1.0, top_p 0.95, top_k 64
Blog postSmaug Humanizer: An open-weight 12B humanizer
GGUFabacusai/Smaug-Humanizer-GGUF
LicenseApache 2.0

3. Training

Stage 1: SFT

We start from human text written in 2021 or earlier, so we know a person wrote it. An LLM rewrites each passage in its own style, which gives an AI text x for every human text h. The model learns the reverse direction, from x back to h.

When asked to rewrite a passage, LLMs often change only a few words, and a model trained on such pairs learns to make the same light edits. So we keep a pair only if it passes all of our filters:

  • A real rewrite: a deterministic check drops pairs where too many of the human sentences survive in x.
  • The same layout: a deterministic check requires the same paragraph and line breaks in x and h.
  • The same facts: an LLM judge checks that x keeps every fact, number, name and quote of h and adds nothing.

We ended up with 3,676 pairs, and train a LoRA (r = 64, α = 128) on gemma-4-12B for 2 epochs. Most of the gain came from this stage: cleaner pairs helped more than anything we did later. RL adds a smaller gain on top. We measured each step on a held-out set of AI-written texts that the model never saw in training. Pangram, a commercial AI-text detector, scored how human each rewrite reads, and an LLM judge scored its faithfulness to the input.

Stage 2: RL

The reward. Each prompt x comes with its own human text h, the passage that x was made from. A rewrite y earns reward for being close to h and far from x:

$$ r(y) = k(y, h) - k(y, x), \qquad k(a, b) = \exp!\left(-\gamma,\lVert e(a) - e(b) \rVert^2\right) $$

Here e(·) is a text embedder and γ = 0.262. Because h and x carry the same content, the difference between the two terms is mostly style: the rewrite gains reward when it moves away from its AI draft and toward the way a person wrote the same thing. Our blog post shows how this kernel similarity reward follows from an MMD objective.

The gates. The reward alone does not protect the facts: a rewrite that leaves out a detail is also further from its AI draft. So each sample must also pass five deterministic gates:

  • Numbers: every number in the input is in the rewrite.
  • Layout: the rewrite has the same paragraph and line breaks as the input.
  • Length: the rewrite is 0.7 to 1.4 times as long as the input.
  • Script: the rewrite does not switch to another alphabet.
  • Spelling: the rewrite does not have more unknown or misspelled words than normal human text.

A sample that fails any gate gets the lowest raw reward in its group of 8, taken over all 8 samples:

$$ \tilde r(y_i) = \begin{cases} r(y_i) & \text{if } y_i \text{ passes every gate} \ \min_j r(y_j) & \text{otherwise} \end{cases} $$

Optimization. For each prompt the policy samples a group of 8 rewrites, and GRPO uses the group-normalized advantage

$$ A_i = \frac{\tilde r(y_i) - \operatorname{mean}_j \tilde r(y_j)}{\operatorname{std}_j \tilde r(y_j)} $$

with a KL penalty to the SFT model.

SettingValue
Start point and KL referencethe Stage 1 SFT model
Prompts2,000 AI texts with their human originals
Steps200
Group size8
Learning rate3e-5, linear decay
KL coefficient β0.05
LoRAr = 64, α = 128
Max completion1,024 tokens

We stop at 200 steps on purpose. When we ran the same reward for 400 steps, the reward kept climbing, but the rewrites got worse.

4. Generations

Each input is a chatbot answer on a fictional or general topic, the right column is a Smaug Humanizer rewrite of it

5. Usage

The model takes one user turn with this prompt:

PROMPT = """Rewrite the AI-written text below so that it reads as if a person wrote it, in a person's own voice, wording and rhythm.

Keep every fact, number, name and quote. Keep the structure and the language of the text. Output only the rewritten text.

Text:
{text}"""

vLLM

vllm serve abacusai/Smaug-Humanizer --language-model-only --dtype bfloat16 --max-model-len 8192
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")

response = client.chat.completions.create(
    model="abacusai/Smaug-Humanizer",
    messages=[{"role": "user", "content": PROMPT.format(text=text)}],
    temperature=1.0,
    top_p=0.95,
    stop=["<end_of_turn>"],
    extra_body={"top_k": 64},
)
print(response.choices[0].message.content.strip())

Transformers

from transformers import AutoModelForImageTextToText, AutoTokenizer

model_id = "abacusai/Smaug-Humanizer"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="bfloat16", device_map="auto")

messages = [{"role": "user", "content": PROMPT.format(text=text)}]
input_ids = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt",
).to(model.device)

output_ids = model.generate(
    input_ids,
    max_new_tokens=8192,
    tokenizer=tokenizer,  # needed for the <end_of_turn> stop string in generation_config.json
)
completion = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
print(completion.split("<end_of_turn>")[0].strip())  # generate() stops at <end_of_turn> but keeps it in the output

llama.cpp (GGUF)

GGUF files for llama.cpp, Ollama and LM Studio are in abacusai/Smaug-Humanizer-GGUF. Q8_0 fits a 16 GB GPU, and Q4_K_M runs on an 8 GB GPU or a laptop.

llama-server -hf abacusai/Smaug-Humanizer-GGUF:Q4_K_M -ngl 99 -c 8192 --port 8080

Use the same prompt and sampling, and add <end_of_turn> as a stop string.

Sampling parameters

  • temperature: 1.0
  • top_p: 0.95
  • top_k: 64
  • stop: ["<end_of_turn>"]. Required: the model ends its turn with the text <end_of_turn>, not with <eos>.

6. Limitations

  • Long texts are harder. A detector judges the whole document, so every part has to pass. Split long inputs at paragraph breaks into chunks of about 500 words, rewrite each chunk, and join them with a blank line.
  • Mostly English. Other languages work, but less well.
  • Some rewrites are still flagged. Smaug Humanizer turns many texts that detectors score as AI into text they score as human, but not every time. Pangram still flags some rewrites, more often for long texts. Sample a few rewrites and pick one if it matters.
  • Read the output. The gates cover numbers and layout, but a rewrite can still change a detail. Check anything you publish.

7. License

Apache 2.0, the same license as the base model, gemma-4-12B.

8. Citation

@misc{abacusai2026smaughumanizer,
  title  = {Smaug Humanizer},
  author = {Abacus.AI},
  year   = {2026},
  url    = {https://huggingface.co/abacusai/Smaug-Humanizer}
}

9. Contact Us

If you have any questions, please reach out at Abacus.AI.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей