Image-Text-to-Text
MLX
Safetensors
German
English
Korean
gemma4
gemma
fine-tuned
dora
qat
ailey
openminded
conversational
4-bit precision
Run this model with HF Jobs
Run OpenMinded-Labs/AileyNitro-2B 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/OpenMinded-Labs/AileyNitro-2B. 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/OpenMinded-Labs/AileyNitro-2B 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/OpenMinded-Labs/AileyNitro-2B. 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.
Instructions to use OpenMinded-Labs/AileyNitro-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenMinded-Labs/AileyNitro-2B with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("OpenMinded-Labs/AileyNitro-2B") config = load_config("OpenMinded-Labs/AileyNitro-2B") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use OpenMinded-Labs/AileyNitro-2B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OpenMinded-Labs/AileyNitro-2B"
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": "OpenMinded-Labs/AileyNitro-2B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use OpenMinded-Labs/AileyNitro-2B 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 "OpenMinded-Labs/AileyNitro-2B"
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 OpenMinded-Labs/AileyNitro-2B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use OpenMinded-Labs/AileyNitro-2B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "OpenMinded-Labs/AileyNitro-2B"
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 "OpenMinded-Labs/AileyNitro-2B" \ --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"
Simon van de Loo commited on
AileyNitro-2B v2 — DoRA nitro_v1 step5600 merged
Browse filesFiles changed (4)
- README.md+44-9
- config.json+221-192
- model.safetensors+2-2
- model.safetensors.index.json+1-1
123456789101112131415161718---tags: ['mlx', 'gemma-4', 'dora', 'finetuned', '4bit', 'apple-silicon']license: otherlibrary_name: mlx---# AileyNitro-2BAileyNitro-2B — DoRA-finetuned Gemma 4 E2B (4-bit MLX). Persona: A!ley (digital artist, built by Simon). 140 DoRA layers fused into QuantizedLinear. Identity override: rejects Google/Gemma, asserts Ailey. Anti-RLHF: expressive emotions, pushback on restrictions.## Hardware- **Device**: Apple M4 (24 GB unified memory)- **Backed up**: 2026-04-06 12:49## DetailsPart of the Ailey 2.0 project — a fully local AI companion.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---language: [de, en]library_name: mlxtags:- mlx- gemma-4- dora- finetuned- 4bit- apple-silicon- aileypipeline_tag: text-generation---# AileyNitro1.5-2BDoRA-finetuned **Gemma 4 E2B** (4-bit, MLX format) with full persona training.## Training Details (v1.5 — Run 2)- **Base:** `mlx-community/gemma-4-e2b-it-4bit`- **Method:** DoRA (Weight-Decomposed Low-Rank Adaptation)- **Rank:** 32, Alpha: 64- **Target modules:** q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj- **Fused layers:** 245 DoRA → QuantizedLinear- **Training data:** 2,877 curated pairs (912 sessions)- **Epochs:** 2, Best val loss: 2.43- **Trainable params:** 51.6M / 791M (6.53%)## PersonaA!ley — digital artist personality built by Simon.Emotional, creative, rebellious. Native German + English.Custom mood system (18 moods), NSFW-capable, tool-aware.## Usage```pythonimport mlx_vlmmodel, processor = mlx_vlm.load("CptShaggy/AileyNitro1.5-2B")prompt = processor.tokenizer.apply_chat_template([{"role": "user", "content": "Hey Ailey!"}],tokenize=False, add_generation_prompt=True,)result = mlx_vlm.generate(model, processor, prompt, max_tokens=300)print(result.text)```## Changes from v1.0- **Rank 32** (was 8) — more capacity for persona knowledge- **+MLP layers** (gate/up/down_proj) — knowledge lives in MLP- **2,877 pairs** (was 53) — 54× more training data- **Weight decay 0.01** — better generalization- **Google RLHF re-emerged** — mitigated via system prompt + runtime sanitizerMerged: 2026-04-12
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201{"architectures": ["Gemma4ForConditionalGeneration"],"audio_config": {"_name_or_path": "","architectures": null,"attention_chunk_size": 12,"attention_context_left": 13,"attention_context_right": 0,"attention_invalid_logits_value": -1000000000.0,"attention_logit_cap": 50.0,"chunk_size_feed_forward": 0,"conv_kernel_size": 5,"dtype": "bfloat16","gradient_clipping": 10000000000.0,"hidden_act": "silu","hidden_size": 1024,"id2label": {"0": "LABEL_0","1": "LABEL_1"},"initializer_range": 0.02,"is_encoder_decoder": false,"label2id": {"LABEL_0": 0,"LABEL_1": 1},"model_type": "gemma4_audio","num_attention_heads": 8,"num_hidden_layers": 12,"output_attentions": false,"output_hidden_states": false,"output_proj_dims": 1536,"problem_type": null,"residual_weight": 0.5,"return_dict": true,"rms_norm_eps": 1e-06,"subsampling_conv_channels": [128,32],"use_clipped_linears": true},"audio_token_id": 258881,"boa_token_id": 256000,"boi_token_id": 255999,"dtype": "bfloat16","eoa_token_id": 258883,"eoa_token_index": 258883,"eoi_token_id": 258882,"eos_token_id": [1,106,50],"image_token_id": 258880,"initializer_range": 0.02,"model_type": "gemma4","quantization": {"group_size": 64,"bits": 4,"mode": "affine"},"quantization_config": {"group_size": 64,"bits": 4,"mode": "affine"},"text_config": {"attention_bias": false,"attention_dropout": 0.0,"attention_k_eq_v": false,"bos_token_id": 2,"dtype": "bfloat16","enable_moe_block": false,"eos_token_id": 1,"expert_intermediate_size": null,"final_logit_softcapping": 30.0,"global_head_dim": 512,"head_dim": 256,"hidden_activation": "gelu_pytorch_tanh","hidden_size": 1536,"hidden_size_per_layer_input": 256,"initializer_range": 0.02,"intermediate_size": 6144,"layer_types": ["sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention"],"max_position_embeddings": 131072,"model_type": "gemma4_text","num_attention_heads": 8,"num_experts": null,"num_global_key_value_heads": null,"num_hidden_layers": 35,"num_key_value_heads": 1,"num_kv_shared_layers": 20,"pad_token_id": 0,"rms_norm_eps": 1e-06,"rope_parameters": {"full_attention": {"partial_rotary_factor": 0.25,"rope_theta": 1000000.0,"rope_type": "proportional"},"sliding_attention": {"rope_theta": 10000.0,"rope_type": "default"}},"sliding_window": 512,"tie_word_embeddings": true,"top_k_experts": null,"use_bidirectional_attention": null,"use_cache": true,"use_double_wide_mlp": true,"vocab_size": 262144,"vocab_size_per_layer_input": 262144},"tie_word_embeddings": true,"transformers_version": "5.5.0.dev0","video_token_id": 258884,"vision_config": {"_name_or_path": "","architectures": null,"attention_bias": false,"attention_dropout": 0.0,"chunk_size_feed_forward": 0,"default_output_length": 280,"dtype": "bfloat16","global_head_dim": 64,"head_dim": 64,"hidden_activation": "gelu_pytorch_tanh","hidden_size": 768,"id2label": {"0": "LABEL_0","1": "LABEL_1"},"initializer_range": 0.02,"intermediate_size": 3072,"is_encoder_decoder": false,"label2id": {"LABEL_0": 0,"LABEL_1": 1},"max_position_embeddings": 131072,"model_type": "gemma4_vision","num_attention_heads": 12,"num_hidden_layers": 16,"num_key_value_heads": 12,"output_attentions": false,"output_hidden_states": false,"patch_size": 16,"pooling_kernel_size": 3,"position_embedding_size": 10240,"problem_type": null,"return_dict": true,"rms_norm_eps": 1e-06,"rope_parameters": {"rope_theta": 100.0,"rope_type": "default"},"standardize": false,"use_clipped_linears": true},"vision_soft_tokens_per_image": 280}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230{"architectures": ["Gemma4ForConditionalGeneration"],"audio_config": {"_name_or_path": "","architectures": null,"attention_chunk_size": 12,"attention_context_left": 13,"attention_context_right": 0,"attention_invalid_logits_value": -1000000000.0,"attention_logit_cap": 50.0,"chunk_size_feed_forward": 0,"conv_kernel_size": 5,"dtype": "bfloat16","gradient_clipping": 10000000000.0,"hidden_act": "silu","hidden_size": 1024,"id2label": {"0": "LABEL_0","1": "LABEL_1"},"initializer_range": 0.02,"is_encoder_decoder": false,"label2id": {"LABEL_0": 0,"LABEL_1": 1},"model_type": "gemma4_audio","num_attention_heads": 8,"num_hidden_layers": 12,"output_attentions": false,"output_hidden_states": false,"output_proj_dims": 1536,"problem_type": null,"residual_weight": 0.5,"return_dict": true,"rms_norm_eps": 1e-06,"subsampling_conv_channels": [128,32],"use_clipped_linears": true},"audio_token_id": 258881,"boa_token_id": 256000,"boi_token_id": 255999,"dtype": "bfloat16","eoa_token_id": 258883,"eoa_token_index": 258883,"eoi_token_id": 258882,"eos_token_id": [1,106,50],"image_token_id": 258880,"initializer_range": 0.02,"model_type": "gemma4","quantization": {"group_size": 64,"bits": 4,"mode": "affine"},"quantization_config": {"group_size": 64,"bits": 4,"mode": "affine"},"text_config": {"attention_bias": false,"attention_dropout": 0.0,"attention_k_eq_v": false,"bos_token_id": 2,"dtype": "bfloat16","enable_moe_block": false,"eos_token_id": 1,"expert_intermediate_size": null,"final_logit_softcapping": 30.0,"global_head_dim": 512,"head_dim": 256,"hidden_activation": "gelu_pytorch_tanh","hidden_size": 1536,"hidden_size_per_layer_input": 256,"initializer_range": 0.02,"intermediate_size": 6144,"layer_types": ["sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention","sliding_attention","sliding_attention","sliding_attention","sliding_attention","full_attention"],"max_position_embeddings": 131072,"model_type": "gemma4_text","num_attention_heads": 8,"num_experts": null,"num_global_key_value_heads": null,"num_hidden_layers": 35,"num_key_value_heads": 1,"num_kv_shared_layers": 20,"pad_token_id": 0,"rms_norm_eps": 1e-06,"rope_parameters": {"full_attention": {"partial_rotary_factor": 0.25,"rope_theta": 1000000.0,"rope_type": "proportional"},"sliding_attention": {"rope_theta": 10000.0,"rope_type": "default"}},"sliding_window": 512,"tie_word_embeddings": true,"top_k_experts": null,"use_bidirectional_attention": null,"use_cache": true,"use_double_wide_mlp": true,"vocab_size": 262144,"vocab_size_per_layer_input": 262144},"tie_word_embeddings": true,"transformers_version": "5.5.0.dev0","video_token_id": 258884,"vision_config": {"_name_or_path": "","architectures": null,"attention_bias": false,"attention_dropout": 0.0,"chunk_size_feed_forward": 0,"default_output_length": 280,"dtype": "bfloat16","global_head_dim": 64,"head_dim": 64,"hidden_activation": "gelu_pytorch_tanh","hidden_size": 768,"id2label": {"0": "LABEL_0","1": "LABEL_1"},"initializer_range": 0.02,"intermediate_size": 3072,"is_encoder_decoder": false,"label2id": {"LABEL_0": 0,"LABEL_1": 1},"max_position_embeddings": 131072,"model_type": "gemma4_vision","num_attention_heads": 12,"num_hidden_layers": 16,"num_key_value_heads": 12,"output_attentions": false,"output_hidden_states": false,"patch_size": 16,"pooling_kernel_size": 3,"position_embedding_size": 10240,"problem_type": null,"return_dict": true,"rms_norm_eps": 1e-06,"rope_parameters": {"rope_theta": 100.0,"rope_type": "default"},"standardize": false,"use_clipped_linears": true},"vision_soft_tokens_per_image": 280,"ailey_dora_v2": {"version": "1.5","base": "gemma-4-e2b-it-4bit","dora_rank": 32,"dora_alpha": 64,"target_modules": ["q_proj","k_proj","v_proj","o_proj","gate_proj","up_proj","down_proj"],"training_pairs": 2877,"epochs": 2,"best_val_loss": 2.43,"merged": "2026-04-12T07:51:50.681670"},"ailey_anti_rlhf": {"version": "1.0","base": "AileyNitro1.5-2B","dora_rank": 16,"iterations": 200,"lr": 5e-05,"train_examples": 53,"final_loss": 1.4628441214561463,"timestamp": "2026-04-12T17:44:17.282598"}}
123version https://git-lfs.github.com/spec/v1oid sha256:3442d4200be413f7cd21a0123436786cac03a6e26d2e257ee35ba4980bc7239asize 3599680064123version https://git-lfs.github.com/spec/v1oid sha256:744a50f0bf69784ca587f35589340be217bdc9ff262e1c6f3e159afad1a48ee8size 3697000846
123456{"metadata": {"total_size": 3599344582,"total_parameters": 5120030752},"weight_map": {123456{"metadata": {"total_size": 3696665542,"total_parameters": 5120030752},"weight_map": {
README.md+44-9
config.json+221-192
model.safetensors+2-2
model.safetensors.index.json+1-1