TensorRT-LLM deserializeCudaEngine SM Mismatch Fix
Resolve TensorRT-LLM IRuntime::deserializeCudaEngine architecture and serialization version mismatches across Hopper SM 90 and Blackwell SM 100 GPUs.
IRuntime::deserializeCudaEngine serialization failures occur when a compiled .engine plan was built for a different TensorRT version or a different GPU compute capability (for example Hopper SM 90 loaded onto Blackwell SM 100). Verify the runtime GPU compute capability, TensorRT version, and engine build manifest, then rebuild the plan for the target GPU architecture.
- Symptom
[TensorRT-LLM][ERROR] [defaultAllocator.cpp::deallocate::69] Error Code 1: Cuda Runtime (invalid resource handle) [TensorRT-LLM][ERROR] IRuntime::deserializeCudaEngine: Error Code 1: Serialization (Serialization assertion stdVersionRead == serializationVersion failed. Engine plan was built on SM 90 (Hopper) and cannot be deserialized on SM 100) RuntimeError: [TensorRT-LLM][ERROR] Assertion failed: mEngine != nullptr (/app/tensorrt_llm/cpp/tensorrt_llm/runtime/tllmRuntime.cpp:141)- Root cause
- Compiled TensorRT engine binary targets a different SM architecture, TensorRT serializer version, or plugin ABI than the serving node.
- Recommended fix
- Inspect the serving GPU compute capability with nvidia-smi --query-gpu=name,compute_cap,driver_version --format=csv and print installed tensorrt and tensorrt_llm versions in Python.
- How Denpex helps
- Denpex investigates TensorRT-LLM deserializeCudaEngine SM Mismatch Fix using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
A TensorRT C++ runtime deserialization error raised when loading an incompatible compiled engine plan in tllmRuntime.cpp.
Is this what broke your run? Paste your log.
You're reading about TensorRT-LLM deserializeCudaEngine SM Mismatch Fix. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
TensorRT engine files embed architecture-specific SASS kernels, plugin bindings, and serializer version checks (stdVersionRead == serializationVersion). Moving a cached .engine directory across GPU families (L40S sm_89, H100 sm_90, B200 sm_100) or upgrading the serving container TensorRT version invalidates standard plans.
What you'll observe
- TensorRT-LLM inference startup aborts immediately with Assertion failed: mEngine != nullptr
- Cached engine artifacts copied from another cluster tier fail deserialization on newer GPUs
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| [TensorRT-LLM][ERROR] IRuntime::deserializeCudaEngine: Error Code 1: Serialization (Serialization assertion stdVersionRead == serializationVersion failed) | Compiled TensorRT engine binary targets a different SM architecture, TensorRT serializer version, or plugin ABI than the serving node. |
| Engine plan was built on SM 90 (Hopper) and cannot be deserialized on SM 100 | Compiled TensorRT engine binary targets a different SM architecture, TensorRT serializer version, or plugin ABI than the serving node. |
Which systems are affected
- TensorRT-LLM and Triton TensorRT-LLM backends
- Mixed-GPU Kubernetes clusters (sm_89 / sm_90 / sm_100) sharing NFS or PVC engine caches
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Verify tllmRuntime loads mEngine cleanly and passes a sample completion request on the target compute capability.
Root cause
- Compiled TensorRT engine binary targets a different SM architecture, TensorRT serializer version, or plugin ABI than the serving node.
The fix and how to prevent it
How to fix it
- Inspect the serving GPU compute capability with nvidia-smi --query-gpu=name,compute_cap,driver_version --format=csv and print installed tensorrt and tensorrt_llm versions in Python.
- Check the engine build config.json (target GPU architecture, world size, TensorRT version) against the serving node.
- Rebuild the engine with trtllm-build directly inside the exact serving container image and target GPU architecture (or partition S3/PVC engine paths by SM compute capability and TensorRT build tag).
- Do not delete validation assertions, downgrade drivers blindly, or rely on generic cache clears without rebuilding or matching hardware-compatibility settings.
Step-by-step remediation
- 1Query nvidia-smi compute_cap alongside Python tensorrt and tensorrt_llm package versions.
- 2Check config.json in the engine folder to confirm which architecture and TensorRT release produced it.
- 3Run trtllm-build in the target container on the target GPU architecture and verify serving startup.
How to prevent it
- Key engine cache paths by model digest, TensorRT-LLM version, TensorRT version, TP/PP rank count, and compute capability (sm_90 vs sm_100)
- Use version-compatible or hardware-compatible TensorRT build flags only within NVIDIA's documented support matrix
Save this diagnosis and catch the next crash automatically
All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.
Or start a 30-day free Team trial (work email)
Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.
Searchable error signature
[TensorRT-LLM][ERROR] [defaultAllocator.cpp::deallocate::69] Error Code 1: Cuda Runtime (invalid resource handle)
[TensorRT-LLM][ERROR] IRuntime::deserializeCudaEngine: Error Code 1: Serialization (Serialization assertion stdVersionRead == serializationVersion failed. Engine plan was built on SM 90 (Hopper) and cannot be deserialized on SM 100)
RuntimeError: [TensorRT-LLM][ERROR] Assertion failed: mEngine != nullptr (/app/tensorrt_llm/cpp/tensorrt_llm/runtime/tllmRuntime.cpp:141)Use this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
Diagnose your own log automatically
The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.
Sign up free. Analyze your cluster logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Why the recommended fix works
Rebuilding and keying compiled plans per SM architecture and TensorRT serializer version ensures mEngine initializes with native SASS instructions and matching runtime ABI.
Code examples
nvidia-smi --query-gpu=name,compute_cap,driver_version --format=csv
python3 -c "import tensorrt, tensorrt_llm; print('trt:', tensorrt.__version__, 'trt_llm:', tensorrt_llm.__version__)"
trtllm-build --checkpoint_dir /models/ckpt --output_dir /models/engine-sm100This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.
Best practices by model family
| Model / Stack | Recommendation | Notes |
|---|---|---|
| H100 (SM 90) vs B200 (SM 100) | Separate compiled engine cache directories by compute_cap | Standard TensorRT engines are not portable across SM generations. |
| Container upgrades | Include TensorRT version in artifact cache keys | Prevents stdVersionRead == serializationVersion assertion crashes. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| Engine cache naming | model-tp2-trt10-sm100 path keys | Unkeyed shared /models/engine reused across GPU pools |
| Failure recovery | Rebuild in target runtime or verify documented compatibility flags | Restarting containers repeatedly or updating host drivers |
Diagnostic note
“Standard compiled TensorRT-LLM engines bind tightly to both the builder TensorRT version and SM compute capability. Even H100 (sm_90) and H200 vs B200 (sm_100) swaps across containers break unkeyed shared engine volumes unless built for the runtime target.”
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.
Install the free VS Code extensionBlackwell B200 and GB200 errors in context
Blackwell B200 and GB200 faults span NVLink/NETIR link transitions, NVSwitch domains, and firmware updates.
Compare related blackwell b200 and gb200 errorsFrequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
Will updating the NVIDIA host driver allow an SM 90 engine to load on SM 100?
Can an H100 (SM 90) engine run directly on H200?
Don't just read the fix, diagnose your run
The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.
Related Inference errors
DeepGEMM rejects FP8 block-scaled weights with Unknown SF transformation on an unsupported architecture
Inference · high
SGLang NCCL Error and Multi-Node Timeout
Inference · high
SGLang torch.OutOfMemoryError: CUDA out of memory
Inference · high
vLLM NCCL P2P Hang and Timeout in Tensor Parallelism
Inference · high