Models · Object detection

Grounding DINO, MM-Grounding-DINO and LLMDet (open-vocabulary, Swin-T / B / L)

IDEA Research's Grounding DINO and OpenMMLab's MM-Grounding-DINO (tiny, base; Swin backbone, BERT text encoder): open-vocabulary detector, finds boxes for class names given as text at call time (default: the 80 COCO classes). Apache-2.0 code and weights.

experimental Fork of huggingface/transformers@c4c4605 · backends: portable, kernels

Checkpoint

Paper 2023 Added in 0.2.0 Evaluated with 0.3.0

Kernels, RTX 5060 Ti 16 GB 86.9 ms 800x1344, fp16
vs the faster original 2.3× original fp16: 199 ms
Peak memory 987 MiB original: 2,541 MiB
Accuracy vs original fp32 −0.04 kernels box mAP, COCO val2017 (51.08 original)

Use it

pip install fastforks

Lean install with only what this model needs: pip install "fastforks-core[transformers]"

from fastforks import detection

model = detection.load("grounding-dino-tiny")  # fastest backend that runs here
result = model("photo.jpg", text=["a cat", "a dog"])  # what to look for

# result fields: boxes, scores, labels
boxes = result.boxes  # a torch tensor
arrays = result.numpy()  # the tensor fields as NumPy arrays: arrays["boxes"]
result.backend  # what ran: mode, device, dtype
Other ways to run it
  • Backend: detection.load("grounding-dino-tiny", mode="kernels") # or "portable", "auto" (default)
  • Precision: detection.load("grounding-dino-tiny", dtype="float32") # full precision: slower, portable only
  • Options: detection.load("grounding-dino-tiny", options={"score_threshold": 0.25, "max_detections": 100})
fastforks bench grounding-dino-tiny

Times the model on this machine. load(…, mode="portable") or mode="kernels" picks a backend; usage guide.

Speed and memory

Every backend on one GPU (RTX 5060 Ti 16 GB) and the same input, the authors’ code included. Kernels runs fp16. Portable runs fp16 on CUDA.

BackenddtypeTime per call (ms)vs original fp16Peak memory
allocated / reserved
Load (s)First call (s)
Original fp32transformers GroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per callfp32 2740.73×2,305 MiB/2,424 MiB4.11.18
Original fp16torch.autocast(float16) around the call; transformers GroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per callfp16 199–2,541 MiB/2,716 MiB1.40.34
Portable fp32fp32not measured ––––
PortableSynthetic 800 × 1344 image and default COCO vocabulary through the full public API.fp16 1101.8×987 MiB/1,106 MiB2.70.46
KernelsSynthetic 800 × 1344 image and default COCO vocabulary through the full public API.fp16 86.92.3×987 MiB/1,106 MiB2.70.43
Portable + torch.compile 1111.8×2,550 MiB/2,664 MiB73 (build)–
TensorRT fp32fixed 80-class text prompt onlyfp32 1161.7×826 MiBenginenot comparable104 (build)–

Measured on RTX 5060 Ti 16 GB, torch 2.14.1+cu130, 2026-11-12 to 2026-11-20. First call, two warm-up calls, median of five synchronized full API calls. Ratios divide two times of this table (same GPU, same input). Original fp16 is the authors’ own precision option, else torch.autocast. torch.compile and TensorRT: build time instead of load time. TensorRT memory (engine, not comparable) is the GPU memory the engine took, read from the driver because TensorRT allocates outside PyTorch, so it can't be compared with the PyTorch peaks of the other rows.

Other devices

DeviceBackenddtypems / callPeak memoryLoad / first call (s)Output vs referenceInput
NVIDIA runs on Linux and Windows
NVIDIA L4 CUDA, torch 2.14.1+cu130, 2026-11-29Portablefp16134 963 MiB/1,126 MiB12.4 / 1.4matches800x1344
Kernelsfp16104 963 MiB/1,126 MiB8.2 / 0.6matches800x1344
NVIDIA L40S CUDA, torch 2.14.1+cu130, 2026-11-30Portablefp1644.9 963 MiB/1,126 MiB8.3 / 0.9matches800x1344
Kernelsfp1640.2 963 MiB/1,126 MiB6.6 / 0.4matches800x1344
NVIDIA A10 CUDA, torch 2.14.1+cu130, 2026-11-30Portablefp16105 963 MiB/1,126 MiB6.9 / 0.9matches800x1344
Kernelsfp1684.2 963 MiB/1,126 MiB5.3 / 0.3matches800x1344
Apple silicon runs on macOS
Apple M1 Pro 16 GB MPS, torch 2.14.1, 2026-11-13Originalfp32912 4,899 MiB process11.5 / 2.2–800x1344
Portablefp32846 4,787 MiB process8.8 / 1.8matches800x1344
Kernelsfp32not implemented––800x1344
Apple M1 Pro 16 GB (MLX, fp16) MLX, torch 2.14.1, 2026-11-28Portablefp16387 1,525 MiB process0.6 / 1.4matches800x1344
Portablefp32463 2,049 MiB process1.1 / 1.6matches800x1344
Kernelsfp32not implemented––800x1344

