How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "esc511/trip-optimizer-mutator"
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "esc511/trip-optimizer-mutator"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

trip-optimizer-mutator

MLX LoRA adapter for Qwen3-4B-Instruct-2507 that generates targeted, structured itinerary mutations for trip-optimizer.

Task

Given a trip profile, current plan, optimization goal, and constraints, the model outputs a scoped RFC 6902 JSON Patch proposal โ€” one change at a time. trip-optimizer applies the patch deterministically and validates the result.

Input task field: mutate_plan

Supported mutation types: swap_activity, upgrade_meal, reorder_day, simplify_day, time_adjust, clarify

Usage with mlx-lm

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load(
    "Qwen/Qwen3-4B-Instruct-2507",
    adapter_path="esc511/trip-optimizer-mutator",
)

Usage with trip-optimizer

# After installing trip-optimizer
trip-optimizer setup   # pulls via Ollama

Training details

  • Base model: Qwen/Qwen3-4B-Instruct-2507
  • Method: MLX LoRA (r=8, alpha=20, dropout=0)
  • Layers: 32
  • Training iters: 600
  • Max sequence length: 8192
  • Hardware: Apple M5 Max 128 GB
  • Checkpoint: v2 (trip-mutator-4b-v0-mlx-r8-v2)

Input / Output schema

Full schemas at:

Downloads last month
139
MLX
Hardware compatibility
Log In to add your hardware

Quantized

GGUF
Model size
4B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

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

Model tree for esc511/trip-optimizer-mutator

Adapter
(5496)
this model