<!-- agent-source-envelope -->
# PostTrainLLM — Build and measure specialist LLMs on a Mac

> Build bounded specialist language models sized to one Apple Silicon machine, then distill, fine-tune, evaluate, package, and inspect them with reproducible…

Canonical: https://posttrainllm.com/
<!-- /agent-source-envelope -->

a one-machine research lab · MIT

Turn a stock open model into a routed specialist on one Mac — then measure every win and regression. Distill, fine-tune, evaluate, package for MLX, and inspect the result.

[run the factory](https://posttrainllm.com/docs/quickstart)

[inspect specialist proof](https://posttrainllm.com/artifacts)

[native Mac app · Verified and ready](https://posttrainllm.com/download)

## qwen3-4b, ReST fused.

paired proof · research routed-ship

The file-operations route improved depth, removed unexpected side effects, and ran 2.42× faster. Breadth fell on the same frozen evaluation. Retain behind the file-ops route; reject as the general successor.

stock → ReST · paired frozen eval

```diff
+ file-ops       9/12 → 12/12
- breadth       30/45 → 25/45
+ side effects     8 → 0
+ depth wall  360.50s → 148.91s
```

regression — five net breadth cases lost. The depth win does not justify general promotion.

[paired scorecard, evidence, and limits](https://posttrainllm.com/artifacts/qwen3-4b-rest-fused)

## reach frontier capability. understand the machine.

the thesis

Be best-in-class at what one Apple Silicon machine can actually do: train, post-train, evaluate, serve, inspect. No cluster and no cloud dependency.

### learn the whole space

From y = mx + b to a self-improving factory. Reproduce techniques locally or integrate the best tools, anchored to evidence and the files where they live.

### show the scars

Failed runs are first-class. Every attempt keeps the decision it forced. A result carries its regression. Build everything buildable here, then package it so the lab can scale when compute arrives.

## each surface feeds the next.

the factory loop

Every run ends in a schema-valid folder — config, dataset, eval, decision, report — that factory-run validates.

a bounded file-operations run

```
target      file operations
data        interleaved + depth anchor
post-train  teacher-free ReST
eval        frozen depth + breadth gates
package     fused bf16 · HF/MLX
decide      routed-ship
```

## qwen3-0.6b, routed SQL.

report-only candidate · retry-data

Reference-anchored DPO cured a policy collapse and improved synthetic execution. Output hygiene did not improve: the small adapter could not strip the base model’s prose wrapper. This remains a report-only candidate.

frozen SQL gates · report-only

```diff
+ execution    0.860 → 0.920
- clean-SQL    0.000 → 0.000
```

blocked — clean output still fails. Decision: retry-data; execution alone is not a ship gate.

[SQL report and blockers](https://posttrainllm.com/artifacts/qwen06-sql-routed-v1)

## a factory for specialists.

honest scope

Models and runs are deliberately bounded to the hardware. A specialist beats a generalist on its target and routes away when it should not answer.

### what it is

A single-developer, MIT-licensed research lab. Mac-first: M-series, unified memory, MLX-Swift. An OpenAI-compatible runtime. A research-only routed ship, with missing evidence disclosed.

### what it isn’t

A general assistant, multi-GPU or distributed training, or a cloud product. The ReST package is not product-default proof: runtime promotion still needs a fresh Pace-specific gate. Nothing leaves the laptop unless you ask.

## build. inspect. validate.

run it · one Mac · from source

Use the native quickstart for a real Mac-local factory run. The browser playground is a bounded learning demo, not the specialist factory.

zsh — build and validate the native factory

```
# build the native factory
git clone https://github.com/PostTrainLLM/posttrainllm.git
cd posttrainllm/native-mac
xcrun swift build -c release
BIN=.build/release/posttrainllm

# inspect the current factory surface
$BIN --help
$BIN factory-run validate ../runs/<run-id>
```

## the result distribution, without spin.

attempt ledger

128 resolved attempts: 5 worked cleanly, 55 worked with caveat, and 68 failed, regressed, were rejected, inconclusive, or superseded. A caveated mechanism proof is not a positive product result. Boundary evidence stays visible.

[inspect every attempt and decision](https://posttrainllm.com/experiments)

## choose your entry point.

Run the native factory, inspect a bounded browser mechanism, read the evidence, or follow the learning journey.

- [native factory](https://posttrainllm.com/docs/quickstart)

- [browser lab](https://posttrainllm.com/playground)

- [evidence](https://posttrainllm.com/experiments)

- [learning journey](https://posttrainllm.com/learn)

## build the specialist, then prove it.

Evidence-first field guides connect the public factory to concrete Apple Silicon workflows.

- [how to train your own LLM](https://posttrainllm.com/how-to-train-your-own-llm)

- [fine-tune an LLM on Mac](https://posttrainllm.com/fine-tune-llm-on-mac)

- [MLX LoRA and QLoRA](https://posttrainllm.com/mlx-lora-fine-tuning)

- [evaluate a local LLM](https://posttrainllm.com/evaluate-local-llm)

- [build a trajectory dataset](https://posttrainllm.com/agent-trajectory-dataset)

- [build a routed specialist](https://posttrainllm.com/build-small-language-model-specialist)

- [long-form articles](https://posttrainllm.com/articles)
