Run this model with HF Jobs

Run ImAXISOG/iris-qwen-3.5-2b-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/ImAXISOG/iris-qwen-3.5-2b-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ImAXISOG/iris-qwen-3.5-2b-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/ImAXISOG/iris-qwen-3.5-2b-mlx. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/ImAXISOG/iris-qwen-3.5-2b-mlx. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Iris Qwen 3.5 2B: a draft, its Fix and its Professional rewrite

Iris Qwen 3.5 2B (MLX)

The lightweight writing model for Iris, an on-device grammar and tone app: "Fast" โ€” built specifically for 4โ€“8 GB PCs and low-RAM laptops. 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 for 4โ€“8 GB Windows PCs, older laptops, or Macs where low memory and speed matter most. Matches Iris Lighter (Gemma 4 E2B) across English writing while using 3ร— less RAM and 2.2ร— less disk.
Other Iris sizes Best quality (Gemma 4 E4B): iris-gemma-4-e4b-it-mlx ยท Tiny (Qwen 3.5 0.8B): iris-qwen-3.5-0.8b-mlx ยท Earlier lighter (Gemma 4 E2B): iris-gemma-4-e2b-it-mlx
All Iris models Iris writing models
Files MLX, v0.8.0 4-bit (group size 64), 1.08 GB (this repo). For Windows and llama.cpp: iris-qwen-3.5-2b-gguf (Q6_K, 1.21 GB).
Based on Qwen's Qwen/Qwen3.5-2B, fine-tuned with LoRA
License Apache 2.0, a modified version of Qwen 3.5 2B (see License)

Which one should I use?

Your computer Use Memory it needs
Mac with 16 GB or more Best quality: iris-gemma-4-e4b-it-mlx 3.6 GB peak (MLX)
Mac with 8 GB Fast: iris-qwen-3.5-2b-mlx 1.4 GB peak (MLX, 1.08 GB download)
Mac (lightest memory / fastest English) Tiny: iris-qwen-3.5-0.8b-mlx 0.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-gguf 1.53โ€“1.58 GB working set on Win 11 (1.21 GB download)
Windows PC with 4 GB / older laptop Tiny: iris-qwen-3.5-0.8b-gguf 0.79โ€“0.85 GB working set on Win 11 (471 MB download)

Starting with Iris 0.7.0, Fast (Qwen 3.5 2B) is Iris's default model on 8 GB Macs and 8 GB+ Windows PCs, replacing the older 2.8โ€“3.8 GB Gemma 4 E2B model. In head-to-head blind judging across 250 English Fix and tone items, Fast tied Gemma 4 E2B (174/250 each) and beat it on Shorter + Clearer (+5 points), while running 1.4ร— faster on Windows 11 with half the disk footprint.

If your PC only has 4 GB of RAM, use Tiny (Qwen 3.5 0.8B) (~836 MB peak on Windows 11, leaving 1.56 GB free). If Hindi or Hinglish matters most and you have 16 GB+, use Best quality (Gemma 4 E4B).

What's new in v0.8.0

  • Hybrid Edit-only Fix (โœ“ + ยงk): Trained on balanced edit-only Fix and tone data. Clean drafts return a single โœ“ token (4.0ร—โ€“4.7ร— faster on long clean drafts on x86 AVX2 CPU), and multi-sentence drafts with localized mistakes emit only the changed ยงk chunk lines (2.2ร—โ€“2.3ร— faster on long 1-error drafts, e.g., 83 โ†’ 19 tokens), with automatic plain-Fix fallback.
  • Upgraded to Q6_K GGUF in less disk (โˆ’34 MB): Stripping unused MTP (blk.24.*) weights via --no-mtp (320 GGUF tensors, lossless) let Fast move from Q4_K_S (1.25 GB) to Q6_K (1.21 GB) with a 600-block / 180-chunk Iris imatrix. In blind A/B judging (N=108), Q6_K beat Q5_K (56โ€“35โ€“17, p = 0.035).
  • Calibrated zero false-clean margin: Held-out calibration sets logit_bias[โœ“] (token 169361, with 5 check aliases and 5 ยง aliases hard-banned) to deltaSingle = 5.0, deltaMulti = 4.0, achieving 0/178 (0.0%) false-clean rate across single- and multi-chunk drafts (with f16 โ‰ก q8_0 KV cache).
  • Quality parity vs v0.7.0: Blind A/B against v0.7.0 scored 108โ€“94โ€“25 (winsโ€“lossesโ€“ties across Fix and all 5 tones) with 0/514 cross-chunk duplications.
  • Backwards compatibility: The v0.8.0 GGUF is published as iris-qwen-3.5-2b-v0.8-Q4_K_S.gguf (SHA-256 84937207d9ef6bbd7b2efeb156a41bf693f163e5e08720c089cce30b93a09871), keeping the v0.7.0 iris-qwen-3.5-2b-Q4_K_S.gguf file untouched for older Iris installs.

