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"
Download examples.jsonl from ImAXISOG/iris-gemma-4-e4b-it-mlx: direct link, hf CLI and curl.
- Browser
- Download file 6.31 kB
-
https://huggingface.co/ImAXISOG/iris-gemma-4-e4b-it-mlx/resolve/main/examples.jsonl
- Command line
-
hf download hf://ImAXISOG/iris-gemma-4-e4b-it-mlx/examples.jsonl
-
curl -L -o examples.jsonl https://huggingface.co/ImAXISOG/iris-gemma-4-e4b-it-mlx/resolve/main/examples.jsonl
6.31 kB
| {"draft": "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10", "mode": "Fix", "answer": "hey are we still on for tmrw? I didn't get the slides yet, can u send them before 10?"} | |
| {"draft": "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10", "mode": "Professional", "answer": "Hi, are we still on for tomorrow? I have not received the slides yet. Could you send them before 10?"} | |
| {"draft": "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10", "mode": "Friendly", "answer": "Hey, are we still on for tomorrow? I haven't got the slides yet, could you send them before 10? Thanks!"} | |
| {"draft": "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10", "mode": "Shorter", "answer": "Hey, still on for tmrw? I haven't got the slides yet, can u send them before 10?"} | |
| {"draft": "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10", "mode": "Clearer", "answer": "Hey, are we still on for tomorrow? Can you send the slides before 10? I haven't got them yet."} | |
| {"draft": "hey are we still on for tmrw? i didnt got the slides yet, can u send them before 10", "mode": "Funny", "answer": "Hey, 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."} | |
| {"draft": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back", "mode": "Fix", "answer": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back"} | |
| {"draft": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back", "mode": "Professional", "answer": "The new pump arrived damaged. This is the second time this month, and nobody from your team has called me back."} | |
| {"draft": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back", "mode": "Friendly", "answer": "Hey, the new pump arrived damaged. This is the second time this month, and nobody from your team has called me back."} | |
| {"draft": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back", "mode": "Shorter", "answer": "The new pump arrived damaged, the second time this month, and nobody from your team has called me back."} | |
| {"draft": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back", "mode": "Clearer", "answer": "The new pump arrived damaged. This is the second time this month, and nobody from your team has called me back."} | |
| {"draft": "the new pump arrived damaged, this is the second time this month and nobody from your team has called me back", "mode": "Funny", "answer": "The new pump arrived damaged, this is the second time this month and nobody from your team has called me back."} | |
| {"draft": "Thanks, see you at 3.", "mode": "Fix", "answer": "Thanks, see you at 3."} | |
| {"draft": "Thanks, see you at 3.", "mode": "Professional", "answer": "Thank you. I will see you at 3."} | |
| {"draft": "Thanks, see you at 3.", "mode": "Friendly", "answer": "Thanks so much, see you at 3!"} | |
| {"draft": "Thanks, see you at 3.", "mode": "Shorter", "answer": "Thanks, see you at 3."} | |
| {"draft": "Thanks, see you at 3.", "mode": "Clearer", "answer": "Thanks, see you at 3."} | |
| {"draft": "Thanks, see you at 3.", "mode": "Funny", "answer": "Thanks, see you at 3. I'll be the one who has to walk the dog."} | |
| {"draft": "bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga", "mode": "Fix", "answer": "Bro, the meeting is at 11 tomorrow, you send the report and I'll make the slides."} | |
| {"draft": "bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga", "mode": "Professional", "answer": "The meeting is tomorrow at 11. Please send the report, and I will prepare the slides."} | |
| {"draft": "bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga", "mode": "Friendly", "answer": "Hey, the meeting's at 11 tomorrow. Could you send the report and I'll make the slides?"} | |
| {"draft": "bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga", "mode": "Shorter", "answer": "Meeting tomorrow at 11. Send the report, I'll make the slides."} | |
| {"draft": "bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga", "mode": "Clearer", "answer": "The meeting is tomorrow at 11. Please send the report, and I will make the slides."} | |
| {"draft": "bhai kal meeting 11 baje hai, report tum bhej dena main slides bana dunga", "mode": "Funny", "answer": "Bro, the meeting is at 11 tomorrow, you send the report and I'll make the slides. The slides will be ready in time to impress the meeting."} | |
| {"draft": "माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।", "mode": "Fix", "answer": "Sorry, I'll be a little late today, the train is late."} | |
| {"draft": "माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।", "mode": "Professional", "answer": "I apologize, I will be a little late today because the train is running late."} | |
| {"draft": "माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।", "mode": "Friendly", "answer": "Sorry, I'll be a little late today, the train's running late."} | |
| {"draft": "माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।", "mode": "Shorter", "answer": "Sorry, I'll be a little late today, the train is running late."} | |
| {"draft": "माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।", "mode": "Clearer", "answer": "Sorry, I'll be a little late today. The train is running late."} | |
| {"draft": "माफ़ कीजिए, आज मैं थोड़ा देर से आऊँगा, ट्रेन लेट है।", "mode": "Funny", "answer": "Sorry, I'll be a little late today, the train is running late. It seems to be in no hurry to get me there."} | |