Skip to content
ModelsThatRun

YOLOX

Megvii's anchor-free YOLO with a decoupled head, six sizes from nano to x on COCO's 80 classes, Apache-2.0.

Size

Commercial use OK for size nano: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 12.2 ms median, 501 MiB VRAM peak. We scored it 25.7 box AP on COCO val2017. PyTorch and ONNX weights, 7 MB.

License

Commercial use OK

Code
Apache-2.0checked 17 Nov 2026
Weights
Apache-2.0all sizes, checked 17 Nov 2026

The weights are release assets of the YOLOX repository itself, with no separate license, so its Apache-2.0 applies. The README also links ONNX files for this size (demo/ONNXRuntime/README.md).

On our RTX 4090, measured

12.2ms median

p90 12.9 ms, fp16, batch 1, 416x416

VRAM peak
501 MiB
Status
Runs as is

Phases of one call

Pre-processing
1.0 ms
Network
10.7 ms
Post-processing
0.7 ms

Split by our adapter over 20 calls, with a synchronize after each phase. The synchronizes stop the CPU and GPU from overlapping, so the phases don't add up to the median; the whole call took 12.4 ms there.

Environment, 22 Nov 2026

NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, Megvii-BaseDetection/YOLOX@6ddff4824372906469a7fae2dc3206c7aa4bbaee. Baseline 1068 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Accuracy

25.7box APmeasured

COCO val2017, box AP, 5,000 images, fp16, pycocotools==2.0.11 · 17 Nov 2026

Paper 25.8 COCO APREADME, Light Models table (mAP val)

Weights

PyTorchONNX

Size
7 MB
sha256
cd28f55fbbc1829f99d9ac9b38a16d259a22889739c8728ea877610201feff7b
Download nano weights

Same photos and one score threshold for every model of this task. Failures are marked.

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
nano12.2 ms416x416501 MiB25.7 box AP, measured25.8 COCO AP paper7 MBAs isCommercial OK
tiny10.0 ms416x416520 MiB32.8 box AP, measured32.8 COCO AP paper39 MBAs isCommercial OK
s11.5 ms640x640537 MiB40.3 box AP, measured40.5 COCO AP paper69 MBAs isCommercial OK
m13.8 ms640x640601 MiB46.8 box AP, measured46.9 COCO AP paper194 MBAs isCommercial OK
l16.5 ms640x640721 MiB49.6 box AP, measured49.7 COCO AP paper414 MBAs isCommercial OK
x18.9 ms640x640886 MiB51.0 box AP, measured51.1 COCO AP paper757 MBAs isCommercial OK

Estimated on other GPUs

Estimate, not measured. Worked out from our RTX 4090 run and NVIDIA's spec sheets. Each kind of GPU work is scaled by that GPU's peak for it: tensor cores at the precision the kernels used, CUDA cores, or memory bandwidth. The CPU's part of each call is kept at what it took on our Intel Core i7-10700K. How we estimate

Where a call's time goes on our RTX 4090: CPU and kernel launches 90%, memory-bound 7%, tensor cores, FP16 (FP32 accumulate) 2%, host–device copies 1%.

GeForce (13)
GPUFitsLatency
GeForce RTX 5090Blackwell, 32 GB GDDR7Yes≈ 12 ms
GeForce RTX 5080Blackwell, 16 GB GDDR7Yes≈ 12 ms
GeForce RTX 5070 TiBlackwell, 16 GB GDDR7Yes≈ 12–13 ms
GeForce RTX 5070Blackwell, 12 GB GDDR7Yes≈ 12–13 ms
GeForce RTX 5060 Ti 16GBBlackwell, 16 GB GDDR7Yes≈ 12–14 ms
GeForce RTX 5060Blackwell, 8 GB GDDR7Yes≈ 12–14 ms
GeForce RTX 4080Ada Lovelace, 16 GB GDDR6XYes≈ 12–13 ms
GeForce RTX 4070 TiAda Lovelace, 12 GB GDDR6XYes≈ 12–13 ms
GeForce RTX 4070Ada Lovelace, 12 GB GDDR6XYes≈ 12–14 ms
GeForce RTX 3090Ampere, 24 GB GDDR6XYes≈ 12–13 ms
GeForce RTX 3080Ampere, 10 GB GDDR6XYes≈ 12–13 ms
GeForce RTX 3070 TiAmpere, 8 GB GDDR6XYes≈ 12–13 ms
GeForce RTX 3070Ampere, 8 GB GDDR6Yes≈ 12–14 ms
Workstation (4)
GPUFitsLatency
RTX PRO 6000 Blackwell Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 12 ms
RTX PRO 6000 Blackwell Max-Q Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 12 ms
RTX 6000 Ada GenerationAda Lovelace, 48 GB GDDR6Yes≈ 12 ms
RTX A6000Ampere, 48 GB GDDR6Yes≈ 12–13 ms
Data center (6)
GPUFitsLatency
B200 (HGX, one GPU)Blackwell, 180 GB HBM3EYes≈ 11–12 ms
H200 SXMHopper, 141 GB HBM3eYes≈ 11–12 ms
H100 SXMHopper, 80 GB HBM3Yes≈ 11–12 ms
A100 SXM 80GBAmpere, 80 GB HBM2eYes≈ 12 ms
L40SAda Lovelace, 48 GB GDDR6Yes≈ 12 ms
L4Ada Lovelace, 24 GB GDDR6Yes≈ 12–14 ms

CPU only

Measured by us with no GPU on an Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz, 8 cores, 94.2 GiB of memory: the same official code with the GPU hidden, in fp32 on 8 threads. Before it was timed, its output on the timing input was checked against the GPU's. These numbers say what to expect without a GPU. They aren't compared with any GPU's, here or in the charts. How we measure on a CPU

SizeRuntimeLatency on the CPURAM peak
nanoPyTorch2.14.1 · fp32 · 8 threads26.9 ms416x416755 MiB
tinyPyTorch2.14.1 · fp32 · 8 threads31.9 ms416x416781 MiB
sPyTorch2.14.1 · fp32 · 8 threads86.5 ms640x640885 MiB
mPyTorch2.14.1 · fp32 · 8 threads180 ms640x6401015 MiB
lPyTorch2.14.1 · fp32 · 8 threads328 ms640x6401.3 GiB
xPyTorch2.14.1 · fp32 · 8 threads552 ms640x6401.8 GiB

From the authors

Where to read their own account of it.

Alternatives

Changes

First published . Every model's changes

    • tiny re-measured · RTX 4090 · PyTorch fp16, 416x416: 9.7 → 10.0 ms
    • s re-measured · RTX 4090 · PyTorch fp16, 640x640: 11.2 → 11.5 ms
    • m re-measured · RTX 4090 · PyTorch fp16, 640x640: 13.6 → 13.8 ms
    • l re-measured · RTX 4090 · PyTorch fp16, 640x640: 15.8 → 16.5 ms
    • x re-measured · RTX 4090 · PyTorch fp16, 640x640: 17.9 → 18.9 ms
    • Note: Every GPU row timed again with glibc's heap trimming off, which removes a slower level some processes settled at.
    • Added, with sizes nano, tiny, s, m, l, and x

Badge for a README

It says the model ran on our RTX 4090 and links to this page. It carries no number, so it never goes out of date.

ModelsThatRun: ran on RTX 4090
[![ModelsThatRun: ran on RTX 4090](https://modelsthatrun.dev/models/yolox/badge.svg)](https://modelsthatrun.dev/models/yolox/)

Something wrong on this page, such as a license or a number? Email us.

⇆
InputOutput