If base image qwen3_5.py code structure doesn't match our regex patterns,
the patch script now detects this (fewer than 3 lines changed) and injects
module-level safe cumsum/exp functions as fallback.
Also from CCCL exception.cuh pattern: graceful degradation even when
the primary strategy fails.