Commit Graph

2 Commits

Author SHA1 Message Date
project6
4e04674283 fix(cccl): robust fallback — inject module-level safety if regex misses
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.
2026-08-07 09:58:35 +00:00
project6
b47a5d4b95 arch(cccl): Agent-pattern numerical stability patch + protocol required fix
CCCL design patterns translated:
- optionally_static: detect existing guards, inject only missing
- agent_radix_sort_histogram: Init->Detect->Patch->Verify flow
- overflow_cast: clamp BEFORE accumulation, not after

Changes:
1. patch_numerical_stability.py - reads base image qwen3_5.py,
   detects existing guards, injects clamps to prevent 99.98% NaN
   Preserves corex kernel paths.
2. patch_ops.sh - targeted in-place patches instead of never-touch
3. protocol.py - tool_choice=required now disables thinking
2026-08-07 09:54:55 +00:00