explaingit

paddlepaddle/graphnet

Analysis updated 2026-07-06 · repo last pushed 2026-05-22

95PythonAudience · researcherComplexity · 2/5MaintainedSetup · easy

TLDR

GraphNet is a benchmark dataset of over 2,700 real neural network computation graphs, designed to help researchers test and fairly compare how well different tensor compilers optimize deep learning model performance.

Mindmap

mindmap
  root((repo))
    What it does
      2700 plus real graphs
      Standardized test cases
      Fair compiler comparison
    Metrics
      Raw speedup score
      Reliability with errors
    Use cases
      AI for Compilers
      Hardware regression tests
      Optimization validation
    Audience
      Compiler researchers
      Hardware companies
    Tech stack
      Python
      PyTorch
      PaddlePaddle
Click or tap to explore — scroll the page freely

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

What do people build with it?

USE CASE 1

Test a tensor compiler against 2,700+ real models to measure average speedup and identify failure cases.

USE CASE 2

Use the dataset as a regression suite to verify that a new hardware chip works well with existing compilers.

USE CASE 3

Train a machine learning model to predict which compiler optimizations work best for specific computation graphs.

What is it built with?

PythonPyTorchPaddlePaddle

How does it compare?

paddlepaddle/graphnetyoheinakajima/activegraphhuey1in/windsurfx
Stars959697
LanguagePythonPythonPython
Last pushed2026-05-22
MaintenanceMaintained
Setup difficultyeasyeasymoderate
Complexity2/54/53/5
Audienceresearcherdeveloperdeveloper

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

How do you get it running?

Difficulty · easy Time to first run · 5min

In plain English

GraphNet is a benchmark dataset for researchers working on tensor compilers, the behind-the-scenes tools that make deep learning models run faster on hardware. It collects over 2,700 "computation graphs" (essentially blueprints of how a neural network processes data) extracted from real, state-of-the-art models across natural language processing, computer vision, and other tasks. The goal is to give compiler researchers a shared, standardized set of test cases so they can fairly compare how well different compilers optimize performance. When a deep learning model runs, a tensor compiler translates its computation graph into efficient machine code. Different compilers, like PyTorch's TorchInductor or PaddlePaddle's CINN, take different approaches, and until now there hasn't been a large, common dataset to evaluate them against. GraphNet fills that gap by providing models in a standardized format with rich metadata, so researchers can run a compiler across all 2,700+ graphs, measure speedup against a baseline, and see where it shines or struggles. The project also introduces two custom metrics: one that scores raw speedup, and another that factors in compilation or runtime errors, giving a more realistic picture of a compiler's practical reliability. The primary audience is tensor compiler developers and researchers, particularly those exploring "AI for Compilers", using machine learning to automatically improve compiler optimization strategies. A hardware company testing whether their new chip works well with existing compilers could use this dataset as a regression test suite. A compiler team deciding whether a new optimization actually helps across diverse models, or a researcher training a model to predict good optimization strategies, would also find it valuable. The roadmap includes expanding to 10,000+ graphs, adding multi-GPU scenarios, and enabling subgraph-level analysis, pointing toward increasingly granular and large-scale evaluation.

Copy-paste prompts

Prompt 1
Write a script that loads the GraphNet dataset of 2,700 computation graphs and runs my tensor compiler on each one, recording execution time and any compilation errors.
Prompt 2
Help me calculate the two GraphNet metrics, raw speedup score and reliability-adjusted speedup, from my compiler's output logs across the dataset.
Prompt 3
I want to train a graph neural network on the GraphNet dataset to predict which optimization strategy will yield the best speedup for an unseen computation graph. How should I structure the training pipeline?
Prompt 4
Create a benchmarking report that runs PaddlePaddle CINN and PyTorch TorchInductor across the GraphNet dataset and compares their speedups using the custom metrics.

Frequently asked questions

What is graphnet?

GraphNet is a benchmark dataset of over 2,700 real neural network computation graphs, designed to help researchers test and fairly compare how well different tensor compilers optimize deep learning model performance.

What language is graphnet written in?

Mainly Python. The stack also includes Python, PyTorch, PaddlePaddle.

Is graphnet actively maintained?

Maintained — commit in last 6 months (last push 2026-05-22).

How hard is graphnet to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is graphnet for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.