ViT-Base-P16 (ONNX) – Renesas X5H

Introduction

This repository hosts ViT-Base/16 (Vision Transformer, 16Γ—16 patches), targeting the Renesas R-Car X5H platform for image classification inference on the NPX6 NPU.

  • Model Architecture: ViT-Base/16 β€” a Vision Transformer backbone, pretrained with MAE (Masked Autoencoder) self-supervision and then fine-tuned for ImageNet-1k classification.
  • Source Model: OpenMMLab config vit_base_p16_32xb128_mae_in1k (no HuggingFace mirror of these weights; see model.source in .metadata.yaml)
  • Task: Image Classification (ImageNet-1k, 1000 classes)
  • Parameters: 86M

Note: A vit_tiny variant also exists in the source benchmark data but produced zero passing compile/execute runs in the APM50 CI pipeline (both slices failed). It is intentionally not included in this repository β€” only the ViT-Base/16 checkpoint, which has passing benchmark numbers, is published here.

Deployment Flow

The FP32 ONNX model is auto-cast to INT8 by the Renesas MWMX toolchain at compile time β€” no separate quantization step is required.

vit_base_p16_..._optimized.onnx (FP32)
        β”‚
        └─▢  MWMX Runtime  ──▢  INT8 auto-cast  ──▢  NPX6 NPU

Provided Artifacts

Artifact Status Notes
FP32 (ONNX) βœ… fp32/vit-base-p16_32xb128-mae_in1k.onnx β€” FP32 ONNX export

Performance

Measured on Renesas R-Car X5H via the MWMX runtime (APM50 ship-performance CI pipeline).

Benchmark configuration: Single NPU Β· Batch size: 1 Β· Input resolution: not available from source data (TBD)

Parameters Runtime Precision Device Latency (ms) Type
86M MWMX Runtime INT8 (auto) X5H Β· 1Γ— NPU Β· 1 Core Β· 850 MHz 25.796629 Measured
86M MWMX Runtime INT8 (auto) X5H Β· 1Γ— NPU Β· 1 Core Β· 850 MHz 25.923109 Measured (2026-09-16)
86M MWMX Runtime INT8 (auto) X5H Β· 1Γ— NPU Β· 12 Cores Β· 850 MHz 6.873014 Measured

Accuracy

TBD β€” not yet measured/published for this repo.


ONNX Runtime – Renesas EP v2.1.0 (MWMX 2.2 ENG4)

Measured on R-Car X5H with ONNX Runtime + Renesas Execution Provider (INT8 auto-cast); nodes the NPU cannot run fall back to the CPU EP. Batch size 1, 1 NPU. Source: ORT Renesas EP test report, status 2026-09-30. This section supersedes earlier ORT figures in this card.

Component AI Cores Latency (ms) Throughput (fps) NPU Inference (ms) NPU % CPU + Overhead % Portable pkg NPU-only (ms)
Full model 1 25.476 39.3 24.702 97.0 % 3.0 % β€”
Full model 12 8.349 119.8 β€” β€” β€” β€”

12-core latency is not always lower than 1-core: small models are dominated by CPU-side overhead.

Graph partitioning (NPU vs CPU nodes)

Component Total Nodes NPU Nodes CPU Nodes (Q/DQ inserted) NPU % CPU %
Full model 154 153 1 (1) 99.3 % 0.7 %

Compile notes (from the test workbook)

  • Subgraph config:

    default_settings:
      opt_model_pass:
        - FuseAttention
    

Runtime Details

MWMX Runtime

  • Engine: Renesas MWMX (Middleware MX) native inference runtime
  • Input format: FP32 ONNX (compiled by the MWMX toolchain)
  • NPU execution precision: INT8 (auto-cast by MWMX toolchain)
  • Execution target: NPX6-48K NPU on R-Car X5H

Prerequisites

To run inference on Renesas R-Car X5H, you need:

  1. Renesas R-Car X5H board with NPX6 NPU
  2. Renesas MWMX Runtime
  3. Hugging Face CLI to download the model

Download

hf download Renesas/ViT-Base-P16-ONNX --repo-type=model --include "fp32/*"

Benchmark Methodology

  • HIL runs: Hardware-in-the-loop β€” measured on physical R-Car X5H silicon via the MWMX runtime (metawaremx_runtime CI pipeline, "APM50" ship-performance target)
  • Precision: FP32 ONNX input; INT8 execution (auto-cast by MWMX)
  • Slices: results reported for both 1 AI core and 12 AI cores per NPU instance
  • Excluded: the vit_tiny variant from the same source data batch had 0 passing runs across both slices and is not represented in this repository
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support