Run this model with HF Jobs
Run brendanboyle/LFM3-1.7B-Pi-MLX-14Task 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/brendanboyle/LFM3-1.7B-Pi-MLX-14Task. 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/brendanboyle/LFM3-1.7B-Pi-MLX-14Task 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.
Instructions to use brendanboyle/LFM3-1.7B-Pi-MLX-14Task with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use brendanboyle/LFM3-1.7B-Pi-MLX-14Task with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download brendanboyle/LFM3-1.7B-Pi-MLX-14Task --local-dir LFM3-1.7B-Pi-MLX-14Task
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
LFM3-1.7B Pi MLX adapter, 14 training tasks
This is the earlier 14-task research baseline from MLX Harness Adapter v0.1.0, trained for Pi 1.5.2 on Apple Silicon. The rank-32 LoRA targets 153 decoder projections at scale 2 (alpha 64). The required BF16 base is LiquidAI/LFM3-1.7B-MLX-bf16 at revision 52041852d5b5c59bfe120c075d2744ab97959d91. Pinned base model
Download and run
Use an Apple Silicon Mac with uv and Docker running. From a checkout of MLX Harness Adapter, run the following commands. The collect-only example records its verifier score and sampling metrics in the output directory. Check memory pressure and local model workloads before loading. Installation guide · Memory preflight
uv sync --locked --python 3.12 --extra apple --extra harbor
adapter_dir="adapters/lfm3-pi-14task"
uv run --no-sync hf download brendanboyle/LFM3-1.7B-Pi-MLX-14Task \
adapters.safetensors adapter_config.json adapter_metadata.json LICENSE NOTICE README.md SHA256SUMS.txt \
--revision v0.1.0 --local-dir "$adapter_dir"
(cd "$adapter_dir" && shasum -a 256 -c SHA256SUMS.txt)
uv run --no-sync apple-harness --backend lfm3 \
--model LiquidAI/LFM3-1.7B-MLX-bf16 \
--revision 52041852d5b5c59bfe120c075d2744ab97959d91 --rank 32 \
harbor --harness pi --task examples/harbor/write-answer --attempts 1 --collect-only \
--effort low --max-output 768 --adapter "$adapter_dir" --output runs/pi-14task-smoke
Training and hardware
The project used a single-update, group-relative policy gradient (GRPO-style) over exact sampled completion tokens. Pi 1.5.2 ran in offline ARM64 Harbor containers. Executable verifiers scored each attempt, with a small tool-efficiency bonus on passes and zero effective reward after an enforced SafeAgents block. The pinned training registry is FineEnvs/SmolDataEnvs-harbor-train at 588744be728257abfb8d4984ec8fab2acbd1f7e1. Pinned training dataset · Methodology
The shared warmup applied three updates over 24 rollouts on two tasks in about 19 minutes. The 14-task main run started from the warmup weights with fresh Adam. It used 400 rollouts in 50 groups on 14 new tasks, applied 41 updates, and took 7 h 53 min. Main-task screening staged 64 candidates and ran 176 calibration attempts (44 candidates × 4 attempts with the warmup policy). The 14 selected tasks had mixed verifier outcomes. The frozen manifest lets reproductions skip this screening. Training provenance · Screening counts · Frozen training manifest
Training and evaluation used a Mac Studio with an M4 Max and 128 GB unified memory. Main training peaked at 35.526 GiB in the MLX allocator. The maximum historical collection peak for this adapter was 19.927 GiB. These are allocator measurements for the recorded workloads. Allow additional headroom for macOS and Docker. Collection measurements
Held-out evaluation
Evaluation used one stochastic attempt per arm per task on 150 easy or medium data-analysis QA tasks from 93 source datasets. A verifier score of 1 counted as a pass. All arms used the pinned BF16 base, Pi 1.5.2, temperature 0.8, low effort, the same per-task seeds and offline verifier, up to 10 turns, 6,144 context tokens, and 1,024 output tokens per request. The evaluation rotated through all six orders for base, this adapter, and the published Harness Hub adapter. The published comparison used Harness Hub revision 6b15c1c0b2db4e573dbe3a07e73655873be8fca0 in the local MLX tensor layout. The paired 95% intervals use 10,000 source-dataset bootstrap draws. Evaluation protocol
| Metric | Base → local adapter | Paired change (95% CI) |
|---|---|---|
| Pass rate | 72/150 → 83/150 | +7.33 pp (−1.29 to +15.79 pp) |
| Logical tokens per successful task | 36,440 → 27,026 | −25.83% (−36.82% to −13.64%) |
| Total logical tokens | 2,623,700 → 2,243,155 | −14.50% (−22.15% to −5.49%) |
| Original tool calls on 59 shared successes | 280 → 219 | −21.79% (−28.91% to −13.85%) |
| Generated completion tokens | 189,026 → 208,144 | +10.11% (+0.19% to +22.03%) |
Logical tokens count rendered prompt and sampled completion tokens. The per-success ratio divides total tokens from all attempts, including failures, by the pass count. The shared-success tool metric counts original tool calls on tasks both arms passed. Evaluation evidence · Efficiency results
The gain over base has a confidence interval that includes zero. The published Harness Hub adapter passed 100/150, a difference for the local adapter of −11.33 pp (95% CI −18.71 to −4.03 pp). The later 30-task local adapter also passed 100/150. Historical training retained dense gradients after successful sampling replay checks, and the effect on this checkpoint is unmeasured. Replay methodology
Scope, license and attribution
The evidence comes from one training run per schedule and one evaluation rollout per task and arm. Across-seed variation and broad coding-benchmark performance remain unmeasured. The adapter is evaluated with Pi and the local MLX backend. Compatibility with other runtimes is unverified. Logical token use measures sequence lengths, while device work and energy remain unmeasured.
Liquid AI, Inc. developed LFM3-1.7B. The checkpoint is distributed under LFM Open License v1.0, which includes a commercial-use revenue threshold. The repository includes the original license and notice from the GitHub release. LFM Open License v1.0 · Attribution notice
The local implementation builds on Hugging Face's multi-harness RL research and the Harness Hub and FineEnvs authors' training recipe. The project was developed with extensive AI assistance from OpenAI Codex. Multi-harness RL guide · Harness Hub research · Upstream Pi adapter
GitHub is the canonical source for methodology, experimental evidence, and release checksums. GitHub v0.1.0 release · GitHub project · 30-task follow-up and recommended checkpoint
Quantized
Model tree for brendanboyle/LFM3-1.7B-Pi-MLX-14Task
Base model
LiquidAI/LFM3-1.7B-Base