Portrait of Yang Hao

Yang Hao 杨豪

Head of Model Quantization & Deployment

QCraft · Perception ML Infra

I head the quantization and deployment team at QCraft, with 7+ years in quantization and deployment of deep-learning models. My team owns quantization, multi-chip conversion and parity checks for production driving models, and contributes to backend extensions of the on-vehicle runtime, training speed and a shared vision encoder.

In 2026 I am also the technical lead of the AXERA platform POC. Before QCraft I worked at Tencent Maps and Yitu Technology; my master's degree in pattern recognition is from Beihang University. This page walks through my work along one pipeline: each section gives the conclusion only, and the project details are on the linked pages.

  • Model quantization (PTQ / QAT / QAD)
  • Efficient on-device inference
  • End-to-end autonomous driving
  • ML infrastructure and tooling

Blue is the float output, orange the quantized one. My job is to keep the orange line on the blue one, on the chip.

Where I stand01 · About me

Yang Hao: currently head of a quantization and deployment team, 7+ years in the field

Experience

QCraft
Head of Model Quantization & Deployment (current) · quantization, multi-chip deployment and production releases of driving models
Oct 2022 – present
Tencent Maps
Algorithm Engineer · TensorRT INT8 deployment and an on-device perception SDK
Jul 2021 – Oct 2022
Yitu Technology
Algorithm Engineer · a C++ face-recognition engine; model quantization for an in-house chip
Apr 2019 – Jul 2021

Education

Beihang University
M.S. in Pattern Recognition
2016 – 2019
Beihang University
B.S. in Automation
2012 – 2016

Contact and links

Where I stand02 · The system

Quantization and deployment: the stretch every model crosses from the training cluster to the chip

where quantization and deployment sit in an autonomous-driving systemDEVELOPMENT AND VALIDATION: ONCE PER MODEL VERSIONData & labelscollect · minelabelFloat trainingspeed-ups · sharedencoderQuantizationPTQ · QATdistillationConversionQIR → per-chipartifactsParity checksx86 simulationon-boardVehicle testsreplay · road-testtriageReleasequantization gateshandoverdeployed modelON THE VEHICLE: ONCE PER FRAMESensorscameras · lidar · radarOn-chip inference runtime (QNN runtime): Horizon · NVIDIA · Qualcomm · AXERAPerception modelsdetection · map · occupancy · lightsPrediction & planningend-to-end model outputs the trajectoryControlsteer · speedVehicleowned by my teammy team contributesother teams

Project detailsNext architecture: the quantization and deployment platform (design draft) →

Where I stand03 · What quantization does

Quantization swaps floats for fixed-point integers: on one model INT8 takes about 40% of the INT16 time

what quantization is, what it buys and what it costsPrinciple: map floats onto an integer gridfloat valuesinteger gridq = clip(round(x / s) + z, qmin, qmax)s is the step (scale), z the zero point. INT8 has 256grid points, INT16 has 65,536; fewer bits means acoarser grid.Effect: per-frame latency, same model, same chipall INT16≈120 msall INT8≈47 msend-to-end driving model · Horizon J6MOn this model INT8 takes about 40% of the INT16time.Cost: numeric error1Rounding and clippingevery layer adds a little error2Accumulationsmall per layer, possibly unacceptable atthe output3Sensitive operatorsattention, normalization, lookup tablesThe job: match the float model withinthe latency budget

Project detailsQuantization that matches the float model: methods and experiments →Related: TensorRT INT8 on cloud GPUs →

The quantization and deployment pipeline04 · How the method evolved

Five steps in the method: tune parameters, learn parameters, then align to the float model

five steps in the production quantization methodEACH STEP WAS FORCED BY A NEW KIND OF MODEL1PTQ (baseline)DRIVERall-convolution detectorsMETHODcalibrate activation ranges;weights untouchedfine for CNNs, notTransformers2Scale searchDRIVERBEV detection,multi-task perceptionMETHODsearch per-layerparameters to match floatno hand tuning; patentgranted (co-inventor)3AutoQuantDRIVERvector maps, temporaltrackingMETHODlearn step sizes (LSQ) withfloat supervisionfits mixed CNN +Transformer models4QATDRIVERproduction tolerates noregressionMETHODtrain with quantizers: taskloss plus a float teacherstays a low-precisioncopy of the float model5Distillation comparedDRIVERtrajectory output of theend-to-end modelQAD onlyfloat-teacher supervision onlypoorQAT + distill.task loss + float teacheradoptedsteps 1–2: weights fixed, only quantization parametersstep 3 learns step sizes; steps 4–5 train under a float teacherGoal: no drop in average metricsGoal: match the float model case by case

