Read cofounder Muhammad Umar's memo, Compression and Reinflation
CodeNinja AtomsUnited StatesSaudi ArabiaPakistan

Sector · Discrete manufacturing and automotive

Physical AI for discrete manufacturing and automotive

Vehicles and people share plant roads, test tracks and yards, and the cameras, gates and test schedules that should prove who was where are usually separate systems. These are the questions engineers ask first, answered from 3 published CodeNinja Atoms reference architectures.

  1. What does a physical AI system for discrete manufacturing and automotive look like?
  2. Which AI models can a discrete manufacturing and automotive operator run on its own hardware?
  3. How much compute and hardware does AI in discrete manufacturing and automotive need?
  4. Is it cheaper to own AI hardware or rent cloud GPUs in discrete manufacturing and automotive?
  5. What ontology or object model does a discrete manufacturing and automotive AI system need?
  6. Who approves the decisions an AI system makes in discrete manufacturing and automotive?

What does a physical AI system for discrete manufacturing and automotive look like?

A complete physical AI design for discrete manufacturing and automotive names what to sense, which existing systems to join, the object model that joins them, the models and hardware, the three-year cost and the person who approves every action. CodeNinja Atoms has published 3 such reference architectures for discrete manufacturing and automotive, each free to reuse under CC BY 4.0.

DesignCountryWhat it does
Pit Camera WatchUnited Statesa fully on-premises camera monitoring system that puts every turn, crossing, pit entry and access point of a vehicle proving ground on footage the operator owns, with exportable clips and camera uptime it can prove.
Depot Operating Object ModelUnited StatesAn open reference architecture for system design in physical AI, built on ontologies for unifying factory systems at a government vehicle rebuild depot in the United States, where the inference server that runs it costs about 67,000 US dollars to own over three years. One operating object model joins the production control, inventory, maintenance and test cell systems, which never shared a key, so that a power pack failing its scripted test run can be traced the same day to the part lots, the machine that cut them and that machine's condition, and forward to the rework and the schedule it displaces. Every machine interface stays read only, and each release waits on a named person's sign-off.
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanPakistanAn open reference architecture for physical AI system design, built for a vehicle assembly plant in Pakistan, where owning the inference node that runs the work surface costs about 572,000 US dollars over three years. When a batch of locally made door hinges arrives slightly out of tolerance, the design catches it first as sealer gaps at the body shop station exit and then as door fit faults on the trim line, joins the weld point flags, body numbers, operations, supplier lots and confirmed defects into one argument, and traces the pattern to the supplier lot before the next delivery. Every frame, model and inference stays inside the plant network on hardware the operator owns, under the parent company's global quality standards, the national data protection rules for cameras on workers and the national automotive policy's localisation conditions.

Which AI models can a discrete manufacturing and automotive operator run on its own hardware?

Each published discrete manufacturing and automotive design names its models and why, and every model is open-weight or no model is used at all, so the operator can run it on hardware it owns.

