gitwtfhub

wtf is tutorials?

onnx/tutorials — explained in plain English

Analysis updated 2026-07-03

3,675Jupyter NotebookAudience · dataComplexity · 3/5Setup · moderate

TL;DR

A collection of step-by-step Jupyter Notebook tutorials for converting machine learning models from PyTorch, TensorFlow, Scikit-Learn, and other frameworks into the ONNX format, then running them on runtimes like ONNX Runtime, CoreML, and TensorRT.

Mindmap

mindmap
  root((onnx/tutorials))
    What it does
      Model format conversion
      Cross-framework deployment
    Source Frameworks
      PyTorch
      TensorFlow
      Scikit-Learn
      Keras
    Target Runtimes
      ONNX Runtime
      CoreML
      TensorRT
    Content
      Jupyter Notebooks
      End-to-end examples

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Convert a trained PyTorch or TensorFlow model to ONNX so it can run on a completely different runtime or hardware target

REASON 2

Deploy an ONNX model on Apple devices via CoreML or on NVIDIA hardware via TensorRT using the step-by-step notebook guides

REASON 3

Follow an end-to-end image classification or object detection tutorial that goes from training all the way to ONNX deployment

REASON 4

Browse the ONNX Model Zoo for pre-trained models ready to drop into a project without any conversion step

What's in the stack?

PythonJupyter NotebookONNXPyTorchTensorFlow

How it stacks up

onnx/tutorialsvisualize-ml/book2_beauty-of-data-visualizationhemansnation/ai-engineer-headquarters
Stars3,6753,6783,670
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audiencedatadatadeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Each notebook has its own dependencies, check the installation guide for the specific framework you are converting from.

Wtf does this do

This repository is a collection of tutorials for working with ONNX, which stands for Open Neural Network Exchange. ONNX is an open standard format for saving and sharing machine learning models. The core idea is that a model trained in one framework, such as PyTorch or TensorFlow, can be exported to the ONNX format and then loaded and run in a completely different framework or runtime. This makes it easier to train a model in one environment and deploy it in another, or to switch tools without retraining from scratch. The tutorials are organized around two main tasks. The first is converting models from their native format into ONNX. The repository includes example notebooks for converting models from PyTorch, TensorFlow, Keras, Scikit-Learn, MXNet, Caffe2, MATLAB, and several other frameworks. Each entry points to an installation guide and a working code example. The second task is running, or "scoring," an ONNX model after it has been converted. Supported runtimes for this include ONNX Runtime, Caffe2, CoreML on Apple devices, TensorRT for Nvidia hardware, Windows ML, and others. The tutorials themselves are primarily Jupyter Notebooks, which are interactive documents that mix code, explanations, and output in a format that can be opened and run step by step. This makes them practical for someone who wants to follow along and try the conversions themselves. Beyond conversion, the repository also points to the ONNX Model Zoo, which is a separate collection of pre-trained ONNX models ready to use for common tasks. A section covers end-to-end examples that go from training to deployment, including tasks like image classification, object detection, and language processing. The repository is maintained by the ONNX organization on GitHub and reflects a broad ecosystem of tools that have adopted ONNX as a common interchange format for machine learning models.

Yoink these prompts

Prompt 1
Using the onnx/tutorials notebooks, walk me through converting my PyTorch image classifier to ONNX and running inference with ONNX Runtime in Python.
Prompt 2
I want to deploy an ONNX model on an iPhone. Which tutorial covers CoreML conversion and how do I adapt it for a custom object detection model?
Prompt 3
How do I convert a trained Scikit-Learn pipeline to ONNX format? Use the onnx/tutorials examples as the reference implementation.
Prompt 4
From the onnx/tutorials end-to-end section, show me how to set up TensorRT deployment of an ONNX model on an NVIDIA GPU.

Frequently asked questions

wtf is tutorials?

A collection of step-by-step Jupyter Notebook tutorials for converting machine learning models from PyTorch, TensorFlow, Scikit-Learn, and other frameworks into the ONNX format, then running them on runtimes like ONNX Runtime, CoreML, and TensorRT.

What language is tutorials written in?

Mainly Jupyter Notebook. The stack also includes Python, Jupyter Notebook, ONNX.

How hard is tutorials to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is tutorials for?

Mainly data.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.