mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-28 09:19:25 +01:00
Part 4 of 5 of #2167. The text detector's DETR encoder runs on the GPU device of the image encoder: the same matrix products (ReLU as a third epilogue), attention for 8 heads of 32 with separate q / k / v buffers and the prompt's key-padding bias. Its weights (~120 MB) load on the first text prompt. A failure leaves the encoder to candle for the rest of the session; the backbone and the necks stay on the GPU. The mask decoder is still in candle. The parity test prints the largest difference of every query's mask. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>