Results

How often the answer was good enough: Iris Fast (Qwen 3.5 2B), Iris Lighter (Gemma 4 E2B) and Iris Best quality (Gemma 4 E4B) on six jobs

Iris Fast (Qwen 3.5 2B) Iris Lighter (Gemma 4 E2B) Iris Best quality (Gemma 4 E4B)
English Fix: accepted (50 drafts) 74% 78% 84%
Professional and Friendly: would send (100 answers) 75% 78% 87%
Shorter and Clearer: would send (100 answers) 62% 57% 77%
Funny: would send (50 answers) 26% 36% 52%
Hindi and Hinglish, Fix (into English): accepted (82 drafts) 49% 48% 89%
Hindi and Hinglish, tones (into English): would send (120 answers) 16% 18% 58%

Baseline v0.7.0 head-to-head scores judged blind by an AI model, answer by answer, on held-back drafts written only for testing (see How it was tested); v0.8.0 preserves this quality in head-to-head blind A/B while adding Edit-only Fix and upgraded GGUF quantization (see What's new in v0.8.0). All three models were judged together in the same shuffled blind round so scores are directly comparable. Gaps under about 8 points are within noise.

In English Fix, Fast kept the writer's voice 100% of the time (50/50). In Professional + Friendly, it preserved meaning 93% of the time and added no unwanted text 95% of the time (both edging out Gemma 4 E2B's 92%).

Examples

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

Draft hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10
Fix hey are we still on for tmrw? I didn't get the slides yet, can u send them before 10?
Professional Hi, are we still on for tomorrow? I haven't got the slides yet. Could you send them before 10?
Friendly Hey, are we still on for tomorrow? I haven't got the slides yet, can you send them before 10?
Shorter hey are we still on for tmrw? I didn't get the slides yet, can u send them before 10?
Clearer Are we still on for tomorrow? I didn't get the slides yet. Can you send them before 10?
Funny Hey, are we still on for tmrw? I didn't get the slides yet, can u send them before 10? My phone is playing the part of the attentive listener.

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

Draft Mode Answer
bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga Fix Bro, the meeting is at 11 tomorrow, you send the report, I'll make the slides.
Professional The meeting is at 11 tomorrow. Please send the report and I will make the slides.
เคฎเคพเคซเคผ เค•เฅ€เคœเคฟเค, เค†เคœ เคฎเฅˆเค‚ เคฅเฅ‹เคกเคผเคพ เคฆเฅ‡เคฐ เคธเฅ‡ เค†เคŠเคเค—เคพ, เคŸเฅเคฐเฅ‡เคจ เคฒเฅ‡เคŸ เคนเฅˆเฅค Fix Sorry, I'll be a little late today, the train is late.

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