DesignModels
Pit Camera WatchD-FINE, Apache-2.0, for retrospective search over the archive (test vehicle, support vehicle, pedestrian); about 8 to 124 MB of weights
Depot Operating Object Modelgpt-oss-120b (Apache-2.0, US origin, self-hosted with vLLM) for the agentic work surface and ontology maintenance; Chronos-2 (Apache-2.0) for zero-shot machine condition forecasting and residual anomaly detection; nomic-embed-text-v2-moe (Apache-2.0) for retrieval over work orders, maintenance and test reports; no training run
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanGLM 5.3 (GLM-5.3 bespoke licence, 753B at FP8) as the agentic work surface and the ontology's maintainer, drafting weld checks, supplier lot traces and cited conversational answers; D-FINE (Apache-2.0) at INT8 on the edge NPU for weld spot, part, clip, connector and fastener presence; Anomalib 2.7.0 (Apache-2.0) for sealer bead anomalies fitted on the plant's own good beads; BGE-M3 (MIT) at FP16 for retrieval and citations; no third party model service, nothing trained into weights
DesignChoiceWhat was pickedWhy
Pit Camera WatchDetection modelD-FINE, Apache-2.0, BF16, N to X tiersUnconditional license keeps the weights in the operator's hands; N through L fit the 48 GB card; ahead of DEIM on matched compute in the July 2026 comparison.
Pit Camera WatchSite inference server48 GB PCIe inference GPU class server in the ASHRAE A2 conditioned server room, N+1The entry class for plant server rooms running vision, and retrospective search plus 80 to 120 streams of decode fit it with headroom for a second model.
Pit Camera WatchRecorder and serving runtimeFrigate NVR v0.18.0 with its built-in ONNX detector runtimeOpen source the operator owns outright; keeps 30-day retention, ONVIF and RTSP exits and local detection without per-camera license rents.
Pit Camera WatchCamera headsFixed multi-sensor thermal and visible heads, no wireless radios, Section 889 screened with producer-of-record statementsZone coverage needs always-present calibrated views, and camera provenance is the first procurement gate on a test site.
Pit Camera WatchSite networkingManaged PoE switches over underground single-mode fiber, two strands per poleThe requirement fixes the fiber architecture, and PoE Type 1 and 2 per-port budgets cover the heads without pole-side power electronics.
Pit Camera WatchEnclosures and powerNEMA-rated outdoor enclosures, 277/120/24 V step-down transformer feeds, Network UPS Tools for clean shutdownHeat, storms and sun angle degrade heads and light budgets, and clean shutdown protects the archive.
Pit Camera WatchTime synchronizationOCP Time Card GNSS grandmaster with holdover oscillator, Chrony 4.9, linuxptp where PTP-aware switches existEvidentiary ordering across 80 to 120 recorded streams requires one clock.
Pit Camera WatchIdentityKeycloak on-premise single sign-on with hardware token sign on for Linux hostsOnly booth operators and the safety office reach the isolated network, under the operator's identity policy.
Pit Camera WatchObservabilityPrometheus, Grafana and Loki on the isolated networkCamera uptime must be a first-class metric, not a vendor health page.
Pit Camera WatchSizing rulesThe survey evidence pack, pixels on target first, low light as a budget, mounting geometry decides what you seeCoverage is proven in phase one evidence, never assumed from a camera count.
Pit Camera WatchPatternsA site-scale camera onboarding reference architecture and an on-premises video search blueprintOnboarding, clip retrieval and search patterns adopted with no managed cloud, keeping the audio visual core on-premises.
Depot Operating Object ModelWork surface modelgpt-oss-120b, 117B MoE, MXFP4, Apache-2.0, depot server roomUS-origin open weights with no third-party model service; the GLM class is set aside on the Entity List; carries Pragma's agents and ontology maintenance
Depot Operating Object ModelForecasting modelChronos-2, Apache-2.0, zero-shot, about 0.48 GB at 32 bit, edge boxes and site analyticsPer-machine-class baselines and residual thresholds with no weights trained; small enough for the fanless edge boxes
Depot Operating Object ModelEmbedding modelnomic-embed-text-v2-moe, 475M parameters, Apache-2.0, truncated to 256 dimensionsUS-origin embedder for the work order, maintenance and test report corpus; about 0.95 GB at FP16, all parameters resident
Depot Operating Object ModelSite inference serverTwo cards of the 48 GB PCIe class, air cooled in the depot server room, about 700 W of card powerThe 65.2 GB checkpoint times the 1.2 planning factor is about 78.2 GB against roughly 88 GB usable, on existing power
Depot Operating Object ModelEdge computePlant floor edge compute, DIN-rail fanless class, beside each machine group and at the test cellKeeps scoring and buffering local through a network outage; a dev board measurement of the vibration load is the phase one gate before the class is fixed
Depot Operating Object ModelSpindle sensingSpindle IEPE accelerometer class, stud-mounted per ISO 5348, critical tier onlyLow-cost MEMS shows amplitude deviations of 50 to 70 percent against a reference, so IEPE carries the alarm duty
Depot Operating Object ModelMotor current sensingSpindle current clamp classes for motor current signature analysisReads load and degradation on machines where an accelerometer cannot be mounted
Depot Operating Object ModelLegacy retrofitStack light and serial DPRNT tap classes on analogue machinesBrings legacy machines onto the network read only, beside equipment that cannot be replaced
Depot Operating Object ModelTest cell sensingThe test cell transducer suite and data bus capture, read continuouslyAnchors the scripted test cycles and the parameter excursions the run report records
Depot Operating Object ModelObservation camerasIP66/IP67 industrial machine-shop camera class, test cell, its control panel and one shop aisleObservation and run record only; no tracking duty exists, so no trajectory model is built
Depot Operating Object ModelTime syncPTP grandmaster of the OCP Time Card class, linuxptp, clock support on every hopA store that merges sensor streams on a sloppy clock cannot support a trace
Depot Operating Object ModelPattern: projection ontologyOne ontology projected over four systems of recordPoint-to-point interfaces would reproduce the vocabulary problem instead of solving it
Depot Operating Object ModelPattern: read-only backboneOPC UA read-only subscriptions in every phaseThe requirement forbids any write to the site or a machine; the only write paths are person-approved records
Depot Operating Object ModelGroundThe depot's own government hardware: edge boxes, the two-card server, K3s, vLLM, Harbor air-gapped registryOpen weights let the depot hold its weights, its data and its decision record inside the government boundary with no permission to renew
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanReasoning modelGLM 5.3, filed at 753B parameters, FP8 (753 GB of weights, about 756 GB as published), GLM-5.3 bespoke licence, served on vLLM on one node in the plant's own server room in PakistanBespoke licence permits commercial use, fine tuning and redistribution, so the operator names the model and fixes it to its own hardware; the agentic work surface and the ontology's maintainer: it drafts weld checks, traces supplier lots and answers questions conversationally with citations
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanStation detector modelD-FINE, Apache-2.0 code and weights, COCO checkpoints, INT8 through ONNX Runtime on the 6 TOPS edge NPU; the N variant about 8 MB at 16 bit, the X variant about 124 MBApache-2.0 terms cover code and weights alike and the COCO checkpoints avoid the Objects365 terms that ship with other checkpoints; 42.8 to 55.8 COCO AP at 2.12 to 12.89 ms on a single T4 leaves wide margin at station pace; detects weld spots, parts, clips, connectors and fasteners at the station exits
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanAnomaly detector modelAnomalib 2.7.0, Apache-2.0 with edge export, FP32, on the edge units; footprint model dependent, typically tens to hundreds of MB, PatchCore memory banks grow with the reference setSealer gaps are rare and varied, so an unsupervised model fitted on the plant's own good beads beats any defect catalogue; the plant's own images replace the non commercial benchmark data the library ships with
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanEmbedding modelBGE-M3, MIT, FP16, about 1.1 GB (about 2.27 GB at FP32, about 0.6 GB at 8 bit), on the 48 GB site serverMIT licence with no obligation; dense, sparse and multi vector retrieval in one pass with an 8,192 token window, so part numbers and error codes stay retrievable and every conversational answer cites the record behind it
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanFrontier hardware141 GB HBM GPU class, eight GPUs per node, one node (1,128 GB)Holds GLM 5.3's 753 GB of FP8 weights on one node; the US export licence determination for this class runs at phase one start, with an approved data center or phased precision fallback kept on the table without quietly shrinking the model
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanFrontier footprint sizing ruleFrontier model GPU footprint sizing rule, vLLM753 GB of weights times the 1.2 planning factor is 904 GB against the node's 1,128 GB, leaving 375 GB beside the weights; at the roughly 756 GB the published weights occupy the KV cache ceiling is about 280 GB, which bounds concurrent sessions rather than forcing a second node
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanNode count ruleGLM 5.3 node count by GPU classOne node of eight 141 GB GPUs; the plant server room GPU node ASHRAE class fixes the server room envelope
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanSite inference serverAir cooled 48 GB PCIe inference class server, one, in the plant server roomServes BGE-M3 at FP16 and re-scores the borderline detections the edge tier flags, a full precision second opinion without any frame leaving the plant; a US ECCN 3A090 licence determination for Pakistan is required before the class is quoted
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanEdge unitFanless industrial edge unit on an octa core 6 TOPS NPU SoC, rated minus 40 to 85 C, sealed aluminium enclosure, pSLC storage, isolated 24 V trigger, wide input 24 V supplyWeld fume, spatter and summer heat exceed the ambient ratings of the packaged smart camera class; the unit runs the check on the device, buffers on disk through a lost link and keeps only the result and the evidence frame
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanSensing5 MP global shutter GigE Vision cameras with strobed lighting at five station exits (body shop after spot welding and sealer, trim line stations, underbody), a body present trigger from the station PLC; controller, torque and end of line feedsOne capture per body freezes a moving body without rolling shutter skew; identity comes from the body number and MES genealogy, so no tracker is committed; cameras check bodies and vehicles, never worker performance
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanTime synchronisationOCP Time Card grandmaster with linuxptp (ptp4l, phc2sys)Every event is stamped from the PTP grandmaster so a camera frame, a torque reading and a weld log sit on one timeline
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanEdge model servingONNX RuntimeRuns D-FINE and Anomalib at INT8 on the edge NPU units; K3s orchestrates the containers at the edge
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanServing runtimevLLMServes the FP8 weights of GLM 5.3 within the KV cache ceiling the sizing reserves
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanRegistry and one way transferHarbor, air gapped artifact and model registry, fed by a one way Lidi transfer; a data diode on any transfer out of a network zoneModel and container updates enter one way; an interrupted update leaves the running detector in place while the registry holds the last complete artifact
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanEvent backbone and storesApache Kafka 4.4, TimescaleDB, Prometheus, Grafana and LokiOrdering keyed by body number, at least once delivery with idempotent writes, on disk buffering at the edge; capture completeness is an alert the command centre sees
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanPattern: captureTriggered one capture per body at each station exitAdopted over multi object tracking because each body is captured once and identity is already owned by a system of record
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanPattern: thresholdsNuisance images collected and labelled before any threshold is setFalse alarms from ordinary plant grime are what switch inspection systems off; the false flag budget is held under 10 per inspector per shift and the nuisance set is a phase item with its own gate
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanPattern: memoryMemory over confirmed outcomes, nothing trained into weightsThe requirement rules out training on the fly, and changing weights under audit would invalidate the validation evidence the parent's standards rest on
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanPattern: boundaryThe plant network in Pakistan, the operator's own hardware, no third party model service; read only adapters and the single approved write path to the quality management systemImages, process data and the parent's standards never leave the plant; the national data protection rules on cameras, the parent's audit terms and the localisation policy bind the design

