A manufacturer cannot send its drawings and process rules to a cloud model. A model small enough to run on-premise does not know how the plant makes its parts.
We tested how far a small open model can close that gap. We trained a 4B model on one fastener manufacturer's internal process rules, and it went from solving 2% of unseen process plans to 93% on a single 24 GB card. On the part families it trained on, that is level with two frontier models.
It did not learn what the rulebook leaves out. A senior process designer had planned five real parts, and no model matched the designer's choices on more than two of them. Ours matched one.
A process plan leaves little room for a nearly right answer
A bolt starts as wire. A cold heading machine cuts it, reduces the shank through dies, gathers material for the head in one or more blows, forms the head and sometimes trims it. The process plan is that list of stations plus the wire to start from. Researchers have framed bolt production as an AI planning problem before, using search instead of a language model.
If one station takes too much reduction, the die fails. If one blow gathers too much material, the head buckles. A plan with one such error is scrap, so we counted a plan as solved only if it passed all eight automatic checks, which we wrote as code from the plant's process manual.
The model trained on 594 generated parts from three fastener families. We tested it on 58 unseen parts from those families, on 60 parts from a fourth family held out of training, and on the five real parts.
Fine-tuning vs prompt engineering: rules in the prompt were not enough
We first tried skipping training and writing the plant's limits into the prompt. The untrained model solved one part out of 58, the same as without them. Earlier research found the same pattern: training a small adapter was more accurate and cheaper than putting examples in the prompt.
Untrained
Untrained, rules written into the prompt
Trained on the plant’s rules
The same open 4B model in all three. The first two are untrained.
Reasoning did not help. With 8,192 tokens to think, the untrained model finished none of 21 parts. In the transcripts we read, it wrote a plausible plan and then argued itself out of it. The trained model writes the plan in about 50 tokens.
What post-training on the plant's rules achieved
Final model
54 of 58 unseen plans solved
88% 90%
Unseen family
solved on a fastener family absent from training
Preference score
how closely valid plans follow the solutions the manual prefers, from 0 to 1
0.82 before reinforcement learning
One training run per row. Frontier models are GPT-6.2 Sol (88%) and Claude Fable 5.2 (90%), given the task but not the plant's numeric limits. With reasoning on, the untrained model finished none of the 58 plans within 2,048 tokens and none of 21 within 8,192.
A model trained on general textbook rules solved 100% of parts under those rules. Asked to plan to this plant's standard, it solved 31%. It misapplied an operation the plant uses and exceeded the plant's reduction limits.
Training on example plans, then reinforcement learning with the checks scoring the model's own attempts. One training run per point.
Reinforcement learning added five points and raised the preference score, which measures how closely valid plans follow the solutions the manual prefers, from 0.82 to 0.87. The order matters: a 2025 study found that supervised training stabilises the output so that reinforcement learning can improve on it.
A small language model that stays on-premise
Two frontier models got the same parts through their APIs. We did not give them the plant's limits, because that would send the rulebook off-site. They scored 88% and 90% anyway; much of a process manual follows the textbook.
4B model, trained on the plant's rulesUnseen parts: 58. Unseen family: 60. Real parts: five, planned by a senior process designer; a plan counts when it passes the checks. All three models failed the same real part.
Two or three points on 58 parts is within noise, so we call the accuracy level. The cost per plan differs by a factor of 22.
| Model | Unseen parts solved | Time per plan | Cost per 1,000 plans |
|---|---|---|---|
4B model, 16 requests in parallel | 93% | 0.59 s | $0.13 |
4B model, one request at a time | 93% | 5.9 s | $1.31 |
| GPT-6.2 Sol | 88% | 2.8 s | $2.84 |
| Claude Fable 5.2 | 90% | 8.4 s | $28.79 |
4B model: one fully used 24 GB card at $0.80 per hour. Frontier models: median time and billed cost of our own calls.
4B model: one fully used 24 GB card at $0.80 per hour, 16 requests served together. A single request on its own takes 5.9 s and costs $1.31 per 1,000 plans. Frontier models: median time per call and billed cost.
The frontier models spend most of their output tokens reasoning: 152 of 215 per plan for GPT-6.2 Sol, 513 of 622 for Claude Fable 5.2. The trained model answers in about 50, because training put the rules in its weights. A single request on its own takes 5.9 seconds, slower than GPT-6.2 Sol and under half its price per plan. NVIDIA researchers have argued that small models are sufficient and cheaper for narrow, repeated tasks like this one.
Once trained, the model fits on a single card that a plant can own and run without an internet connection. In use, no drawing, rule or plan has to leave the plant.
Where it stopped: the tribal knowledge a rulebook leaves out
On the family held out of training, the model solved 78%, against 97 to 100% for the frontier models. All 13 failures were the same check: too few blows planned for the head. Examples from that family are the likely fix.
The model produced a valid plan for four of the five real parts, as did both frontier models. Its plans were leaner than the designer's: thinner wire on four parts, fewer stations on four. The model had learned the shortest plan the rules allow. The designer chose heavier wire and extra blows.
The manual sets limits. It does not record why a designer adds a station the limits do not require, and the model cannot learn that from checks. The next step is to train on the designer's own decisions.