Draft Mode Answer
the new pump arrived damaged, this is the second time this month and nobody from your team has called me back Professional The new pump arrived damaged. This is the second time this month, and nobody from your team has called me back.
Funny The 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 across Best quality, Lighter and Fast on Mac and Windows

  • Mac (MLX, Apple silicon): peak 1.4 GB (2.2 GB at the longest message Iris takes, 6,000 characters), 0.15 s median (0.19 s p90) in mlx-lm; verified end-to-end through Iris's Swift mlx-swift-lm loader (0.15โ€“0.23 s warm Fix, 0.28 s Professional).
  • Windows 11 (GGUF, Iris bundled llama-server.exe b12110, CPU only, --no-repack -ctk q8_0 -ctv q8_0):
    • 8 GB RAM / 4 vCPU Windows 11 VM (--cache-ram 128): 1.58 GB peak working set (4.25 GB system RAM remaining free), 1.48 s load, 1.76 s median warm Fix (26.1 tok/s), 5.45 s median Tone, 0 <think> leaks.
    • 4 GB RAM / 2 vCPU Windows 11 VM (--cache-ram 64): 1.52 GB peak working set (852 MB system RAM remaining free), 1.48 s load, 3.66 s median warm Fix (13.5 tok/s), 10.4 s median Tone, 0 <think> leaks.
    • 4-thread Intel Xeon x86 Linux CPU (--no-repack --cache-ram 64 -ctk q8_0 -ctv q8_0): 1.33 GB peak RAM, 1.76 s median warm Fix (19.3 tok/s).
    • Recommended for 8 GB+ Windows PCs and 8 GB Macs (also runs on 4 GB PCs, though Tiny 0.8B leaves twice as much free RAM there).
  • v0.8.0 Edit-only Fix & RAM improvements: 4.0ร—โ€“4.7ร— faster on long clean drafts (โœ“) and 2.2ร—โ€“2.3ร— faster on long 1-error drafts (ยงk targeted chunk edits) on AVX2 x86 CPU, with โˆ’34 MB disk (1.21 GB Q6_K) and โˆ’45 to โˆ’50 MB RAM on 4โ€“8 GB Windows tiers.

How to use

Python (mlx-lm)

Tested with mlx-lm 0.32.2 on Apple silicon:

from mlx_lm import load, generate

model, tokenizer = load("ImAXISOG/iris-qwen-3.5-2b-mlx")

FIX = ("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.")

TONE = ("Rewrite the message in a {tone} tone. {instruction}\nKeep 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.")
SHORTER = "Make it as short as possible by cutting filler words and repetition. Every fact, question, request, and condition stays."

def ask(system, user):
    messages = [{"role": "system", "content": system}, {"role": "user", "content": user}]
    prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False)
    return generate(model, tokenizer, prompt=prompt, max_tokens=400)  # greedy (temperature 0) by default

draft = "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10"
print(ask(FIX, f"<message>\n{draft}\n</message>"))                           # Fix wraps the draft in <message> tags
print(ask(TONE.format(tone="shorter", instruction=SHORTER), draft))           # tones take the bare draft