How much compute and hardware does AI in discrete manufacturing and automotive need?

The compute follows from the models: the published discrete manufacturing and automotive designs size it as follows, from no new hardware to a full GPU node.

DesignPartThe design
Pit Camera WatchComputeOne 48 GB L40S-class card per recorder host, in the conditioned server room; nothing at the poles
Depot Operating Object ModelComputeFanless DIN-rail edge boxes beside each machine group and at the test cell, their class fixed by a phase one measurement of the vibration load; centrally, two cards of the 48 GB PCIe class air cooled in the depot's own server room on its existing power, holding the 65.2 GB checkpoint with a 1.2 planning factor, about 78.2 GB against roughly 88 GB usable
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanComputeThree tiers in the plant: fanless industrial edge units on an octa core 6 TOPS NPU SoC rated minus 40 to 85 C beside 5 MP global shutter GigE Vision cameras at five station exits; one air cooled 48 GB PCIe inference server in the plant server room; one node of eight 141 GB HBM GPUs (1,128 GB) holding 753 GB of FP8 weights with the 1.2 planning factor, 904 GB. Pakistan sits in Country Groups D:2, D:3 and D:4, so the US export licence determination for the accelerator classes is a phase one checkpoint before anything is quoted

Is it cheaper to own AI hardware or rent cloud GPUs in discrete manufacturing and automotive?