Project detailsEach generation: method, experiments and a case study →

The quantization and deployment pipeline05 · Releases and ownership

Quantized releases: a per-model table names the owners; there is one flow and one set of gates

the release flow for a quantized model and who is responsibleHOW ONE QUANTIZED MODEL IS RELEASED1Float testset the float baseline2Small-set PTQtry the cheapestoption first3QATonly if PTQ fallsshort4Quantized testcompared with thefloat baseline5ExportQIR → on-board andsimulation models6Latencywhen needed,measured on board7Handoverhandover docmerge requestGatesnew features off by defaultpast quantization issues rerunrelease doc: metrics, latency, issuesQuantization owners: a per-model table (illustrative)Modelmodel ownerquantization ownerbackupBEV detectionVector mapOccupancyThree layers of an owner's responsibility1Deliver the quantized release2Improve the process and the code3Know the model's task and improve accuracyFrom 2026: routine quantization back to model owners; owners step in on big changes

Project detailsLayered numerical consistency and release gates →

The quantization and deployment pipeline06 · Many backends

The quantized result is stored as a chip-neutral QIR, then converted for each platform

from one quantized model to several backendsQuantization trainingPyTorch · PTQ / QATQIRa chip-neutral ONNX container: floatparameters, quantizationparameters and custom operators inone fileQNN Web conversion servicebuilds the artifact for each targetTargetConversion pathHighest verified statusHorizon J6MQIR → HBIR → HBMproduction mainline, on vehiclesHorizon J6Psame pathconversion worksx86 simulationQIR → LibTorchmandatory in release CIHBIR GPU simulatorin-house: simulates Horizon fixed-point models on GPUbit-exact on one modelQualcomm SA8650QIR → QDQ ONNX → vendor toolchainrunning on project vehiclesAXERA M97QDQ ONNX (quantized) or FP16 ONNX → vendor compileron vehicles (dev board)NVIDIA Orin YQIR → TensorRT INT8 engineon vehicles, the reference baselineStatus = highest level verified. The violet rows are the validation branch: fixed-point simulation on x86 before release.

Project detailsDelivered: the QNN Web conversion service →Stage-by-stage parity checks →Fixed-point lookup-table operators →Next architecture (design draft) →

The quantization and deployment pipeline07 · QNN Web

QNN Web: upload a QIR once; the service handles config, queueing, builds and archiving

architecture of the QNN Web conversion serviceTHREE ENTRY POINTSWeb UICLI and scriptsAI agents (MCP)QNN Web conversion serviceseparate front and back ends · task database1Read graphconfigsgenerated fromthe QIR, notwritten by hand2Queuestatus tracked;duplicate tasksmergedv2 · rolling out3Buildcall each chip'stoolchain; reusebuild caches4Archiveartifacts andlogs stored;scheduledcleanupv2 · rolling outOUTPUTSOn-board modelsHBM · engine · vendor formatsx86 simulation modelLibTorchLogs and reportsAgent interfacean AI agent can run a conversion by itselfupload QIRsubmit taskpoll statusdownload resultv2: rolling out

Project detailsQNN Web: the problem, two architectures and the agent interface →

The quantization and deployment pipeline08 · QNN runtime

QNN runtime: model code is written once and switches chip backends by config

structure of the on-vehicle inference runtime and my team's work in itModel code: written onceone config per platform for each model; the code does not fork per chipUNIFIED INTERFACENetbuilt from config; picks thebackendSessioninference context; bindsinputs and outputsTensorshape, type, quantizationscaleSWAPPABLE BACKENDSOn-vehicle chipsHorizonNVIDIAQualcommAXERAx86 simulation and replayTensorRTLibTorchfixed-point simThe runtime predates me and is maintained by several teams. The right-hand side is what my team and I do: backend extensions and model integration.What my team and I do in it1Models on the new chip backend2026: 20+ models adapted to the AXERA backend, merged to mainline2Custom TensorRT operatora scatter-max plugin (CUDA) with unit tests3More input typesint32 and other input types added to the runtime4Faster LibTorch backendspeeds up inference in x86 simulation and replay5Legacy model migrationa lidar detector that ran outside the runtime, merged and moved in

Project detailsThree pieces of backend and integration work →A backend integration case: AXERA M97 →

Management09 · Program management: the AXERA platform

AXERA platform: as POC technical lead, from hardware bring-up to customer demo rides

the AXERA platform program from hardware to customer demo ridesMAY TO NOVEMBER 2026: FROM HARDWARE TO CUSTOMER RIDES, ON THE M97 DEV BOARD; THE TARGET CHIP M95 COMES NEXT1Hardware, toolchainMay–JulM97 dev board (700 TOPS)on the car; cameras,backend and packagingworking2Model adaptationJul–Nov20+ models on the newbackend, FP16 orquantized; four quantizedTransformer modelsmerged in November3Vehicle testsAug–Octchip-vendor ride in earlyAugust; Sep–Oct:end-to-end model (float), v4walk-through; issuesgrouped by theme4Customer ridesfrom Novembercode merged to mainline inearly November; demorides for two carmakerscompleted later that month5Next: M95350 TOPS · not on vehiclesabout half the compute;planned: port, then tunelatencyMy role: technical lead of the POCThe urban NOA v4 stack runs on test vehicles with the M97 and has completed customer demo ridesOrder of work: behavior first on the roomy M97, latency second. Road issues by theme:lane-change safetyspeed behaviornavigation lane choice

Project detailsUrban NOA on a new chip: plan, process and lessons →

Management10 · People management

Running the team: I set priorities and decide when to step in; owners carry the models

how the team lead trades off work and hands over responsibilityTrade-offs: urgency × difficultyurgent · hardI step in myself at thekey pointsnot urgent · harda growth task forsenior engineersurgent · routinehandled by the owneror the backupnot urgent · routinehanded to automationand agentsCadence: from goals to each dayQuarterly goalswhat ships this quarterP0 listwhat wins when resources clashAssignmentone owner per taskDaily notesprogress and blockers, same dayOne-on-onesgrowth and feedbackLeverage: making hand-over possible1Owners and backupswho is in charge and who covers, per model2Knowledge base, monthly talksmethods written down and easy to find3Self-service for model ownersbots and agent skills do routine workTwo decisions in 20261Routine quantization back to model owners; quantization owners take the big changes2Training time made a team campaign for three engineers (section 11)

Project detailsAssignment, cadence and the quantization-owner scheme →

Breadth11 · Training framework and speed

Training speed: measure where the bottleneck is, then decide what to do

training framework and speed: measure first, then decide2022 · Communication in multi-GPU training8–10%share of training time; 22–30%on larger jobs≈3%gain from fp16 compression;PowerSGD slowerThe bottleneck is waiting for the slowestworker, not the payloadConclusioncompression gains little2024 · Parking occupancy moved to Torch 2.xtime per iteration · one V100 · batch 16 · AMPTorch 1.x1.559 sTorch 2.x0.802 s+ compile0.714 s−54%one GPU, before vs after<20%on 24 GPUs: the gain does not carry over2026 · Team campaign: training timein progress, results not yet collected1Started by metraining time made a team-level campaign2Three engineers assignedeach takes a share of the training jobs3Weekly backbone pretraining syncorganized by me to track pretrainingAttributionColleagues moved the training framework to Torch 2.x in 2023. Mine: the 2022 communication study, the 2024 quantization path for BEV detection, and the parking-occupancy float migration.

Project detailsThe data and conclusions of the two measurements →

Breadth12 · QVE One Model and the end-to-end model

QVE: perception tasks share one vision encoder; the end-to-end model is quantized and validated separately

QVE shared vision encoder and on-vehicle validation of the end-to-end modelSHARED VISION ENCODER (QVE): COMPUTE IMAGE FEATURES ONCE FOR SEVERAL PERCEPTION TASKSPhase onedriven, not releasedthree tasks trained jointlyfirst on-vehicle build in January 2026;occupancy 5–6 points below thereleased modelQVE 1.0interim, not releasedfrozen v4 image backbonesame backbone, separate fine-tuning.Occupancy IoU 46.21 → 44.95; twomap metrics down about 5 points;detection on 1/10 data onlyQVE 2.0small experimentsshared backbone and neck9 cameras at 512×1024, five taskstrained jointly; still a clear accuracydropQVE 3.0plan onlyshared vision encoderone vision encoder for all tasks; aplan so farThe v4 backbone weights come from the end-to-end model team. In the v4 stack on the road each perception model still uses its own backbone: v4 on the road is not QVE 1.0 on the road.QUANTIZING THE END-TO-END MODEL AND VALIDATING IT ON VEHICLES (HORIZON J6M)1Mixed-precision PTQfailedone experiment: collision rate0.263 vs 0.032 for float2Task or feature loss onlynot enoughneither is sufficient alone3Pure distillation (QAD)rejecteddropping the task loss doesnot work4QAT with distillationadoptedtask loss + full distillationfrom the float teacher5On the roadpaused (Sept. log)quantized build on test cars,near the Orin FP16 baseline;long tail open

Project detailsThe shared vision encoder: design and experiments →Predicting on-board latency before writing code →

Summary13 · Summary

One pipeline, two directions: deeper in quantization and deployment, wider toward training and models

one picture: the project pipeline, my stack and where my scope is growingBREADTH: EXTENDING MY SCOPE TOWARD BOTH ENDS OF THE PIPELINETraining framework, speedmeasure first, then choose what to optimizeBackbone pretraining, QVEtasks sharing one vision encoderEnd-to-end modelquantization and on-vehicle validationMulti-chip platform programsfrom hardware to customer ridesData & labelsdata mining (shared)Float trainingPyTorch 1.x / 2.xmulti-GPU · AMPQuantizationPTQ · QAT · LSQmixed precisionConversionONNX · QIR · HBIRQDQ · TensorRTParity checksLibTorch simulationbit-exact · LUTsOn-vehicle inferenceC++ · CUDA pluginsbackends · modelsVehicle tests, releasereplay · road triagerelease gatesMy scope todayDEPTH: GOING DEEPER IN THE PART I OWN TODAYEvidence as a platformstage-by-stage checks move fromrecording to blocking (design draft)Method, not craftsensitivity and on-board latency pickthe mixed precision automaticallyLower bit widthsmatching the float model at lower bitwidthsSelf-service toolsmodel owners and AI agents runquantized releases themselves

Project detailsAll projects →

More projects

Projects outside this main line, each with its own page. All projects →

≤ 2 LSBworst-case error, 85% fewer tables

Adaptive lookup tables for non-linear operators

QCraft · 2026

An error-driven segmentation algorithm for fixed-point lookup tables (rsqrt, reciprocal, exp, sigmoid). It bisects only where the real fixed-point error is high, guaranteeing 2 LSB worst-case error with 12–30 tables per operator instead of 126.

Method & details →

0.7%prediction error on board

Predicting on-board latency before writing code

QCraft · 2025–2026

A block-level latency model predicted 19.38 ms against 19.25 ms measured. It ruled out a wider occupancy range at 10 Hz early, ranked six deployment options, and led to a backbone shared by five perception models.

Method & details →

AR navigation perception SDK

Tencent Maps · 2021–2022

A multi-stream parallel perception framework with automatic profiling for phones and car head units: road-scene detection, parking-slot detection and AR guidance. 12 features in four months, CPU under 70%, shipped on a production vehicle.

Method & details →

NBT evaluation platform

NBT evaluation platform

Tencent Maps · 2021–2022

Internal web platform for model and data management, evaluation runs, result tracking and data sharing, with interfaces for bad-case analysis, returned-data management and map-building visualization.

Method & details →

Patent, talks and briefings

Writing

All posts →

Last updated December 2026