/ Модель

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

Лицензия
Apache 2.0
Базовая модель
gemma-4-E4B-it
Библиотека
gguf
Опубликована
17 ноя 2026

iris-gemma-4-e4b-it-gguf

Генерация текстаТекст → текст3 профессии
495скачиваний за 30 дней0лайковвеса обновлены30 ноя 2026

Описание модели

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

Локальная дообученная Gemma 4 для исправления текста и переписывания сообщений в заданном тоне с ответом на английском.

Iris Gemma 4 E4B — дообученная модель ImAXISOG на базе google/gemma-4-E4B-it, подготовленная для приложения Iris. Она исправляет орфографию, грамматику, заглавные буквы и пунктуацию, стараясь сохранить исходные слова и разговорный стиль, а также переписывает сообщения в одном из пяти тонов: профессиональном, дружелюбном, кратком, ясном или юмористическом.

Модель принимает текст на английском, хинди письмом деванагари и хинглише, но всегда отвечает на английском. Версия поставляется в формате GGUF с квантизацией Q4_K_M и предназначена для локального запуска; README рекомендует её для компьютеров Mac с 16 ГБ памяти или больше. Метаданные указывают лицензию Apache-2.0.

Она специализирована на исправлении и переписывании сообщений, а не на диалоге: вопросы во входном тексте она перепишет, но не ответит на них. Качество юмористического тона слабее остальных; тестирование проводилось на специально подготовленных черновиках с оценкой другой ИИ-моделью, поэтому результаты могут не отражать качество на обычных текстах. Изображения не обучались и не тестировались.

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

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

Ограничения

Отвечает только на английском; вопросы в черновике переписывает, а не решает. Юмористический тон слабее остальных, а оценки качества получены на специально подготовленных примерах с помощью ИИ-судьи.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

Iris Gemma 4 E4B: a draft, its Fix and its Professional rewrite

Iris Gemma 4 E4B (GGUF)

The writing model inside Iris, an on-device grammar and tone app: "Best quality" in the app. It does two jobs and is trained for nothing else:

  • Fix corrects spelling, grammar, capitals and punctuation, and changes nothing else. Your words, short forms, slang and casual voice stay as you typed them. A message with no mistakes comes back unchanged.
  • Tones rewrite a message as Professional, Friendly, Shorter, Clearer or Funny, keeping every point, who does what, and the questions as questions.

It reads English, Hindi (Devanagari) and Hinglish (Hindi typed in English letters), and always answers in English.

Pick this one forthe best answers, and the one to use for Hindi and Hinglish. For Macs with 16 GB of memory or more.
Other Iris sizesFast (Qwen 3.5 2B): iris-qwen-3.5-2b-gguf · Tiny (Qwen 3.5 0.8B): iris-qwen-3.5-0.8b-gguf · Earlier lighter (Gemma 4 E2B): iris-gemma-4-e2b-it-gguf
All Iris modelsIris writing models
FilesGGUF, Q4_K_M, with the per-layer word table (per_layer_token_embd) at Q4_K, 4.58 GB (this repo). For Macs: iris-gemma-4-e4b-it-mlx (MLX, 4.54 GB).
Based onGoogle's google/gemma-4-E4B-it, fine-tuned with LoRA
LicenseApache 2.0, a modified version of Gemma 4 (see License)

Which one should I use?

Your computerUseMemory it needs
Mac with 16 GB or moreBest quality: iris-gemma-4-e4b-it-mlx3.6 GB peak (MLX)
Mac with 8 GBFast: iris-qwen-3.5-2b-mlx1.4 GB peak (MLX, 1.08 GB download)
Mac (lightest memory / fastest English)Tiny: iris-qwen-3.5-0.8b-mlx0.87 GB peak (MLX, 444 MB download)
Windows PC with 16 GB+ (best Hindi / Hinglish)Best quality: iris-gemma-4-e4b-it-gguf~5.5 GB working set (4.58 GB download)
Windows PC with 8 GB or more (recommended default)Fast: iris-qwen-3.5-2b-gguf1.58 GB working set on Win 11 (1.25 GB download)
Windows PC with 4 GB / older laptopTiny: iris-qwen-3.5-0.8b-gguf0.84–0.90 GB working set on Win 11 (505 MB download)