Each discrete manufacturing and automotive design prices three years of ownership in its Appendix A, with every price cited, against renting the same capacity from a cloud region at its deepest three-year commitment where hardware is bought.

DesignLineThree years
Pit Camera WatchThree-year costAbout 474,000 to 871,000 US dollars to own over three years, mostly camera heads; the two recorder hosts alone cost about four fifths of the deepest three-year AWS commitment, and there is no per camera license at any pole count (Appendix A)
Depot Operating Object ModelThree-year costAbout 67,000 US dollars to own the two-card server for three years (a range of 62,000 to 70,000: server, support and power), against about 104,000 dollars to rent the same card class on the deepest three-year commitment in US East and about 276,000 on demand; the cheapest rental that holds the model, one 96 GB card, is about 33,000 on that commitment, so ownership is chosen for the boundary, not the price, and renting is a price reference only because data and weights stay in the government's environment; edge boxes, sensors, cameras, time card and switches are priced by quotation (Appendix A)
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanThree-year costAbout 572,000 US dollars to own the node for three years (a range of 542,000 to 610,000: server, support and power at the national industrial tariff), against about 751,000 to rent the same eight cards on the deepest three year commitment in AWS Asia Pacific (Mumbai), so ownership costs about three quarters of it, and about 2.00 million on demand, against which ownership costs a little over a quarter. Renting is a price reference only, because AWS lists no region in Pakistan and every rented option would carry images, process data and the parent's standards out of the plant (Appendix A)

