Yolo Export logo

Yolo Export

Organization
ultralytics
yolo-export

Use when exporting or deploying Ultralytics YOLO models in Platform or code — the Platform Export tab and yolo export/model.export() for ONNX, TensorRT, CoreML, Core AI, OpenVINO, LiteRT, NCNN, ExecuTorch, and NPUs (RKNN, QNN, Hailo, Ascend, IMX, Axelera, DeepX, Xilinx, NXP), FP16/INT8 quantization, benchmarking, and non-Python runtimes. For inference with .pt weights or Platform endpoints, see yolo-inference.

Overview

Publisherultralytics
Repositoryskills
Skill nameyolo-export
Stars
38
Forks
0
Bundled files
2
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ultralytics on GitHub. Read the source before you install it.

Installation

Install the Yolo Export AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ultralytics/skills/tree/main/skills/yolo-export
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ultralytics/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/yolo-export .claude/skills/yolo-export
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yolo Export in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yolo Export on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yolo Export is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Export, quantization & deployment

Fastest route: export in Platform

Open a completed model's Export tab, select a format, configure its arguments, and click Start Export. Platform runs CPU exports directly and asks for a target GPU where the format requires one (notably TensorRT); download the artifact when the job completes. For TensorRT, select the deployment device's GPU family or Jetson target; if its TensorRT/CUDA versions differ from the device's, export locally on that device instead.

Use Platform when you do not want to install each exporter toolchain locally. Use the Python/CLI path below for custom calibration, repeatable automation, local hardware builds, or immediate parity validation. See Platform model export.

Quickstart

python
from ultralytics import YOLO

model = YOLO("runs/detect/train/weights/best.pt")
path = model.export(format="onnx")  # returns the exported file/dir path
bash
yolo export model=best.pt format=onnx

Exports load straight back into YOLO() for predict/val — same API:

python
model = YOLO("best.onnx")  # or best.engine, best_openvino_model/, ...

Choose format by target hardware

Targetformat=Why
NVIDIA GPU / Jetsonengine (TensorRT)fastest on NVIDIA; build on the deployment device — engines are not portable across GPUs/TRT versions
Intel CPU/iGPU/NPUopenvinoup to 3× CPU speedup on Intel
Apple iOS/macOScoremlbroad OS coverage, Vision/iOS/Flutter support
Apple iOS 27+/macOS 27+coreainative .aimodel; iOS/Flutter SDKs default to coreml; export on Apple silicon macOS 26+ or x86_64 Linux
Androidlitert (renamed from tflite) or ncnnNCNN strong on ARM
Raspberry Pincnnbest ARM CPU latency
PyTorch Edgeexecutorch
Cross-platform / unsureonnxruns everywhere; start here, specialize when latency demands
NPUs (Rockchip/Qualcomm/Hailo/Huawei/Sony/Axelera/DeepX/AMD/NXP)rknn / qnn / hailo / ascend / imx / axelera / deepx / xilinx / nxpname= selects the exact chip for rknn/qnn/hailo/ascend/xilinx

Full 23-target local export matrix with per-format supported args: format-matrix.md (this folder).

Key arguments

ArgDefaultNotes
imgszmodelinherited from the loaded model; set explicitly to the deployment shape
quantizeNoneprecision request: 16/fp16, 8/int8/w8a8, w8a16, w8a32, or 32/fp32; support, speed, size, and accuracy are backend-dependent — see format-matrix.md and benchmark the target
dataNonerepresentative calibration data when required; use >300 images generally and 500+ for TensorRT. Omission selects a small task default, so pass deployment-representative data explicitly
dynamicFalsevariable input shape/batch where supported; check format-matrix.md and benchmark the target
batch1max batch baked into the export
simplifyTruesimplify ONNX graph
opsetNonecompatible ONNX opset selected automatically when unset; pin lower if the consumer runtime complains
nmsNoneNone: raw outputs for external NMS (YOLO26 too, except axelera); True embeds NMS where format-matrix.md lists nms; False selects the YOLO26/YOLOv10 NMS-free head, else raw outputs
workspaceNoneTensorRT builder GiB — lower if the build OOMs
deviceNoneTensorRT needs a GPU (auto-set to device=0 when unset); a GPU also speeds INT8 calibration
fraction1.0fraction of calibration data used

