Acknowledge the terms to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Access is granted for non-commercial research and evaluation use only. By requesting access you agree not to redistribute this model or any derivative artifacts, to cite Dhi Technologies in any publication or output that uses it, and to obtain a separate commercial license via dhi-tech.com before any commercial use. Access requests are reviewed manually by Dhi Technologies.

Log in or Sign Up to review the conditions and access this model content.

intent2edge-reference-onnx

Reference artifact for the Intent2Edge pipeline, not a production model. This is the ONNX classification export used by the public intent2edge-demo Space. It is a small, fast-loading model file for inspecting what the Intent2Edge pipeline produces from one request: intent, configuration, training, ONNX export and report.

The method and the measured results of the Intent2Edge compiler are described in paper 03, Intent2Edge: Compiling Natural-Language Intent into Refuse-Closed Edge Vision Artifacts (manuscript in preparation). This card does not report an accuracy or latency figure for the toy model in this repository.

Quick start

The class list and the input normalization travel inside the ONNX file as metadata, so the snippet reads them instead of hard-coding them. Needs onnxruntime, numpy and pillow.

import json

import numpy as np
import onnxruntime as ort
from PIL import Image

session = ort.InferenceSession("model.onnx", providers=["CPUExecutionProvider"])
meta = session.get_modelmeta().custom_metadata_map
labels = json.loads(meta["labels"])
mean = np.array(json.loads(meta["mean"]), dtype=np.float32)
std = np.array(json.loads(meta["std"]), dtype=np.float32)
height, width = json.loads(meta["input_resolution"])

def classify(path):
    image = Image.open(path).convert("RGB").resize((width, height))
    x = (np.asarray(image, dtype=np.float32) / 255.0 - mean) / std
    x = x.transpose(2, 0, 1)[None]  # NCHW, batch of 1
    logits = session.run(["logits"], {"images": x})[0][0]
    probs = np.exp(logits - logits.max())
    probs /= probs.sum()
    return labels[int(probs.argmax())], float(probs.max())

print(classify("example.png"))  # (label, probability)

Input: images, float32, shape (batch, 3, 96, 96). Output: logits, shape (batch, 3).

Intended use

  • Inspecting what one Intent2Edge run produces: the ONNX graph, its embedded metadata, and the input and output contract a deployment target receives.
  • Testing ONNX tooling (runtimes, quantizers, converters) on a small, fast-loading classification graph.

Out of scope

  • Any decision about real images or real scenes. The model has only seen synthetic colored shapes.
  • Measuring the Intent2Edge method. Use the paper 03 results below, not this toy artifact.

What it is

  • Task: image classification with 3 synthetic classes: red_square, blue_circle, green_triangle.
  • Backbone: mobilenet_v3_small, pretrained on a large public image-classification corpus.
  • Parameters: about 1.52 million. Paper 03 reports 1.52 million parameters for its MobileNetV3-Small classification artifact.
  • Input: 96x96 RGB images.
  • Export format: ONNX, opset 17.
  • Training data: a small synthetic set of colored shapes produced by the pipeline's toy-data command. It is not a natural-image dataset. Matching fixtures are in intent2edge-examples.

Results from paper 03

These are the measured results of the Intent2Edge pipeline. They are not results of this toy artifact.

  • Prompt-guided versus fixed augmentation. Pooled over five stated deployment conditions, the guided arm scores 5.9 points above the fixed arm on the matched corruption families (bootstrap 95% interval +4.6 to +7.3; 15 dataset-seed pairs). Guided is higher than fixed in all five conditions.
  • Validity gate. A confidence-calibrated gate at confidence 0.7 lowers false accepts on the seed-23 configurations from 30 to 14, at 1.22 times the refusals.
  • Export fidelity. The FP32 ONNX export reproduces PyTorch logits to a maximum absolute difference of 2.0e-04, with top-1 agreement of 1.0 on every split.
  • Certificate retention. On a frozen independent split, 10 of 10 QDQ ONNX graphs keep at least 0.98 of their FP32 accuracy. The certificate holds in 80 of 80 runtime-condition cells on a second host, and in 210 of 210 cells on x86 across 3 ONNX Runtime versions.

What this is not

  • Not a production or deployment-ready classifier.
  • Not evidence of real-world classification quality. The labels, images and split are synthetic and small.
  • Not a benchmark. Use it to inspect the pipeline output and the export format.

Provenance

  • Code repository: DHI-Technologies-Inc/intent2edge on GitHub (not public yet; this card links it once it is)
  • Commit: 78924f01dc03483003d59c2e3528468f5a04eae0
  • Command: PYTHONPATH=src python -m prompt2model.cli smoke-test --output-dir <fresh directory> (the module name in the code repository at that commit); the classification run's model.onnx is this file
  • SHA-256 of model.onnx: 0d83e4d501f28a23c598259f9c31afbf65cf7efc8c919a51bdad98aae22b6bba. The same command at the earlier commit c097351 produced a byte-identical file.
  • Date: 2026-10-23
  • Replaces the 2026-07-10 file, which came from a smoke-test run before the backbone was initialized from pretrained weights. That earlier graph returned the same logits for every input.

License and access

Released under cc-by-nc-4.0 and gated for non-commercial research and evaluation only. No redistribution. Commercial licensing via dhi-tech.com.

Links

Commercial licensing

Research and evaluation use is free. Production and commercial use is licensed self-serve with published prices.

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

Space using Dhi-Technologies/intent2edge-reference-onnx 1

Collections including Dhi-Technologies/intent2edge-reference-onnx