# tensorflow.python.framework.errors_impl.InternalError: TRITONBACKEND_ModelInstanceInitialize: 模型 'resnet50' 版本1的 TensorFlow 运行时版本不受支持。期望 2.12.0，实际为 2.10.0

- **ID:** `tensorflow/triton-inference-version-mismatch`
- **领域:** tensorflow
- **类别:** config_error
- **错误码:** `ETRV`
- **验证级别:** ai_generated
- **修复率:** 88%

## 根因

Triton 推理服务器后端编译的 TensorFlow 运行时版本与保存模型所需的版本不匹配。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 2.10 | active | — | — |
| 2.12 | active | — | — |
| 2.13 | active | — | — |

## 解决方案

1. ```
   Use a Triton Inference Server Docker image that matches the TensorFlow version of your model. Check the tag at https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tritonserver and pull the correct version, e.g., nvcr.io/nvidia/tritonserver:23.12-tf2-py3 for TF 2.12.
   ```
2. ```
   Export the model using the same TensorFlow version as the Triton backend. Run 'pip install tensorflow==2.12.0' and re-save the model with tf.saved_model.save().
   ```

## 无效尝试

- **Reinstall Triton Inference Server with the latest version** — The latest Triton may still bundle a different TensorFlow version; you need to match the exact version. (50% 失败率)
- **Convert the model to ONNX format** — ONNX conversion may not support all TF ops, and the error is about runtime version, not model format. (60% 失败率)
