This bounty is for bringing up RT-DETR (Real-Time DEtection TRansformer) using TTNN APIs on Tenstorrent hardware (Wormhole or Blackhole). RT-DETR is an end-to-end transformer-based object detector designed for real-time inference. It eliminates non-maximum suppression (NMS) and uses a hybrid CNN–Transformer encoder with dynamic query selection to balance speed and accuracy. Later versions (e.g., RT-DETRv2) introduce bag-of-freebies training improvements and architecture refinements for even higher performance.
The goal is to enable efficient, end-to-end RT-DETR inference on TT hardware for high-throughput, low-latency object detection, showcasing the platform’s suitability for transformer-heavy vision workloads.
What Success Looks Like
A successful submission will fulfill all requirements below. Payout is made after all three stages are completed.
Stage 1 — Bring-Up
Implement RT-DETR using TTNN APIs (Python).
Runs on N150 or N300 without runtime errors.
Produces valid detections (bounding boxes + class labels) on sample images.
Output is numerically/verifiably aligned with a PyTorch reference (small validation set).
Refer to TT fused ops for opportunities to optimize.
Target input resolutions: Start with 640Ă—640 images (common config) and COCO-style evaluation; adjust as needed for TT hardware.
Ask for help or file issues if ops are missing in TTNN.
Possible Approaches
Port an existing PyTorch RT-DETR step-by-step (backbone → encoder → decoder → prediction heads).
Validate intermediate tensors against CPU/PyTorch reference.
Profile encoder attention and multi-scale fusion; apply fusion/reshape optimizations to reduce TM overheads.
Add decoder-layer control flags to demonstrate speed vs. accuracy scaling.
Use TTNN profiling tools to identify bottlenecks.
Open a draft PR early for feedback on approach and performance metrics.
Result submission guidelines notes
Beyond the model implementation itself. Contributors must submit the following material as a proof of work. However, feel free to open a PR at any time if you want us checking you are on the right track. Just understand that payout is only made after all 3 stages are completed.