What ontology or object model does a discrete manufacturing and automotive AI system need?

The object model is the part that makes the system an ontology rather than a pipeline: typed objects for the things in the discrete manufacturing and automotive operation, with properties, status values and typed links. Every published design ships its object model as hyper-ontology/1 JSON that loads into Hyper Ontology.

DesignSizeObjectsDownload
Pit Camera Watch15 objects, 13 linksTest Site, Camera Pole, Camera Head, Underground Fiber Run, Safety Gate, Operator Booth Display, Recorder Server, 30-Day Footage Archive, Incident/Accident Record, Booth Operator, Gate Officer, Safety Office Reviewer, Vehicle Under Test, Test Cycle, Power and Fiber Assessment Packageobjects.json
Depot Operating Object Model14 objects, 13 linksPower Pack, Vehicle Hull, Machine Tool, Power Pack Test Cell, Machine Sensor, Edge Gateway, Production Work Order, Maintenance Work Order, Schedule Proposal, Part Lot, Test Run, Run Report, Operator Role, Condition Indicatorobjects.json
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in Pakistan16 objects, 12 linksVehicle, Body, Station, Operation, Weld point, Sealer bead, Torque result, Part, Supplier lot, Defect, Defect class, Repair ticket, Audit finding, Corrective action, Body shop quality inspector, Quality managerobjects.json

Who approves the decisions an AI system makes in discrete manufacturing and automotive?

In every published discrete manufacturing and automotive design a named person makes the decision that changes the physical world; the system prepares it.

DesignHuman control
Pit Camera WatchBooth operators watch and decide; nothing raises an automated alarm; only the safety office can export a clip
Depot Operating Object ModelThe system proposes and a person commits: the test cell operator signs every release or return, a planner approves every maintenance work order and accepts, modifies or declines every schedule proposal, and no machine, test cell or site control is ever written to
Physical AI System Design for Weld and Assembly Quality in a Vehicle Plant in PakistanAgents check and draft, people decide, by name: the body shop quality inspector confirms or dismisses every flagged weld point or missing clip at the station terminal, the quality manager approves every repair ticket draft and opens every corrective action; no agent stops a line or rejects a supplier lot, and every confirmation and dismissal is kept as memory the next check reads

Every answer on this page is drawn from the papers linked in it: each paper's At a glance table, model register and cost appendix. Full text for agents: llms-full.txt. Designed on Praxis; object models load into Hyper Ontology.

Want one of these designs for your own operation? Talk to us.