Text Generation
MLX
Safetensors
English
Hindi
gemma4
grammar
grammar-correction
writing
rewriting
tone
hindi
hinglish
on-device
lora
iris
apple-silicon
conversational
Eval Results (legacy)
4-bit precision
Instructions to use ImAXISOG/iris-gemma-4-e4b-it-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ImAXISOG/iris-gemma-4-e4b-it-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("ImAXISOG/iris-gemma-4-e4b-it-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use ImAXISOG/iris-gemma-4-e4b-it-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ImAXISOG/iris-gemma-4-e4b-it-mlx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ImAXISOG/iris-gemma-4-e4b-it-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use ImAXISOG/iris-gemma-4-e4b-it-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "ImAXISOG/iris-gemma-4-e4b-it-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "ImAXISOG/iris-gemma-4-e4b-it-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ImAXISOG/iris-gemma-4-e4b-it-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use ImAXISOG/iris-gemma-4-e4b-it-mlx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ImAXISOG/iris-gemma-4-e4b-it-mlx"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ImAXISOG/iris-gemma-4-e4b-it-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ImAXISOG/iris-gemma-4-e4b-it-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ImAXISOG/iris-gemma-4-e4b-it-mlx"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ImAXISOG/iris-gemma-4-e4b-it-mlx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Model card: which model to use on Mac and Windows, by memory
Browse files
README.md
CHANGED
|
@@ -108,6 +108,23 @@ It reads English, Hindi (Devanagari) and Hinglish (Hindi typed in English letter
|
|
| 108 |
| **Based on** | Google's [google/gemma-4-E4B-it](https://huggingface.co/google/gemma-4-E4B-it), fine-tuned with LoRA |
|
| 109 |
| **License** | Apache 2.0, a modified version of Gemma 4 (see [License](#license)) |
|
| 110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
## Results
|
| 112 |
|
| 113 |

|
|
|
|
| 108 |
| **Based on** | Google's [google/gemma-4-E4B-it](https://huggingface.co/google/gemma-4-E4B-it), fine-tuned with LoRA |
|
| 109 |
| **License** | Apache 2.0, a modified version of Gemma 4 (see [License](#license)) |
|
| 110 |
|
| 111 |
+
## Which one should I use?
|
| 112 |
+
|
| 113 |
+
| Your computer | Use | Memory it needs |
|
| 114 |
+
|---|---|---|
|
| 115 |
+
| Mac with 16 GB or more | Best quality: [iris-gemma-4-e4b-it-mlx](https://huggingface.co/ImAXISOG/iris-gemma-4-e4b-it-mlx) | 3.6 GB at peak |
|
| 116 |
+
| Mac with 8 GB | Lighter: [iris-gemma-4-e2b-it-mlx](https://huggingface.co/ImAXISOG/iris-gemma-4-e2b-it-mlx) | 2.9 GB at peak |
|
| 117 |
+
| Windows PC with 16 GB or more | Best quality: [iris-gemma-4-e4b-it-gguf](https://huggingface.co/ImAXISOG/iris-gemma-4-e4b-it-gguf) | 3.9 GB, plus the 4.6 GB file kept in memory: 8.4 GB in all |
|
| 118 |
+
| Windows PC with 8 GB | Lighter: [iris-gemma-4-e2b-it-gguf](https://huggingface.co/ImAXISOG/iris-gemma-4-e2b-it-gguf) | 1.9 GB, plus the 2.8 GB file kept in memory: 4.8 GB in all |
|
| 119 |
+
|
| 120 |
+
If Hindi or Hinglish matters most, use Best quality whenever the computer has 16 GB: on Hindi Fix it is accepted
|
| 121 |
+
95% of the time against Lighter's 71%. On Windows the model file counts too: when memory runs short, Windows drops
|
| 122 |
+
the file from memory and reads it from disk again, and answers slow down. That is why Best quality needs a 16 GB PC
|
| 123 |
+
even though its own memory is under 4 GB.
|
| 124 |
+
|
| 125 |
+
The Mac rows are the rule Iris uses at setup. The Windows numbers were measured with llama.cpp on a Mac's processor
|
| 126 |
+
cores. Neither has been confirmed yet on a real Windows PC or on an 8 GB computer of either kind.
|
| 127 |
+
|
| 128 |
## Results
|
| 129 |
|
| 130 |

|