CUDA memory is torch’s peak allocated / reserved; Apple has no such counter, so the Mac rows show the process footprint (weights, Python and torch included). “Output vs reference” compares the device’s output with the stored golden output under the card’s tolerance; – = not checked on that device. Kernels “not implemented” = no kernels for this model on that backend yet: it runs portable there.

Licence and weights

Commercial use allowed

Code
Apache-2.0
Weights
Apache-2.0 source
Training data

Our reading of the licences, not legal advice.

Weights

gdino-tiny.config.json 1.6 KB· hosted on Hugging Face
gdino-tiny.model.safetensors 689 MB· hosted on Hugging Face
bert-uncased.vocab.txt 232 KB· hosted on Hugging Face

fastforks downloads and checks these files on first use (fastforks download grounding-dino-tiny).

Accuracy

The test set through the authors’ code and through ours: same checkpoint, same protocol. The distance between the original’s fp32 and fp16 runs is what half precision alone costs; our runs should stay within it.

COCO val2017

every 10th image, box mAP

Rundtypebox mAP ↑Δ box mAP vs fp32 originalimagesms / image
Original fp32fp3251.08 reference 500 –
Original fp16fp1651.16 +0.08 500 –
Portable fp32fp3251.12 +0.04 500 –
Portablefp1651.14 +0.06 500 –
Kernelsfp1651.04 −0.04 500 –

pycocotools COCOeval of the top 100 detections per image. Original = the authors’ code, same checkpoint and protocol. Measured on original fp32, original fp16: RTX 5060 Ti, torch 2.14.1+cu130, 2026-11-12; portable fp32: RTX 5060 Ti, torch 2.14.1+cu130, fastforks 9e3ff83d+dir, 2026-11-17; portable: RTX 5060 Ti, torch 2.14.1+cu130, fastforks a981ff86, 2026-11-12; kernels: RTX 5060 Ti, torch 2.14.1+cu130, fastforks 67dbea00e, 2026-11-20.

COCO val2017

every 10th image at fixed 320 x 320, box mAP

Rundtypebox mAP ↑imagesms / image
Original fp32not measured
Original fp16not measured
Portable fp32fp3235.30 500 –
Portablenot measured
Kernelsnot measured

The original code was not run on this dataset, so the table cannot show the distance to it.

pycocotools COCOeval of the top 100 detections per image. Fixed FP32 graph, one prepared prompt for all 80 COCO class names. Score the top 100 query/class pairs per image. The public TensorRT exporter remains gated. Measured on RTX 5060 Ti, torch 2.14.1+cu130, fastforks 29b3bbad, 2026-11-18.

COCO val2017

50 images at fixed 320 x 320, box mAP

Rundtypebox mAP ↑imagesms / image
Original fp32not measured
Original fp16not measured
Portable fp32fp3234.92 50 –
Portablenot measured
Kernelsnot measured

The original code was not run on this dataset, so the table cannot show the distance to it.

pycocotools COCOeval of the top 100 detections per image. The same FP32 320 x 320 preparation and top 100 predictions for all 80 classes, restricted to every 100th validation image in filename order. Measured on RTX 5060 Ti, torch 2.14.1+cu130, fastforks 29b3bbad, 2026-11-18.

COCO val2017

every 10th image at fixed 800 x 1344, box mAP

Rundtypebox mAP ↑imagesms / image
Original fp32not measured
Original fp16not measured
Portable fp32fp3249.85 500 –
Portablenot measured
Kernelsnot measured

The original code was not run on this dataset, so the table cannot show the distance to it.