If Hindi or Hinglish matters most, use Best quality (E4B) whenever your computer has 16 GB or more: on Hindi Fix it is accepted 89–95% of the time, well ahead of smaller models. On 8 GB Macs and 8 GB+ Windows PCs (CPU-only), Iris recommends Fast (Qwen 3.5 2B) for everyday English speed and low RAM; on 4 GB Windows PCs, Iris recommends Tiny (Qwen 3.5 0.8B).

Results

How often the answer was good enough: untrained Gemma 4 E4B-it, Iris Lighter and Iris Best quality on six jobs

Gemma 4 E4B-it, untrainedIris Lighter (E2B)Iris Best quality (E4B)
English Fix: accepted (50 drafts)52%86%90%
Professional and Friendly: would send (100 answers)86%88%93%
Shorter and Clearer: would send (100 answers)75%86%90%
Funny: would send (50 answers)4%56%66%
Hindi and Hinglish, Fix (into English): accepted (82 drafts)91%71%95%
Hindi and Hinglish, tones (into English): would send (240 answers)71%47%76%

Judged blind by an AI model, answer by answer, on drafts written only for testing (see How it was tested). Gaps under about 8 points are within noise.

Examples

Real answers from this file, unedited, to drafts written for this card (temperature 0, Iris's prompts, llama.cpp on a processor). All 30 answers are in examples.jsonl.

Drafthey are we still on for tmrw? i didnt got the slides yet, can u send them before 10
Fixhey are we still on for tmrw? I didn't get the slides yet, can u send them before 10?
ProfessionalHi, are we still on for tomorrow? I have not received the slides yet. Could you send them before 10?
FriendlyHey, are we still on for tomorrow? I haven't got the slides yet, could you send them before 10? Thanks!
ShorterHey, still on for tmrw? I haven't got the slides yet, can u send them before 10?
ClearerHey, are we still on for tomorrow? Can you send the slides before 10? I haven't got them yet.
FunnyHey, are we still on for tmrw? I didn't get the slides yet, can u send them before 10? My presentation is currently running on hope.

Hinglish and Hindi come back in English, keeping who does what:

DraftModeAnswer
bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dungaFixBro, the meeting is at 11 tomorrow, you send the report and I'll make the slides.
ProfessionalThe meeting is tomorrow at 11. Please send the report, and I will prepare the slides.
माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।FixSorry, I'll be a little late today, the train is late.

A complaint stays a complaint, and Funny stays out of it:

DraftModeAnswer
the new pump arrived damaged, this is the second time this month and nobody from your team has called me backProfessionalThe new pump arrived damaged. This is the second time this month, and no one from your team has called me back.
FunnyThe new pump arrived damaged, this is the second time this month and nobody from your team has called me back.

Memory and speed

Peak memory and seconds per answer for both models on Mac and Windows

  • Mac (MLX, Apple silicon): peak 3.6 GB (4.2 GB at the longest message Iris takes, 6,000 characters), measured through Iris's own loader after a real download; about 0.3 s for a typical answer on an M5 Pro.
  • Windows (GGUF, llama.cpp, processor only): 3.9 GB of its own memory plus the 4.58 GB file, which the system keeps in memory when it has room (8.4 GB in all); about 1.05 s an answer. Suggested: 16 GB or more of RAM. Measured on a Mac's processor cores with no graphics chip, not yet on a Windows laptop.

How to use

llama.cpp

Tested with llama.cpp 0.9.0 (Homebrew build 12110):

llama-server -hf ImAXISOG/iris-gemma-4-e4b-it-gguf:Q4_K_M -np 1 --jinja --port 8080
curl -s localhost:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "messages": [
    {"role": "system", "content": "<the Fix prompt below>"},
    {"role": "user", "content": "<message>\nhey are we still on for tmrw? i didnt got the slides yet, can u send them before 10\n</message>"}],
  "temperature": 0, "chat_template_kwargs": {"enable_thinking": false}}'

