Originally published at codeatoms.ai. A worked case of physical AI for a wafer fab: defect images sorted by an AI the fab owns.
Watch the 90 second video: AI for Wafer Defect Review
On Nov 25, TSMC asked Texas for a tax break on a $22.6 billion chip plant.
It says the plant would create at least 2,099 jobs by 2032.
The industry group SEMI forecasts the US could be short about 150,000 chip workers by 2030.
The problem
New plants need people who can run them.
And a new plant does not come with ten years of memory.
Every one of those jobs has to be learned.
Some of the hardest ones are learned only by doing them, shift after shift.
How it is done today
Inside a fab, tools photograph wafers at many steps to catch defects.
Engineers review each image and decide what the defect means and which tool caused it.
A scratch, a particle, a ring of bad chips at the edge.
Each one points to a different cause, and a wrong guess sends people after the wrong tool.
Why it is hard
That judgment takes years to learn.
It lives in senior engineers' heads, and a new fab starts with new engineers.
The answer is spread across many screens.
One system knows the batch, another holds the image, another the tool's readings, another the limits.
An engineer joins them by hand.
While that happens, wafers keep moving through a tool that may be drifting.
For example, imagine a young doctor reading scans alone on a night shift.
The senior doctor who has seen ten thousand of them is at home.
The scan is the same. What is missing is the memory of every case before it.
This is work AI can do.
It sorts each defect image at the tool and ties it to the wafer batch, tool and chamber.
It drafts the hold, and a named engineer confirms or corrects it.
What the fab needs
The sorting runs on small sealed units next to the inspection tools.
Each image is classed the moment it arrives, not at the end of the shift.
Then one map joins it all: the wafer, the batch, the tool, the chamber, the recipe and the limits.
So an engineer can ask which chamber drifted, since when, and which batches it touched.
When a pattern crosses a limit, the AI drafts a hold.
A defect review engineer confirms the class. A yield engineer approves the hold.
A process owner decides whether a held batch is released, reworked or scrapped.
No agent stops a line on its own.
The AI drafts. A named engineer decides.
Every correction becomes a lesson the next review starts from.
So a first year engineer reviews with what senior engineers taught it.
That is a loop the fab owns, not a setting it rents.
Why own it, not rent it
Owning it matters for two reasons.
Defect images and recipes are a fab's most guarded records; they stay inside its walls.
And an AI you rent learns for its vendor.
One you own learns for you, and every shift makes it sharper.
The lessons live in the fab's own records, not inside one model.
When a better open model ships, the fab swaps it in and keeps every lesson.
So the system runs inside the fab, air gapped where it needs to be, on open weight models and software it owns.
The reference architecture
We published a design for a high volume wafer fab in the United States.
It is an open reference architecture for wafer defect inspection: defect images classed at the tool and traced to an excursion and a hold.
In short:
- Sources. Eight sources in all: five systems of record and the tool interfaces at the edge, including the manufacturing execution system, the yield system, the tools' own defect databases, equipment data and process control. All are read only; the one write back is an approved hold.
- Object model. Sixteen kinds of object and twelve links, from the wafer and batch through the tool, chamber, recipe and defect to the excursion, hold and corrective action, with the three approving roles.
- Models. GLM 5.3, an open weight reasoning model, self hosted inside the fab, plus an anomaly model fitted on the fab's own normal images at the tool. No outside model service.
- Compute. One small edge unit per inspection tool group in a sealed cleanroom enclosure, and one eight GPU server in the fab's own server room. Nothing crosses the fab perimeter.
- Cost. About 576,000 US dollars to own the reasoning server for three years, against about 625,000 to rent the same eight cards on a three year commitment, and about 1.66 million on demand.
- Who approves. The defect review engineer confirms each class, the yield engineer approves every hold, and the process owner approves every release, rework or scrap. A hold without a named approval is refused in code.
- Rollout. Two phases, starting with one etch module for one quarter, measured by the time from excursion onset to hold against a nominal 4.0 hours.
The design, its object model and its model register are free to reuse under CC BY 4.0.
The close
The US is building new fabs, and it needs people to run them.
A fab that owns its AI keeps every image inside its walls, puts every hold in front of a named engineer, and turns every correction into a lesson for the next shift.
That is how a first year engineer reviews like a veteran.
That is what physical AI is for.
Source: TSMC proposes $22.6B advanced wafer facility in Texas, Manufacturing Dive
Reference architecture: https://codeatoms.ai/wafer-defect-inspection-us/
Learn more at https://codeatoms.ai