pycocotools COCOeval of the top 100 detections per image. Resize the same 500 RGB inputs to 800 x 1344. Use one prepared prompt for all 80 COCO classes and score the top 100 query/class pairs per image. Measured on RTX 5060 Ti, torch 2.14.1+cu130, fastforks d9caeca2, 2026-11-19.

COCO val2017

all 5000 images, box mAP

Rundtypebox mAP ↑Δ box mAP vs fp32 originalimagesms / image
Original fp32fp3248.25 reference 5000 –
Original fp16not measured
Portable fp32not measured
Portablefp1648.25 ±0.00 5000 –
Kernelsnot measured

pycocotools COCOeval of the top 100 detections per image. Original = the authors’ code, same checkpoint and protocol. Measured on original fp32: RTX 5060 Ti, torch 2.14.1+cu130, 2026-11-12; portable: RTX 5060 Ti, torch 2.14.1+cu130, fastforks 84ba91d4, 2026-11-12.

Closeness to the original

Beyond the test-set scores: the raw output of ours against the original’s fp32 output on the same input, pixel by pixel. CPU, float32: max |diff| <= 0.002 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 0.25 and p99 <= 0.8 (absolute error of the output boxes).

CheckToleranceMeasured
CPU fp32, max |diff|≤ 0.002 not recorded
GPU default dtypes, mean |diff|≤ 0.25 0.12884
GPU default dtypes, p99 |diff|≤ 0.8 0.53156

Recorded for grounding-dino-tiny on RTX 5060 Ti, torch 2.10.0+cu130, 2026-11-17, with these kernels: msda

Details

Grounding DINO (Liu et al. 2023, IDEA Research): open-set detection that fuses a Swin image backbone with a BERT text encoder in a DINO-style deformable transformer; each of 900 queries scores every caption token. MM-Grounding-DINO (Zhao et al. 2024, OpenMMLab) is the same network with a scaled, biased contrastive class head and unshared decoder heads, retrained on Objects365, GoldG and V3Det (the `large` variant also on GRIT). LLMDet (Fu et al. 2025, SYSU) is the MM-Grounding-DINO network (same code, same loader) fine-tuned with a large language model's region and image captions as extra supervision; the checkpoints contain the detector only. Pass `text=[...]` at call time (default: the 80 COCO class names), joined into one caption; a class score is the mean token score of its name. Images are resized to 800 px on the short side (at most 1333 on the long side). The portable `module()` is the image side with the COCO caption's text features as constants.

Input / output
Input: one RGB image. Output: boxes, class labels, scores and instance masks.
Input size
any H x W >= 32, padded to a multiple of 32; tested up to 3000x4000 (1,373 MiB allocated)
Options
  • score_threshold=0.250.0 to 1.0· changes the output
  • max_detections=100>= 1· changes the output
Outputs
boxes, scores, labels
CUDA kernels
  • msda
Apple (MPS)
fp32

Limitations

  • Requires the optional transformers library (the network is its `GroundingDinoForObjectDetection`).
  • The original in the benchmarks and goldens is the Hugging Face transformers 5.19.0 port with the authors' weights (IDEA-Research/grounding-dino-*, openmmlab-community/mm_grounding_dino_*); the official GroundingDINO and mmdetection code (their CUDA deformable-attention ops) was not run.
  • Class names are joined into one caption of at most 256 tokens (about 100 short names); a longer list raises an error instead of being split into several passes.
  • No phrase output: `labels` index into the given names (the token-level text threshold of the Hugging Face post-processing is not used).
  • llmdet-* and mm-grounding-dino-large: the original in the goldens is transformers' MMGroundingDinoForObjectDetection with the converted weights (openmmlab-community, iSEE-Laboratory); the mmdetection and LLMDet code was not run.
  • grounding-dino-base was trained with COCO (and RefCOCO, ODinW) data: its COCO numbers are not zero-shot.
Full reference, generated from the repository

IDEA Research's Grounding DINO and OpenMMLab's MM-Grounding-DINO (tiny, base; Swin backbone, BERT text encoder): open-vocabulary detector, finds boxes for class names given as text at call time (default: the 80 COCO classes). Apache-2.0 code and weights.

Commercial use: yes.