Verify parity after export (always)

bash
yolo val model=best.pt data=data.yaml batch=1 rect=False   # baseline at the exported artifact's settings
yolo val model=best.onnx data=data.yaml batch=1 rect=False # compare the same task metric with the baseline

A fixed-shape export validates with rect=False and, except TorchScript, at its export batch (1 by default), so give the .pt baseline the same two arguments or its rectangular batching changes the numbers. Acceptable differences depend on the task, model, backend, precision, and calibration data. Investigate unexpected gaps by matching imgsz and pre/post-processing and, where required, using representative calibration data. Also compare one prediction with .pt.

Benchmark all formats empirically

bash
yolo benchmark model=best.pt data=data.yaml imgsz=640                                    # all formats at default precision
yolo benchmark model=best.pt data=data.yaml format=engine quantize=16 device=0 imgsz=640 # targeted FP16

Produces the task metric + latency per exportable format on this machine. Repeat for each supported precision and benchmark on deployment hardware, not your dev box.

Consuming exports outside Python

  • In raw runtimes (C++, mobile, JS) you own preprocessing (letterbox resize, BGR→RGB, /255) and output decoding.
  • Detect output layout follows nms: the default nms=None emits raw [4+nc, anchors] heads (xywh boxes + class scores) for every model, YOLO26 included, so you run NMS (imx instead always embeds NMS, and axelera keeps the NMS-free head). nms=False on YOLO26/YOLOv10 emits NMS-free [max_det, 6] rows [x1,y1,x2,y2,conf,cls], and nms=True embeds NMS with the same row layout where supported; some formats fall back to raw heads (format-matrix.md). Segment, pose, and OBB add task-specific outputs. Check export warnings and shapes.
  • Class names travel in export metadata where supported; otherwise ship the names map alongside the model.
  • Serving: ultralytics.utils.triton.TritonRemoteModel for Triton; examples/ in the ultralytics repo has ONNXRuntime C++/Rust/Python references.

Troubleshooting

SymptomFix
Export crashes on missing packagemost backends auto-install on first export; rerun. On Linux, TensorRT auto-installs as tensorrt-cu<torch CUDA major>; elsewhere install it per NVIDIA docs. Hailo (Dataflow Compiler) and Ascend (CANN atc) need their vendor SDK first
Unsupported ONNX opset downstreamexport with lower opset=, or upgrade the runtime
TensorRT build OOM/slowlower workspace, batch=1, dynamic=False
Export much less accurateimgsz mismatch; too little/unrepresentative calibration data; wrong custom pre/post-processing; use a supported higher precision or backend
Engine fails on another machineTensorRT engines are device+version specific — rebuild on target
CoreML export fails on Windowsexport on macOS or Linux
Core AI export is unavailablerequires macOS 26+ on Apple silicon or x86_64 Linux (glibc 2.34+), torch>=2.8, and Python 3.11–3.14; use CoreML for broader production support
Deprecation warnings for half/int8/end2end/tfliteauto-forwarded (half→quantize=16, int8→quantize=8, end2end=True→nms=False, end2end=False→nms=None unless nms=True is also passed, tflite→litert) — switch to the new names

Related pages

  • format-matrix.md — all 23 local export targets, artifacts produced, and supported args. Read when using any format beyond onnx/engine/openvino/coreml.

If the installed version rejects an argument, trust the error text (format and quantize errors list valid values) and yolo cfg over this file.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yolo Export AI skill do?

Use when exporting or deploying Ultralytics YOLO models in Platform or code — the Platform Export tab and yolo export/model.export() for ONNX, TensorRT, CoreML, Core AI, OpenVINO, LiteRT, NCNN, ExecuTorch, and NPUs (RKNN, QNN, Hailo, Ascend, IMX, Axelera, DeepX, Xilinx, NXP), FP16/INT8 quantization, benchmarking, and non-Python runtimes. For inference with .pt weights or Platform endpoints, see yolo-inference.

Why use Yolo Export on TypingMind?

Because you install it once and use it with any model. Yolo Export is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yolo Export in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ultralytics/skills/tree/main/skills/yolo-export. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yolo Export?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yolo Export?

As many as you like. As long as a model supports skills, you can use Yolo Export with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yolo Export AI skill free?

Yes. It is published on GitHub by ultralytics under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