Turn thinking off (enable_thinking: false), use temperature 0 for Fix, and run one request at a time (-np 1). Other llama.cpp-based apps (LM Studio, Ollama, Jan) were not tested.

The prompts it was trained with

The model learned Iris's short instructions, with thinking turned off. Other prompts work but were not measured.

The draft goes in the user turn as <message>\n...\n</message>.

Proofread the message between <message> and </message>. Correct only clear mistakes in spelling, grammar, capitalization and punctuation. Change nothing else: keep the writer's words, style, short forms, emoji, numbers and line breaks. Copy placeholders like {{1}} exactly once. If there are no mistakes, return the message exactly as it is. Reply with only the corrected message.

Iris sends this system prompt, then one example pair (user: maine invoice bhej diya hai, kal tak payment aa jayega, assistant: I've sent the invoice, the payment will come by tomorrow), then the draft as it is.

The user's message is written in Hindi, usually in Latin letters (Hinglish), sometimes in Devanagari. Translate it into natural English.

- Keep the meaning, facts, names, numbers, and requests exactly. Keep commitments as firm as written.
- Keep who does what: "bhej dena" asks the reader to send; "bhej dunga" means the writer will send.
- Keep the tone: a casual message stays casual. Don't add greetings or sign-offs.
- Placeholders like {{1}} stand for names, links, and code. Copy every placeholder exactly once, in the same place.
- Reply with only the English translation: no Hindi words, no quotes, no labels, no explanation.

The draft goes in the user turn as it is. {tone} is the tone's name in lower case.

Rewrite the message in a {tone} tone. {instruction}
Keep every point of the draft and add nothing. Keep who does what, and keep questions as questions. Fix grammar and spelling. Copy placeholders like {{1}} exactly once. No em dashes. Reply with only the rewritten message.
  • Professional: Sound clear and professional, like a capable colleague. Not stiff or flowery: no "I hope this finds you well", no "kindly". Professional changes how a thing is said, never whether it is said: a complaint, a disagreement, a refusal, frustration, an apology, thanks, and a courtesy like "I know it's late" all stay, put calmly and plainly. Never drop a point because it is blunt, and never soften a complaint into a request. Keep the point, not the wording: say each point in plain professional words, turning slang, sarcasm, insults and filler words like "really" or "super" into calm, direct language, so it reads as a colleague wrote it, not as the draft with its spelling fixed.
  • Friendly: Sound warm and easygoing, like a teammate people enjoy working with. Use contractions and plain, everyday words. Show warmth with words, never emoji: every rewrite gets one warm touch, such as a thanks, a word of acknowledgment, or a friendly opener like "Hey" or "Quick heads-up:". When the message is routine, one light, good-natured turn of phrase can make it friendlier; leave it out for bad news, apologies, complaints, or anything urgent, and never use sarcasm or joke about anyone. At most one exclamation mark. No filler openers like "Hope you're doing well". Be warm in the wording, never by hedging: if it says something will happen, it still will.
  • Shorter: Make it as short as possible by cutting filler words and repetition. Every fact, question, request, and condition stays.
  • Clearer: Restructure it so the reader knows what to do on the first read: put the main point or request in the first sentence, then the details. Split long sentences, use everyday words, and use a short list when there are several items or steps.
  • Funny: Add one light, good-natured touch of humor beside the message and change nothing else: keep the message's own words, and invent no facts or details. Never joke about people, mistakes, or anything sensitive. When humor doesn't fit (bad news, an apology, a complaint), only tidy the message.

How it was made

How it was made: Gemma 4 E4B-it, writing lessons, LoRA training, merged and quantized, MLX and GGUF

Starting pointGoogle's google/gemma-4-E4B-it, as the 4-bit MLX copy mlx-community/gemma-4-e4b-it-4bit (what Iris used before), with thinking switched off in the chat template
Lessons10,200 distinct examples (13,439 rows: some lessons appear more than once), 408 held back to check progress
Where lessons came fromDrafts and answers written and reviewed with AI models; Hindi and Hinglish translations reviewed by AI reviewers who corrected tense, idiom and who-does-what. None is taken from the test drafts, and lessons that resembled a test draft were dropped. Not released.
MethodLoRA on every layer: rank 16, scale 20, dropout 0.05; loss on the answers only (prompts masked)
ScheduleOne pass, 3,360 steps, batch 4, learning rate 5e-5 with cosine decay to 2e-6, 20 warm-up steps, up to 2,048 tokens
HardwareOne Apple M5 Pro Mac, 2 h 17 min, with mlx-lm
Held-back loss0.223
AfterwardsAdapter merged into the weights; 4-bit (group size 64); audio weights removed (picture weights kept so stock loaders work)
GGUFConverted with llama.cpp's convert_hf_to_gguf.py, quantized to Q4_K_M, with the per-layer word table (per_layer_token_embd) at Q4_K

How it was tested

  • Drafts: messages people type at work and to friends and family, written only for testing and never shown to whoever wrote the lessons: 50 English drafts (Fix and all five tones), 82 Hindi and Hinglish drafts for Fix, and 240 tone answers on Hindi and Hinglish drafts.
  • Answers: through the same code the app uses. The trained models at temperature 0 with Iris's short prompts; the untrained model as Iris ran it before, with Iris's longer prompts (worked examples included) and its usual settings.
  • Judge: an AI model, blind: the answers of all three models to a draft were shown together in shuffled order, with no model names, and judged against written rules.
  • Fix "accepted": no real mistake left and nothing changed beyond trivial tidying (a reworded phrase, an expanded short form or a lost casual voice counts against it). For Hindi drafts: an accurate, natural English version.
  • Tones "would send": the writer could send it in place of the draft: the same meaning, the tone asked for, and it reads naturally.
  • The GGUF file was judged on the answers that differ from the MLX model's. Against the MLX model, counted over two judging rounds (MLX against the standard Q4_K_M, then that against this smaller file): English Fix 1 fewer good answer of 50, English tones 1 fewer of 200, Funny 6 fewer of 50, Hindi and Hinglish Fix 1 more of 82, Hindi and Hinglish tones 3 more of 240.

Limitations

  • Answers in English only. Hindi and Hinglish drafts are read and answered in English.
  • Not a chat assistant. It was trained for Fix and the five tones; questions or other tasks in a draft are rewritten, not answered. Picture input was not trained or tested.
  • Funny is the weakest tone: good enough to send 66% of the time in the test (less with the GGUF file).
  • Judged by an AI model, not by people. Its rules are strict, but it can still be wrong.
  • Not tested yet: an 8 GB Mac or a real Windows laptop, long documents (memory only), custom tones, a writer's own style rules, and the drafter in llama.cpp.
  • Iris checks every answer before showing it (for example, that names, links and code kept as placeholders come back exactly once). Used on its own, the model has no such checks.

About Iris

Iris is a grammar and tone app that runs entirely on your computer: press a shortcut in any app to fix or rewrite what you wrote. macOS now, Windows planned.

License

Apache License 2.0 (LICENSE). This is a modified version of Google's Gemma 4 E4B-it (google/gemma-4-E4B-it, Gemma 4 license): fine-tuned with LoRA on writing lessons, merged, quantized, audio weights removed.

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

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

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
f70bc9f

0 моделей