variantinputbackendtime (ms)peak memory (MiB, allocated / reserved)
grounding-dino-tinysynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp32
199
110
86.9
111
116 (fixed 80-class text prompt)
2541 / 2716
987 / 1106
987 / 1106
2550 / 2664
883 / 888
grounding-dino-tinysynthetic (320x320)original
portable
kernels
TensorRT fp32
–
69.0
55.4
13.6 (network with fixed COCO prompts, standalone build)
–
841 / 948
841 / 948
387 / 406
grounding-dino-basesynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp32
230
132
109
131
159 (fixed 80-class text prompt)
2895 / 3094
1105 / 1322
1105 / 1322
2669 / 2800
1153 / 1160
grounding-dino-base320x320original
portable
kernels
TensorRT fp32
–
–
–
17.6 (fixed 80-class text prompt)
–
–
–
609 / 628
mm-grounding-dino-tinysynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp32
202
110
87.2
111
116 (fixed 80-class text prompt)
2541 / 2716
989 / 1108
989 / 1108
2555 / 2666
883 / 890
mm-grounding-dino-tinysynthetic (320x320)original
portable
kernels
TensorRT fp32
–
69.2
55.5
13.8 (network with fixed COCO prompts, standalone build)
–
842 / 950
842 / 950
387 / 408
mm-grounding-dino-basesynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp32
232
132
110
132
158 (fixed 80-class text prompt)
2895 / 3094
1107 / 1324
1107 / 1324
2669 / 2800
1153 / 1160
mm-grounding-dino-base320x320original
portable
kernels
TensorRT fp32
–
–
–
17.7 (fixed 80-class text prompt)
–
–
–
641 / 662
mm-grounding-dino-largesynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp16
849
452
344
359
378
9329 / 9914
2484 / 3150
2484 / 3148
3285 / 3488
2915 / 2964
llmdet-tinysynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp16
201
103
80.5
80.1
82.4
2544 / 2720
989 / 1108
989 / 1108
1186 / 1226
1113 / 1166
llmdet-basesynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp16
229
126
103
98.7
95.0
2898 / 3098
1107 / 1324
1107 / 1324
1304 / 1344
1339 / 1372
llmdet-largesynthetic (800x1344)original
portable
kernels
portable + torch.compile
TensorRT fp16
849
450
343
358
376
9329 / 9914
2484 / 3150
2484 / 3148
3285 / 3488
2915 / 2964
Details
  • Original code: https://github.com/huggingface/transformers at c4c4605f9618
  • Code licence: Apache-2.0 (permissive); files:
  • Weights licence: Apache-2.0
  • Licence evidence: https://huggingface.co/IDEA-Research/grounding-dino-tiny/blob/a2bb814dd30d776dcf7e30523b00659f4f141c71/README.md
  • Training data: Objects365 (train, box annotations) (Grounding DINO-T: Objects365, GoldG (Flickr30k Entities + GQA / Visual Genome images) and Cap4M (web image-caption pairs with pseudo-boxes); GoldG and Cap4M have no dataset id here (paper arXiv:2303.05499 table 2; the authors' model table).)
    • grounding-dino-base: COCO 2017 (train, instance annotations), Objects365 (train, box annotations) (Grounding DINO-B: COCO, Objects365, GoldG (Flickr30k Entities + GQA / Visual Genome images), Cap4M (web image-caption pairs with pseudo-boxes), OpenImages, ODinW-35 and RefCOCO; only COCO and Objects365 have dataset ids here (the authors' model table, github.com/IDEA-Research/GroundingDINO README).)
    • mm-grounding-dino-tiny: Objects365 (train, box annotations) (MM-Grounding-DINO-T (o365v1_goldg_v3det): Objects365 v1, GoldG (Flickr30k Entities + GQA / Visual Genome images) and V3Det; no COCO, so its COCO numbers are zero-shot (mmdetection configs/mm_grounding_dino README; paper arXiv:2401.02361).)
    • mm-grounding-dino-base: Objects365 (train, box annotations) (MM-Grounding-DINO-B (o365v1_goldg_v3det): Objects365 v1, GoldG (Flickr30k Entities + GQA / Visual Genome images) and V3Det; no COCO, so its COCO numbers are zero-shot (mmdetection configs/mm_grounding_dino README; paper arXiv:2401.02361).)
    • mm-grounding-dino-large: Objects365 (train, box annotations) (MM-Grounding-DINO-L (large_all): Objects365 v1, GoldG (Flickr30k Entities + GQA / Visual Genome images), GRIT and V3Det. The all recipe's exact data list is in the mmdetection configs/mm_grounding_dino README (not re-checked here), so its COCO numbers are not claimed as zero-shot (paper arXiv:2401.02361).)
    • llmdet-tiny: Objects365 (train, box annotations) (LLMDet (GroundingCap-1M: GoldG grounding data with LLM-generated region and image captions; Objects365 and V3Det as in MM-Grounding-DINO); the data list is from the paper and card (not re-checked against the training configs), so COCO numbers are not claimed as zero-shot; only Objects365 has a dataset id here (paper arXiv:2501.18954).)
    • llmdet-base: Objects365 (train, box annotations) (LLMDet (GroundingCap-1M: GoldG grounding data with LLM-generated region and image captions; Objects365 and V3Det as in MM-Grounding-DINO); the data list is from the paper and card (not re-checked against the training configs), so COCO numbers are not claimed as zero-shot; only Objects365 has a dataset id here (paper arXiv:2501.18954).)
    • llmdet-large: Objects365 (train, box annotations) (LLMDet (GroundingCap-1M: GoldG grounding data with LLM-generated region and image captions; Objects365 and V3Det as in MM-Grounding-DINO); the data list is from the paper and card (not re-checked against the training configs), so COCO numbers are not claimed as zero-shot; only Objects365 has a dataset id here (paper arXiv:2501.18954).)
  • Options: score_threshold = 0.25 (0.0 to 1.0), max_detections = 100 (>= 1)
  • Kernel libraries: msda
  • Variants: grounding-dino-tiny, grounding-dino-base, mm-grounding-dino-tiny, mm-grounding-dino-base, mm-grounding-dino-large, llmdet-tiny, llmdet-base, llmdet-large
  • Outputs: boxes, scores, labels; label_set: coco-80
  • Input size: any H x W >= 32, padded to a multiple of 32
  • Tested up to (portable, fp16, RTX 5060 Ti 16 GB): grounding-dino-tiny 3000x4000 (1.3 GiB peak allocated, 1.5 reserved); grounding-dino-base 3000x4000 (1.5 GiB peak allocated, 1.7 reserved); mm-grounding-dino-tiny 3000x4000 (1.3 GiB peak allocated, 1.5 reserved); mm-grounding-dino-base 3000x4000 (1.5 GiB peak allocated, 1.7 reserved); mm-grounding-dino-large 3000x4000 (2.3 GiB peak allocated, 3.1 reserved); llmdet-tiny 3000x4000 (1.0 GiB peak allocated, 1.4 reserved); llmdet-base 3000x4000 (1.2 GiB peak allocated, 1.5 reserved); llmdet-large 3000x4000 (2.3 GiB peak allocated, 3.1 reserved)
  • grounding-dino-tiny 800x1344, first call: portable + torch.compile 73 s (cold Inductor cache), TensorRT fp32 104 s (ONNX + engine).
  • grounding-dino-base 800x1344, first call: portable + torch.compile 98 s (cold Inductor cache), TensorRT fp32 130 s (ONNX + engine).
  • grounding-dino-base 320x320, first call: TensorRT fp32 119 s (ONNX + engine).
  • mm-grounding-dino-tiny 800x1344, first call: portable + torch.compile 71 s (cold Inductor cache), TensorRT fp32 104 s (ONNX + engine).
  • mm-grounding-dino-base 800x1344, first call: portable + torch.compile 105 s (cold Inductor cache), TensorRT fp32 125 s (ONNX + engine).
  • mm-grounding-dino-base 320x320, first call: TensorRT fp32 134 s (ONNX + engine).
  • mm-grounding-dino-large 800x1344, first call: portable + torch.compile 175 s (cold Inductor cache), TensorRT fp16 185 s (ONNX + engine).
  • llmdet-tiny 800x1344, first call: portable + torch.compile 151 s (cold Inductor cache), TensorRT fp16 164 s (ONNX + engine).
  • llmdet-base 800x1344, first call: portable + torch.compile 145 s (cold Inductor cache), TensorRT fp16 166 s (ONNX + engine).
  • llmdet-large 800x1344, first call: portable + torch.compile 174 s (cold Inductor cache), TensorRT fp16 183 s (ONNX + engine).
  • grounding-dino-tiny original 800x1344: torch.autocast(float16) around the call; transformers GroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • grounding-dino-tiny portable 800x1344, kernels 800x1344: Synthetic 800 × 1344 image and default COCO vocabulary through the full public API.
  • grounding-dino-tiny portable 320x320: Full public call on a 320 x 320 image, resized to 800 x 800. The standalone TensorRT row times the fixed 320 x 320 normalized network input.
  • grounding-dino-tiny kernels 320x320: Existing CUDA kernel mode on one fixed input with five warm calls.
  • grounding-dino-base original 800x1344: torch.autocast(float16) around the call; transformers GroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • grounding-dino-base portable 800x1344, kernels 800x1344: Synthetic 800 × 1344 image and default COCO vocabulary through the full public API.
  • mm-grounding-dino-tiny original 800x1344: torch.autocast(float16) around the call; transformers MMGroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • mm-grounding-dino-tiny portable 800x1344, kernels 800x1344: Synthetic 800 × 1344 image and default COCO vocabulary through the full public API.
  • mm-grounding-dino-tiny portable 320x320: Full public call on a 320 x 320 image, resized to 800 x 800. The standalone TensorRT row times the fixed 320 x 320 normalized network input.
  • mm-grounding-dino-tiny kernels 320x320: Existing CUDA kernel mode on one fixed input with five warm calls.
  • mm-grounding-dino-base original 800x1344: torch.autocast(float16) around the call; transformers MMGroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • mm-grounding-dino-base portable 800x1344, kernels 800x1344: Synthetic 800 × 1344 image and default COCO vocabulary through the full public API.
  • mm-grounding-dino-large original 800x1344: torch.autocast(float16) around the call; transformers MMGroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • llmdet-tiny original 800x1344: torch.autocast(float16) around the call; transformers MMGroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • llmdet-base original 800x1344: torch.autocast(float16) around the call; transformers MMGroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • llmdet-large original 800x1344: torch.autocast(float16) around the call; transformers MMGroundingDinoForObjectDetection + processor (CPU), coco-80 caption, text tower per call
  • grounding-dino-tiny load / first call: original 4.06 s / 1.176 s, portable 3.01 s / 0.508 s, kernels 4.14 s / 0.422 s (320x320)
  • grounding-dino-base load / first call: original 4.16 s / 0.989 s, portable 3.29 s / 0.527 s, kernels 4.22 s / 0.449 s
  • mm-grounding-dino-tiny load / first call: original 4.17 s / 0.99 s, portable 3.26 s / 0.517 s, kernels 3.42 s / 0.43 s (320x320)
  • mm-grounding-dino-base load / first call: original 4.1 s / 1.029 s, portable 3.33 s / 0.527 s, kernels 4.67 s / 0.453 s
  • mm-grounding-dino-large load / first call: original 4.77 s / 1.843 s, portable 4.22 s / 0.781 s, kernels 3.56 s / 0.684 s
  • llmdet-tiny load / first call: original 4.05 s / 1.046 s, portable 5.03 s / 0.478 s, kernels 3.16 s / 0.445 s
  • llmdet-base load / first call: original 4.14 s / 0.99 s, portable 5.89 s / 0.495 s, kernels 3.27 s / 0.464 s
  • llmdet-large load / first call: original 4.23 s / 1.838 s, portable 3.51 s / 0.783 s, kernels 3.36 s / 0.666 s
  • Protocol, first call, 3 warm-up, peak reset, median of 3 rounds x median of 5

Measured

pycocotools COCOeval of the top 100 detections per image. Fixed FP32 graph, one prepared prompt for all 80 COCO class names. Score the top 100 query/class pairs per image. The public TensorRT exporter remains gated. The same FP32 320 x 320 preparation and top 100 predictions for all 80 classes, restricted to every 100th validation image in filename order. Resize the same 500 RGB inputs to 800 x 1344. Use one prepared prompt for all 80 COCO classes and score the top 100 query/class pairs per image. Original = the original code named under Details, same checkpoint and protocol.

variantdatasetoriginal fp32original fp16portableportable fp32kernelsportable + torch.compileTensorRTnote
grounding-dino-tinyCOCO val2017, every 10th image, box mAP51.0851.1651.1451.1251.04
grounding-dino-tinyCOCO val2017, every 10th image at fixed 320 x 320, box mAP35.3035.47
grounding-dino-tinyCOCO val2017, 50 images at fixed 320 x 320, box mAP34.9234.92
grounding-dino-tinyCOCO val2017, every 10th image at fixed 800 x 1344, box mAP49.8549.80
grounding-dino-tinyCOCO val2017, all 5000 images, box mAP48.2548.25
grounding-dino-baseCOCO val2017, every 10th image, box mAP55.6755.7355.7257.1357.12
grounding-dino-baseCOCO val2017, every 10th image at fixed 320 x 320, box mAP39.8339.76
grounding-dino-baseCOCO val2017, every 10th image at fixed 800 x 1344, box mAP56.2156.15
mm-grounding-dino-tinyCOCO val2017, every 10th image, box mAP51.49
mm-grounding-dino-tinyCOCO val2017, every 10th image at fixed 320 x 320, box mAP35.7735.79
mm-grounding-dino-tinyCOCO val2017, every 10th image at fixed 800 x 1344, box mAP50.1450.05
mm-grounding-dino-tinyCOCO val2017, every 20th image, box mAP55.1854.9255.4054.99
mm-grounding-dino-baseCOCO val2017, every 10th image, box mAP53.01
mm-grounding-dino-baseCOCO val2017, every 10th image at fixed 320 x 320, box mAP35.6435.60
mm-grounding-dino-baseCOCO val2017, every 10th image at fixed 800 x 1344, box mAP52.0952.23
mm-grounding-dino-baseCOCO val2017, every 20th image, box mAP57.1156.9456.9456.89
mm-grounding-dino-largeCOCO val2017, every 20th image, box mAP63.9264.00
llmdet-tinyCOCO val2017, every 20th image, box mAP59.7859.54
llmdet-baseCOCO val2017, every 20th image, box mAP61.7161.61
llmdet-largeCOCO val2017, every 20th image, box mAP62.9362.72

Measured on portable: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 84ba91d4 / a981ff86 / aee4b565 / db01495e6, 2026-11-12 to 2026-11-28; portable32: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 29b3bbad / 912f67dd / 9e3ff83d+dirty / d9caeca2, 2026-11-17 to 2026-11-20; kernels: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 67dbea00e, 2026-11-20; compile: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 23765f70, 2026-11-19; tensorrt: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 29b3bbad / d9caeca2, 2026-11-18 to 2026-11-19.

Parity

CPU, float32: max |diff| <= 0.002 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 0.25 and p99 <= 0.8 (absolute error of the output boxes).

variantkernels error vs original, mean / p99GPU, torchkernels used
grounding-dino-tiny0.12884 / 0.53156RTX 5060 Ti, torch 2.10.0+cu130msda@7db8a6f4e515:sm_120
grounding-dino-base0.16413 / 0.50577RTX 5060 Ti, torch 2.14.1+cu130msda@7db8a6f4e515:sm_120
mm-grounding-dino-tiny0.08186 / 0.19259RTX 5060 Ti, torch 2.10.0+cu130msda@7db8a6f4e515:sm_120
mm-grounding-dino-base0.08714 / 0.23686RTX 5060 Ti, torch 2.10.0+cu130msda@7db8a6f4e515:sm_120
mm-grounding-dino-large0.0716 / 0.19179RTX 5060 Ti, torch 2.14.1+cu130msda@7db8a6f4e515:sm_120
llmdet-tiny0.07512 / 0.15531RTX 5060 Ti, torch 2.14.1+cu130msda@7db8a6f4e515:sm_120
llmdet-base0.08991 / 0.2123RTX 5060 Ti, torch 2.14.1+cu130msda@7db8a6f4e515:sm_120
llmdet-large0.08225 / 0.20836RTX 5060 Ti, torch 2.14.1+cu130msda@7db8a6f4e515:sm_120

Limitations

  • Requires the optional transformers library (the network is its GroundingDinoForObjectDetection).
  • The original in the benchmarks and goldens is the Hugging Face transformers 5.19.0 port with the authors' weights (IDEA-Research/grounding-dino-, openmmlab-community/mm_grounding_dino_); the official GroundingDINO and mmdetection code (their CUDA deformable-attention ops) was not run.
  • Class names are joined into one caption of at most 256 tokens (about 100 short names); a longer list raises an error instead of being split into several passes.
  • No phrase output: labels index into the given names (the token-level text threshold of the Hugging Face post-processing is not used).
  • llmdet-* and mm-grounding-dino-large: the original in the goldens is transformers' MMGroundingDinoForObjectDetection with the converted weights (openmmlab-community, iSEE-Laboratory); the mmdetection and LLMDet code was not run.
  • grounding-dino-base was trained with COCO (and RefCOCO, ODinW) data: its COCO numbers are not zero-shot.

Example output

No example rendered for this checkpoint yet.