ImAXISOG commited on
Commit
5e1c6dc
·
verified ·
1 Parent(s): 51a2d71

Model card: exact Windows-file comparisons, training starting point, 8 GB not yet tested

Browse files
Files changed (1) hide show
  1. README.md +9 -8
README.md CHANGED
@@ -100,10 +100,10 @@ It does two jobs and is trained for nothing else:
100
 
101
  It reads English, Hindi (Devanagari) and Hinglish (Hindi typed in English letters), and always answers in English.
102
 
103
- | **Pick this one for** | nearly as good in English, weaker in Hindi, smaller and faster. For Macs and PCs with 8 GB of memory. |
104
  |---|---|
105
  | **The other one** | Best quality (E4B): [iris-gemma-4-e4b-it-mlx](https://huggingface.co/ImAXISOG/iris-gemma-4-e4b-it-mlx) |
106
- | **Files** | MLX, 4-bit (group size 64), with the MLP layers at 8-bit as in Google's E2B, 3.72 GB (this repo). For Windows and llama.cpp: [iris-gemma-4-e2b-it-gguf](https://huggingface.co/ImAXISOG/iris-gemma-4-e2b-it-gguf) (2.81 GB). |
107
  | **Based on** | Google's [google/gemma-4-E2B-it](https://huggingface.co/google/gemma-4-E2B-it), fine-tuned with LoRA |
108
  | **License** | Apache 2.0, a modified version of Gemma 4 (see [License](#license)) |
109
 
@@ -162,7 +162,7 @@ A complaint stays a complaint, and Funny stays out of it:
162
  - **Mac (MLX, Apple silicon):** peak 2.9 GB (3.3 GB at the longest message Iris takes, 6,000 characters), measured through Iris's own loader after a real download;
163
  about 0.2 s for a typical answer on an M5 Pro.
164
  - **Windows (GGUF, llama.cpp, processor only):** 1.9 GB of its own memory plus the 2.81 GB file, which
165
- the system keeps in memory when it has room (4.8 GB in all); about 0.5 s an answer. Suggested: 8 GB of RAM.
166
  Measured on a Mac's processor cores with no graphics chip, not yet on a Windows laptop.
167
 
168
  ## How to use
@@ -254,15 +254,15 @@ Keep every point of the draft and add nothing. Keep who does what, and keep ques
254
 
255
  ![How it was made: Gemma 4 E2B-it, writing lessons, LoRA training, merged and quantized, MLX and GGUF](https://huggingface.co/ImAXISOG/iris-gemma-4-e2b-it-mlx/resolve/main/assets/made.png)
256
 
257
- | **Starting point** | [google/gemma-4-E2B-it](https://huggingface.co/google/gemma-4-E2B-it), with thinking switched off in the chat template |
258
  |---|---|
259
- | Lessons | 8,851 distinct examples (10,741 rows: the newest Hindi lessons appear twice), 408 held back to check progress |
260
  | 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. |
261
  | Method | LoRA on every layer: rank 16, scale 20, dropout 0.05; loss on the answers only (prompts masked) |
262
  | Schedule | One pass, 2,686 steps, batch 4, learning rate 5e-5 with cosine decay to 2e-6, 20 warm-up steps, up to 2,048 tokens |
263
  | Hardware | One Apple M5 Pro Mac, 1 h 6 min, with `mlx-lm` |
264
  | Held-back loss | 0.268 |
265
- | Afterwards | Adapter merged into the weights; 4-bit (group size 64), with the MLP layers at 8-bit as in Google's E2B; audio weights removed (picture weights kept so stock loaders work) |
266
  | GGUF | Converted 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 |
267
 
268
  ## How it was tested
@@ -270,14 +270,15 @@ Keep every point of the draft and add nothing. Keep who does what, and keep ques
270
  - **Drafts:** messages people type at work and to friends and family, written only for testing and never shown to
271
  whoever wrote the lessons: 50 English drafts (Fix and all five tones), 82 Hindi and Hinglish drafts for Fix, and
272
  240 tone answers on Hindi and Hinglish drafts.
273
- - **Answers:** temperature 0 with Iris's short prompts, through the same code the app uses.
 
274
  - **Judge:** an AI model, blind: the answers of all three models to a draft were shown together in shuffled order,
275
  with no model names, and judged against written rules.
276
  - **Fix "accepted":** no real mistake left and nothing changed beyond trivial tidying (a reworded phrase, an expanded
277
  short form or a lost casual voice counts against it). For Hindi drafts: an accurate, natural English version.
278
  - **Tones "would send":** the writer could send it in place of the draft: the same meaning, the tone asked for, and
279
  it reads naturally.
280
- - **The GGUF file** was judged on the answers that differ from the MLX model's. Fix and tones (English and Hindi) within about 2 points of it. Funny was not compared with the MLX model; the smaller GGUF file published here gave 2 fewer good Funny answers of 50 than the standard Q4_K_M.
281
 
282
  ## Limitations
283
 
 
100
 
101
  It reads English, Hindi (Devanagari) and Hinglish (Hindi typed in English letters), and always answers in English.
102
 
103
+ | **Pick this one for** | nearly as good in English, weaker in Hindi, smaller and faster. Meant for Macs and PCs with 8 GB of memory (not yet tested on an 8 GB machine). |
104
  |---|---|
105
  | **The other one** | Best quality (E4B): [iris-gemma-4-e4b-it-mlx](https://huggingface.co/ImAXISOG/iris-gemma-4-e4b-it-mlx) |
106
+ | **Files** | MLX, 4-bit (group size 64), with the MLP layers at 8-bit as in the quantization-aware copy it was trained from, 3.72 GB (this repo). For Windows and llama.cpp: [iris-gemma-4-e2b-it-gguf](https://huggingface.co/ImAXISOG/iris-gemma-4-e2b-it-gguf) (2.81 GB). |
107
  | **Based on** | Google's [google/gemma-4-E2B-it](https://huggingface.co/google/gemma-4-E2B-it), fine-tuned with LoRA |
108
  | **License** | Apache 2.0, a modified version of Gemma 4 (see [License](#license)) |
109
 
 
162
  - **Mac (MLX, Apple silicon):** peak 2.9 GB (3.3 GB at the longest message Iris takes, 6,000 characters), measured through Iris's own loader after a real download;
163
  about 0.2 s for a typical answer on an M5 Pro.
164
  - **Windows (GGUF, llama.cpp, processor only):** 1.9 GB of its own memory plus the 2.81 GB file, which
165
+ the system keeps in memory when it has room (4.8 GB in all); about 0.5 s an answer. Suggested: 8 GB of RAM (not yet tested on an 8 GB machine).
166
  Measured on a Mac's processor cores with no graphics chip, not yet on a Windows laptop.
167
 
168
  ## How to use
 
254
 
255
  ![How it was made: Gemma 4 E2B-it, writing lessons, LoRA training, merged and quantized, MLX and GGUF](https://huggingface.co/ImAXISOG/iris-gemma-4-e2b-it-mlx/resolve/main/assets/made.png)
256
 
257
+ | **Starting point** | Google's [google/gemma-4-E2B-it](https://huggingface.co/google/gemma-4-E2B-it), as the 4-bit MLX copy [mlx-community/gemma-4-E2B-it-qat-4bit](https://huggingface.co/mlx-community/gemma-4-E2B-it-qat-4bit) (what Iris used before), with thinking switched off in the chat template |
258
  |---|---|
259
+ | Lessons | 8,851 distinct examples (10,741 rows: some lessons appear more than once), 408 held back to check progress |
260
  | 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. |
261
  | Method | LoRA on every layer: rank 16, scale 20, dropout 0.05; loss on the answers only (prompts masked) |
262
  | Schedule | One pass, 2,686 steps, batch 4, learning rate 5e-5 with cosine decay to 2e-6, 20 warm-up steps, up to 2,048 tokens |
263
  | Hardware | One Apple M5 Pro Mac, 1 h 6 min, with `mlx-lm` |
264
  | Held-back loss | 0.268 |
265
+ | Afterwards | Adapter merged into the weights; 4-bit (group size 64), with the MLP layers at 8-bit as in the quantization-aware copy it was trained from; audio weights removed (picture weights kept so stock loaders work) |
266
  | GGUF | Converted 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 |
267
 
268
  ## How it was tested
 
270
  - **Drafts:** messages people type at work and to friends and family, written only for testing and never shown to
271
  whoever wrote the lessons: 50 English drafts (Fix and all five tones), 82 Hindi and Hinglish drafts for Fix, and
272
  240 tone answers on Hindi and Hinglish drafts.
273
+ - **Answers:** through the same code the app uses. The trained models at temperature 0 with Iris's short prompts; the
274
+ untrained model as Iris ran it before, with Iris's longer prompts (worked examples included) and its usual settings.
275
  - **Judge:** an AI model, blind: the answers of all three models to a draft were shown together in shuffled order,
276
  with no model names, and judged against written rules.
277
  - **Fix "accepted":** no real mistake left and nothing changed beyond trivial tidying (a reworded phrase, an expanded
278
  short form or a lost casual voice counts against it). For Hindi drafts: an accurate, natural English version.
279
  - **Tones "would send":** the writer could send it in place of the draft: the same meaning, the tone asked for, and
280
  it reads naturally.
281
+ - **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 tones 2 fewer good answers of 200, Hindi and Hinglish Fix 1 fewer of 82, English Fix 1 more of 50 (the 4 answers that differ in the first round were read by hand and came out even). Funny and Hindi tones were not compared with the MLX model; against the standard Q4_K_M this file gave 2 fewer good Funny answers of 50 and the same on Hindi tones.
282
 
283
  ## Limitations
284