SAVRN
Search Contact SAVRN

Open-weight model · Object detection

rf-detr-large

by Roboflow Roboflow/rf-detr-large

RF-DETR is a real-time detection transformer family introduced in RF-DETR: Neural Architecture Search for Real-Time Detection Transformers by Robinson et al. and integrated in Transformers via PR #36895.

Parameters34M
Context
Weights135.8 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads8.4k

Runs On

What it takes to serve rf-detr-large (34M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Roboflow, published under apache-2.0, revision f62f7dd5252b.

RF-DETR is a real-time detection transformer family introduced in RF-DETR: Neural Architecture Search for Real-Time Detection Transformers by Robinson et al. and integrated in Transformers via PR #36895. RF-DETR is an end-to-end object detection model that combines ideas from LW-DETR and Deformable DETR: a DINOv2-with-registers style ViT backbone (with an RF-DETR windowing pattern for efficient attention), a multi-scale projector between encoder and decoder, and a multi-scale deformable DETR decoder for fast convergence and strong accuracy–latency tradeoffs. You can use the raw model for object detection. See the model hub to look for all available RF-DETR models. Here is how to use this…

Read Roboflow's full model card

RF-DETR is a real-time detection transformer family introduced in RF-DETR: Neural Architecture Search for Real-Time Detection Transformersby Robinson et al. and integrated in Transformers viaPR #36895.

Model description

RF-DETR is an end-to-end object detection model that combines ideas from LW-DETR and Deformable DETR: a DINOv2-with-registers style ViT backbone (with an RF-DETR windowing pattern for efficient attention), a multi-scale projector between encoder and decoder, and a multi-scale deformable DETR decoder for fast convergence and strong accuracy–latency tradeoffs.

Key Architectural Details: - Backbone: DINOv2-with-registers style ViT with RF-DETR windowed / full attention alternation (instead of a purely convolutional encoder). - Multi-scale fusion: RF-DETR multi-scale projector (C2f-style blocks in the LW-DETR lineage) to aggregate multi-level backbone features before the decoder. - Decoder: Deformable DETR-style decoder with multi-scale deformable cross-attention; depth and input resolution vary by checkpoint (NAS frontier). - Queries: DETR-style object queries with bipartite matching and auxiliary decoder losses for training stability.

Training Details: - Detection losses: classification plus bounding-box L1 and GIoU, with auxiliary losses on intermediate decoder layers. - Group DETR: parallel decoder copies during training for faster convergence (same high-level idea as LW-DETR's Group DETR). - NAS (family-level): the RF-DETR paper uses weight-sharing neural architecture search over practical accuracy–latency knobs after adapting a shared backbone on the target dataset, so many checkpoints correspond to different subnets without full independent retrains for every point on the frontier.

How to use

You can use the raw model for object detection. See the model hub to look for all available RF-DETR models.

Here is how to use this model:

from transformers import AutoImageProcessor, RfDetrForObjectDetection
import torch
from PIL import Image
import requests

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

processor = AutoImageProcessor.from_pretrained("stevenbucaille/rf-detr-large")
model = RfDetrForObjectDetection.from_pretrained("stevenbucaille/rf-detr-large")

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)

# convert outputs (bounding boxes and class logits) to COCO API
# let's only keep detections with score > 0.35
target_sizes = torch.tensor([image.size[::-1]])
results = processor.post_process_object_detection(outputs, target_sizes=target_sizes, threshold=0.35)[0]

for score, label, box in list(zip(results["scores"], results["labels"], results["boxes"]))[:8]:
    box = [round(i, 2) for i in box.tolist()]
    print(
            f"Detected {model.config.id2label[label.item()]} with confidence "
            f"{round(score.item(), 3)} at location {box}"
    )

This should output:

Detected remote with confidence 0.99 at location [40.68, 73.34, 175.62, 118.01]
Detected cat with confidence 0.986 at location [348.33, 24.59, 640.12, 373.98]
Detected cat with confidence 0.986 at location [13.36, 54.71, 316.59, 473.24]
Detected remote with confidence 0.947 at location [334.29, 76.64, 370.47, 187.34]
Detected couch with confidence 0.549 at location [1.67, 0.92, 639.56, 474.81]
Detected remote with confidence 0.135 at location [338.6, 76.26, 369.93, 130.59]
Detected remote with confidence 0.268 at location [258.99, 54.31, 291.03, 78.72]
Detected remote with confidence 0.119 at location [335.04, 150.52, 352.63, 186.95]

Training data

These checkpoints are trained on the standard COCO 2017 object detection dataset label space (80 categories) as reflected in config.id2label.

BibTeX entry and citation info

@misc{robinson2026rfdetrneuralarchitecturesearch,
      title={RF-DETR: Neural Architecture Search for Real-Time Detection Transformers},
      author={Isaac Robinson and Peter Robicheaux and Matvei Popov and Deva Ramanan and Neehar Peri},
      year={2026},
      eprint={2511.09554},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://huggingface.co/papers/2511.09554},
}

This model was originally contributed by stevenbucaille in transformers.

Configuration

Architecture
RfDetrForObjectDetection
Feed-forward size
1,024
Model type
rf_detr

Identity and Version

Repository
Roboflow/rf-detr-large
Publisher
Roboflow
Task
Object detection
Modality
Image
Library
transformers
Parameters
34M parameters
Languages
Not stated by the source
Revision
f62f7dd5252b61097cbace33886045816dadbde9
First published
2026-05-11
Last updated
2026-05-20

Files and Weights

5 files, 135.8 MB in total. The weights are 1 file totalling 135.8 MB in safetensors.

Weights1 file · 135.8 MB
Configuration2 files · 6.2 KB
Documentation1 file · 4.7 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights135.8 MB 1ec604598aea
config.jsonConfiguration5.8 KB
preprocessor_config.jsonConfiguration442 B
README.mdDocumentation4.7 KB
.gitattributesRepository1.5 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
135.8 MB
Download from Roboflow

Released by Roboflow through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published135.8 MB
16-bit0.1 GB
8-bit0.0 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About rf-detr-large

How much GPU memory does rf-detr-large need?

About 0.1 GB at 16-bit and 0 GB at 4-bit: the weights (34M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run rf-detr-large on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use rf-detr-large commercially?

Yes. rf-detr-large is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Object detection

PP-DocLayoutV3_safetensors

PaddlePaddle

Unified Layout Module for PaddleOCR-VL 1.5/1.6 & GLM-OCR This is the model weights for PP-DocLayoutv3 in safetensors format. Get PaddlePaddle weights at PP-DocLayoutV3 PP-DocLayoutV3 is specifically engineered to handle non-planar document images. It can directly predict multi-point bounding boxes for layout elements—as opposed to standard two-point boxes—and determine logical reading orders for skewed and curved surfaces within a single forward pass, significantly reducing cascading errors. This model is an essential component of PaddleOCR-VL-1.5, providing crucial layout analysis for the high-precision parsing of various real-world documents in PaddleOCR-VL. This work has been accepted to…

Open weights apache-2.0 33M parameters transformers

Model · Object detection

rf-detr-base

Roboflow

RF-DETR is a real-time detection transformer family introduced in RF-DETR: Neural Architecture Search for Real-Time Detection Transformers by Robinson et al. and integrated in Transformers via PR #36895. RF-DETR is an end-to-end object detection model that combines ideas from LW-DETR and Deformable DETR: a DINOv2-with-registers style ViT backbone (with an RF-DETR windowing pattern for efficient attention), a multi-scale projector between encoder and decoder, and a multi-scale deformable DETR decoder for fast convergence and strong accuracy–latency tradeoffs. You can use the raw model for object detection. See the model hub to look for all available RF-DETR models. Here is how to use this…

Open weights apache-2.0 32M parameters transformers

Model · Object detection

yolos-small

HUST Vision Lab

YOLOS model fine-tuned on COCO 2017 object detection (118k annotated images). It was introduced in the paper You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection by Fang et al. and first released in this repository. Disclaimer: The team releasing YOLOS did not write a model card for this model so this model card has been written by the Hugging Face team. YOLOS is a Vision Transformer (ViT) trained using the DETR loss. Despite its simplicity, a base-sized YOLOS model is able to achieve 42 AP on COCO validation 2017 (similar to DETR and more complex frameworks such as Faster R-CNN). The model is trained using a "bipartite matching loss": one compares the…

Open weights apache-2.0 31M parameters transformers

Table Transformer (DETR) model trained on PubTables1M. It was introduced in the paper PubTables-1M: Towards Comprehensive Table Extraction From Unstructured Documents by Smock et al. and first released in this repository. Disclaimer: The team releasing Table Transformer did not write a model card for this model so this model card has been written by the Hugging Face team. The Table Transformer is equivalent to DETR, a Transformer-based object detection model. Note that the authors decided to use the "normalize before" setting of DETR, which means that layernorm is applied before self- and cross-attention. You can use the raw model for detecting the structure (like rows, columns) in tables.…

Open weights mit 29M parameters 1,024 tokens transformers

Table Transformer (TATR) model trained on PubTables1M and FinTabNet.c. It was introduced in the paper Aligning benchmark datasets for table structure recognition by Smock et al. and first released in this repository. Disclaimer: The team releasing Table Transformer did not write a model card for this model so this model card has been written by the Hugging Face team. The Table Transformer is equivalent to DETR, a Transformer-based object detection model. Note that the authors decided to use the "normalize before" setting of DETR, which means that layernorm is applied before self- and cross-attention. You can use the raw model for detecting tables in documents. See the documentation for more…

Open weights mit 29M parameters transformers

Model · Object detection

table-transformer-detection

Microsoft

Table Transformer (DETR) model trained on PubTables1M. It was introduced in the paper PubTables-1M: Towards Comprehensive Table Extraction From Unstructured Documents by Smock et al. and first released in this repository. Disclaimer: The team releasing Table Transformer did not write a model card for this model so this model card has been written by the Hugging Face team. The Table Transformer is equivalent to DETR, a Transformer-based object detection model. Note that the authors decided to use the "normalize before" setting of DETR, which means that layernorm is applied before self- and cross-attention. You can use the raw model for detecting tables in documents. See the documentation for…

Open weights mit 29M parameters 1,024 tokens transformers