With stock mlx-lm, this model peaks at about 1.4 GB on typical messages (2.2 GB at Iris's 6,000-character limit) โ€” less than half of Gemma 4 E2B's memory โ€” because vision layers were removed and Qwen 3.5 2B uses linear attention (GatedDeltaNet) for 3 out of every 4 layers.

The prompts it was trained with

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

Fix (English)

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.
Fix v0.8.0 (Hybrid Edit-only protocol, used by Iris)

In v0.8.0, Iris sends single-chunk drafts inside <message>...</message> and multi-sentence drafts (2โ€“20 chunks) with ยง1, ยง2, โ€ฆ markers. If the draft is already clean, the model replies with a single โœ“ token (id 169361); on multi-chunk drafts with errors, it emits only the changed ยงk <fixed chunk> lines.

Calibrated per-step logit biases (greedy decoding, enable_thinking=False):

  • Fast (2B): logit_bias[169361] = -5.0 (1-chunk) / -4.0 (multi-chunk)
  • Tiny (0.8B): logit_bias[169361] = -4.0 (1-chunk) / -2.5 (multi-chunk)
  • Hard-ban check aliases [50615, 55242, 71723, 169286, 189551] at -100.0; hard-ban ยง (17317) and aliases [16137, 62159, 78335, 93441, 241244] at -100.0 on unmarked attempts.
Fix for a message written in Hindi or Hinglish

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.
Tones

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: Qwen 3.5 2B, writing lessons, LoRA training, merged and quantized with imatrix, MLX and GGUF

Starting point Qwen's Qwen/Qwen3.5-2B, with thinking switched off (enable_thinking=False)
Lessons 10,200 distinct examples (13,439 rows: some lessons appear more than once), 408 held back to check progress โ€” the exact same dataset used for Iris Best quality (E4B)
Where lessons came from Drafts 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.
Method LoRA on all 186 linear layers (attention + GatedDeltaNet + MLP): rank 64, alpha 128, dropout 0.05; loss on the answers only (prompts masked)
Schedule One full pass, 420 steps, effective batch 32 (length-bucketed), learning rate 2e-4 with cosine decay to 0, 21 warm-up steps, up to 2,048 tokens
Hardware One NVIDIA A100 GPU, 18 min 40 s, with PyTorch + PEFT
Held-back loss 0.2993 (down from 0.6504 untrained)
Afterwards Balanced v0.8.0 Edit-only Fix + tone LoRA merged in FP32 on CUDA into BF16 weights; vision encoder and unused MTP (blk.24.*) weights removed (text-only, 320 GGUF / 694 MLX tensors)
MLX Quantized with mlx-lm 0.32.2 to 4-bit (group size 64, 4.50 bits/weight, 1.08 GB)
GGUF Converted with llama.cpp b12110 convert_hf_to_gguf.py --no-mtp (320 tensors), calibrated with llama-imatrix on a 600-block (180-chunk) Iris writing corpus, quantized to Q6_K (iris-qwen-3.5-2b-v0.8-Q4_K_S.gguf, 1.21 GB).

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 120 tone answers on Hindi and Hinglish drafts (Professional, Friendly, Shorter, Clearer).
  • Answers: generated at temperature 0 with Iris's exact short prompts and enable_thinking=False.
  • Judge: an AI model, blind: the answers of Iris Fast (Qwen 3.5 2B), Iris Lighter (Gemma 4 E2B) and Iris Best quality (Gemma 4 E4B) 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.
  • Quantization parity: the Q4_K_S imatrix GGUF matched BF16 word for word on 19/20 English Fix prompts and 31/40 mixed prompts, and matched the MLX 4-bit file word for word on 19/30 card examples.

Limitations

  • Answers in English only. Hindi and Hinglish drafts are read and answered in English.
  • Hindi and Hinglish are weaker than E4B: accepted 49% on Hindi Fix and 16% on Hindi tones (essentially tied with Gemma 4 E2B, but far behind Gemma 4 E4B's 89% / 58%). For heavy Hindi/Hinglish use, pick Best quality (E4B).
  • Funny is the weakest tone: good enough to send 26% of the time in the head-to-head blind test (vs 36% for E2B and 52% for E4B), though it keeps the draft's meaning 92% of the time and leaves complaints serious.
  • Not a chat assistant. It was trained for Fix and the five tones; questions or other tasks in a draft are rewritten, not answered. Vision layers were removed.
  • Judged by an AI model, not by people. Its rules are strict, but it can still be wrong.
  • Not tested yet: a real Windows laptop (CPU numbers are from Mac CPU cores and 4-thread Intel Xeon x86 Linux CPU), long documents (memory only), custom tones, or a writer's own style rules.
  • 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. Available for macOS and Windows.

License

Apache License 2.0 (LICENSE). This is a modified version of Qwen's Qwen 3.5 2B (Qwen/Qwen3.5-2B, Apache 2.0): fine-tuned with LoRA on writing lessons, merged, vision encoder weights removed, and quantized.

Downloads last month
690
Safetensors
Model size
2B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ImAXISOG/iris-qwen-3.5-2b-mlx

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(790)
this model

Collection including ImAXISOG/iris-qwen-3.5-2b-mlx

Evaluation results

  • accepted (%) on Iris blind test, English Fix (50 drafts)
    self-reported
    74.000
  • would send (%) on Iris blind test, Professional and Friendly (100 answers)
    self-reported
    75.000
  • would send (%) on Iris blind test, Shorter and Clearer (100 answers)
    self-reported
    62.000
  • would send (%) on Iris blind test, Funny (50 answers)
    self-reported
    26.000
  • accepted (%) on Iris blind test, Hindi and Hinglish, Fix (into English) (82 drafts)
    self-reported
    49.000
  • would send (%) on Iris blind test, Hindi and Hinglish, tones (into English) (120 answers)
    self-reported
    16.000