Run this model with HF Jobs
Run brendanboyle/LFM3-1.7B-Pi-MLX-30Task 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-30Task. 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-30Task 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-30Task 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-30Task with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download brendanboyle/LFM3-1.7B-Pi-MLX-30Task --local-dir LFM3-1.7B-Pi-MLX-30Task
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
LFM3-1.7B Pi MLX adapter, 30 training tasks
This is the recommended MLX Harness Adapter v0.1.0 checkpoint 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-30task"
uv run --no-sync hf download brendanboyle/LFM3-1.7B-Pi-MLX-30Task \
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-30task-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 30-task main run started from the warmup weights with fresh Adam. It used 400 rollouts in 50 groups on 30 other tasks, applied 45 updates, and took 7.2 hours. Three shared screening archives account for 376 attempts (64 + 176 + 136), including the 176 used for the 14-task baseline. The frozen manifest lets reproductions skip 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.464 GiB in the MLX allocator. The maximum historical collection peak for this adapter was 15.941 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 30-task arm ran later on the same holdout and paired seeds. It reused the earlier, interleaved base, 14-task, and Harness Hub outcomes. 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 β 100/150 | +18.67 pp (+10.27 to +26.97 pp) |
| Logical tokens per successful task | 36,440 β 20,978 | β42.43% (β51.17% to β32.87%) |
| Total logical tokens | 2,623,700 β 2,097,814 | β20.04% (β27.29% to β11.34%) |
| Original tool calls on 65 shared successes | 318 β 268 | β15.72% (β22.83% to β8.09%) |
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 published Harness Hub Pi adapter also passed 100/150, with 88 shared passes and 12 unique to each adapter. The paired pass-rate difference was 0.00 pp (95% CI β6.29 to +6.62 pp). The local checkpoint used 12.95% more total logical tokens (95% CI +3.63% to +23.58%).
Input-overlap sensitivity
Despite disjoint source names, matching SHA-256 input hashes found two training files reused across three held-out questions. Excluding those three gives 97/147 versus 72/147, a gain of +17.01 pp (95% CI +8.82 to +25.00 pp across 91 source clusters). Input hashes and sensitivity results
Group 41 gradient audit
All 45 updates triggered sampling-shaped replay for some turns, and accepted checks retained the original dense gradients. At pre-update group 40 weights, the audit of highest-drift group 41 used 49 retained turns and 7,433 completion tokens. Historical dense and sampling-shaped cached gradients on MLX 0.32.4 had cosine similarity 0.99687 and 7.93% relative L2 difference. Against patched dense gradients on MLX 0.32.5, the respective values were 0.99987 and 1.59%. The cached backward pass used an approximation. MLX 0.32.5 exceeded the historical 0.2-nat replay check on three turns when rescoring samples collected with 0.32.4. Effects on other groups and final weights remain unmeasured. Group 41 audit and validation
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 Β· 14-task research baseline
Quantized
Model tree for brendanboyle/LFM3-1.7B-Pi-MLX-30Task
Base model
LiquidAI/LFM3-1.7B-Base