/ Модель

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

Контекст
32 768 токенов
Параметры
257 млн
Лицензия
Gemma
Архитектура
gemma3_text · dense
Базовая модель
gemma-3-270m-it
Библиотека
transformers
Опубликована
20 окт 2026

Gemma-3-270M-Email-Key-Line-Bolding

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

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

48скачиваний за 30 дней0лайковвеса обновлены21 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Gemma-3-270M-Email-Key-Line-Bolding — компактная текстовая модель Дэниела Роузхилла, дообученная на базе google/gemma-3-270m-it. Она добавляет Markdown-разметку **жирным** к ключевым фразам в уже разбитом на абзацы электронном письме: просьбам, цели письма, пунктам и важным фактам, сохраняя остальной текст без изменений. Модель рассчитана прежде всего на постобработку писем, продиктованных голосом после распознавания речи и расстановки абзацев; её также можно применять к исходящим письмам от ИИ-агентов и входящей почте. Архитектура — плотная Gemma 3 для генерации текста, размер — 257 млн параметров, контекст — до 32 768 токенов. Поддерживается английский язык; для работы используется Transformers, веса опубликованы в формате safetensors.

Это предварительная версия, обученная на 336 синтетических письмах, преимущественно с автоматически размеченными примерами. На шести отложенных письмах получен F1 по словам 0,62; тестовая выборка мала, поэтому результат приблизительный. Модель склонна пропускать некоторые пункты списка, а разметка отражает субъективные предпочтения аннотатора. Она не проверялась на реальных расшифровках, других типах текста или письмах на иных языках. Лицензия — Gemma.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Gemma 3 270M: email key-line bolding (preliminary)

Puts the key parts of a dictated email in Markdown bold, and changes nothing else. The input is an email that has already been paragraphed (the step after Gemma-3-270M-ASR-Paragraph-Breaks in a dictation pipeline); the output is the same text with ** around the requests, the purpose line, the listed points and the key facts, so a reader skimming only the bold knows what is being asked.

Status: first, preliminary version (2026-10-21). Trained mostly on LLM-extrapolated labels from 19 hand annotations. It is a starting point to be replaced as more emails are annotated.

Try it: Email Key-Line Bolding demo (CPU; can add paragraph breaks first; shows the result as bold or as highlights). Write-up: blog post.

Uses

  • Dictation / ASR pipelines (the main one): after speech recognition and paragraphing, bold the lines the recipient must not miss.
  • Outbound email from AI agents: bold the requests and details in an agent-drafted email so recipients find them at a glance. Pairs with the paragraph-breaks model as one post-processing step.
  • Inbound email: mark up received mail. The model only marks spans; a client can render them as highlights instead of bold.

Results

Scored on 6 held-out hand-annotated emails, per word: a word counts as bold if it falls inside a span. An output that changes anything other than adding ** is a fallback (the input is returned unbolded).

RunEpochsLRWord PWord RWord F1Fallback
r1-e335e-50.650.280.391 of 6
r1-e665e-50.650.470.541 of 6
r2-e10 (this model)105e-50.730.540.620 of 6
r3-e6-lr1e-461e-40.740.440.560 of 6

Untrained base model: 6 of 6 fallbacks. Reference point: Claude Sonnet 5.5, prompted with the written rules and the other annotations as examples, scores word F1 0.69 in 4-fold cross-validation over all 19 hand annotations. The model is precise but under-bolds (recall 0.54): it tends to bold the ask and the purpose line and miss some of the listed points. Six test emails is a very small test set; treat the numbers as rough.

Training data

336 emails: 13 hand-annotated, 323 labelled by Claude Sonnet 5.5 from the written rules plus the 13 as worked examples (silver). The emails are synthetic dictated emails (Claude Haiku 5.5) to 12 kinds of recipient: landlords, schools, clinics, contractors, clients, clubs and so on. Median length about 340 words; median 25% of words bold in both the gold and the silver labels.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "danielrosehill/Gemma-3-270M-Email-Key-Line-Bolding"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)

SYSTEM = ("Put the key parts of this email in Markdown bold (**like this**): the requests, the purpose, "
          "the main points and the key facts. Do not change, add or remove anything else.")
email = "Hi Sam,\n\nCould you send me the signed lease by Friday?\n\nThanks,\nDana"
prompt = tok.apply_chat_template([{"role": "system", "content": SYSTEM}, {"role": "user", "content": email}],
                                 tokenize=False, add_generation_prompt=True)
ids = tok(prompt, return_tensors="pt")
out = model.generate(**ids, max_new_tokens=1600, do_sample=False)
bolded = tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True).strip()

# Validate: only ** may be added. Otherwise keep the input.
if bolded.replace("**", "") != email or bolded.count("**") % 2:
    bolded = email

Use the system prompt above exactly; it is the one the model was trained with.

Limitations

  • Bolding is subjective and the labels reflect one person's preference.
  • Mostly silver labels; the model learns the LLM labeller's habits as well as the annotator's.
  • English, synthetic dictated emails only; not tested on real transcripts or non-email text.
  • Offsets are character-based; text with emoji has not been tested.

Training run: email-bold-r2-gemma270m-e10 (Modal L4, 504 s). Source and rules: docs/bolding-style.md in github.com/danielrosehill/Gemma-3-270M-Email-Key-Line-Bolding.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей