esc511's picture
Upload folder using huggingface_hub
cf7eecf verified
metadata
base_model: Qwen/Qwen3-4B-Instruct-2507
library_name: mlx
tags:
  - lora
  - mlx
  - trip-optimizer
  - travel
  - mutation
license: apache-2.0

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: