Refitting Engines#
Refit updates constant weights in a serialized engine without a full rebuild. Weightless engines strip weights at build time and refit them on first launch (from custom buffers or ONNX). Enable kREFIT at build time, then use IRefitter or IParserRefitter at runtime.
Pattern |
When to use |
Related topics |
|---|---|---|
Standard refittable engine ( |
Update weights in place after deployment without re-running the full builder |
CPU-Only AOT and TensorRT-RTX Engines: weightless workflow uses |
Weightless engine ( |
Minimize installer size; ship a small engine and refit weights on first run |
CPU-Only AOT and TensorRT-RTX Engines: Refitting a Weightless Engine |
ONNX-driven refit ( |
Weight-stripped engine built from ONNX; refit weights from the same ONNX file |
CPU-Only AOT and TensorRT-RTX Engines: Refitting a Weightless Engine Directly with ONNX Models |
Build flags, refit workflows, serialization after refit, and IParserRefitter examples are documented in CPU-Only AOT and TensorRT-RTX Engines.