explaingit

leaplabthu/adaptivenn-jittor

Analysis updated 2026-05-18

28PythonAudience · researcherComplexity · 5/5LicenseSetup · hard

TLDR

A Jittor port of the AdaptiveNN vision model that reproduces the original PyTorch model's roughly 82 percent ImageNet accuracy.

Mindmap

mindmap
  root((AdaptiveNN-Jittor))
    What it does
      Ports AdaptiveNN to Jittor
      Adaptive compute per image region
      Matches PyTorch accuracy
    Tech stack
      Python
      Jittor
      PyTorch reference
    Use cases
      Run inference on ImageNet
      Benchmark inference speed
      Research adaptive vision models
    Audience
      Researchers
      ML engineers
    Status
      Inference stable
      Training FP32 only
      Mixed precision experimental

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

Run image classification inference on ImageNet-1K using a Jittor based model.

USE CASE 2

Benchmark inference speed across different batch sizes and precision levels.

USE CASE 3

Study a working example of porting a PyTorch research model to Jittor.

USE CASE 4

Reproduce the published accuracy results for the AdaptiveNN model.

What is it built with?

PythonJittorPyTorchImageNet-1K

How does it compare?

leaplabthu/adaptivenn-jittoralicankiraz1/codexqbamirmushichge/vibemotion
Stars282828
LanguagePythonPythonPython
Setup difficultyhardeasymoderate
Complexity5/53/53/5
Audienceresearcherdeveloperdesigner

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

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires a GPU and the ImageNet-1K dataset, training beyond full FP32 is unstable.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

This repository is a port of the AdaptiveNN image classification model from PyTorch to a different AI computing framework called Jittor. Jittor is a deep learning framework developed by Tsinghua University that uses just-in-time compilation to speed up neural network operations. The original AdaptiveNN was published as research from the same university and appeared in the journal Nature Machine Intelligence. AdaptiveNN is described as a vision model that adapts how much computation it spends on different parts of an image, similar to how human eyes pay more attention to certain areas. This repository provides code for running that model and training it on a large image classification dataset called ImageNet-1K, which contains about 1.2 million images across 1,000 categories. The port reproduces the original model's accuracy: roughly 82 percent top-1 accuracy on the ImageNet validation set, matching what the PyTorch version achieves. Inference speed under the best configuration is about 88 percent of PyTorch's speed. Training is currently only stable when run in full 32-bit floating point mode, mixed precision training (which speeds things up on modern GPUs) is experimental and may produce numerical errors. The repository includes shell scripts for benchmarking inference speed across different batch sizes and precision settings, a training script, and instructions for setting up the environment using conda and pip. Users need to supply their own copy of the ImageNet dataset and download the pre-trained model weights separately, following a companion evaluation guide included in the repository. The code is licensed under MIT.

Copy-paste prompts

Prompt 1
Help me set up a conda environment to run AdaptiveNN-Jittor for inference.
Prompt 2
Explain what the AMP levels mean in AdaptiveNN-Jittor and which one I should use.
Prompt 3
Walk me through preparing the ImageNet-1K dataset folder structure for this repo.
Prompt 4
Why does mixed precision training cause numerical errors in AdaptiveNN-Jittor?
Prompt 5
Help me interpret the inference speed benchmark results from cp_gpu_all.sh.

Frequently asked questions

What is adaptivenn-jittor?

A Jittor port of the AdaptiveNN vision model that reproduces the original PyTorch model's roughly 82 percent ImageNet accuracy.

What language is adaptivenn-jittor written in?

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

What license does adaptivenn-jittor use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is adaptivenn-jittor to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is adaptivenn-jittor for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.