TensorRT inference runtime error: tokenizer encoding fails on non-ASCII input
Problem During live inference serving with TensorRT engines, requests that contain non‑ASCII characters (e.g., “café”, “naïve”, or emojis) trigger a runtime exception inside the tokenizer layer. The failure manifests as a UnicodeEncodeError or as silently corrupted token IDs, causing the entire inference request to be aborted. Typical symptoms observed in production logs: 2026-09-25 12:34:56,783 ERROR … Read more