Skip to content
ModelListedExternal
Download

Dit Large

with ONNX weights to be compatible with Transformers.js.

KindOtherBase modelmicrosoft/dit-largeVersionRevision 8fa9730

Model source

Kind
Other
File size
165 MB–1.13 GB
Base model
microsoft/dit-large
Version
vRevision 8fa9730
Updated
Sep 22, 2026
Downloads
229
Source
Hugging Face

Source description

https://huggingface.co/microsoft/dit-large with ONNX weights to be compatible with Transformers.js.

Usage (Transformers.js)

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

Example: Perform image feature extraction.

import { pipeline } from '@huggingface/transformers';

const image_feature_extractor = await pipeline('image-feature-extraction', 'Xenova/dit-large');
const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png';
const features = await image_feature_extractor(url);

Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using 🤗 Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Sources

1 source
Hugging FacePrimaryVersion 8fa9730e4ac7b606f9a0963131c37539be9afc33
huggingface.co/Xenova/dit-large/tree/8fa9730e4ac7b606f9a0963131c37539be9afc33

Verified Sep 9

Model artifacts

7 artifacts

onnx/model_bnb4.onnx

onnx · 167 MB · SHA-256 00fe1fda4aa8…5446 · Hugging Face

Download

onnx/model_fp16.onnx

onnx · 579 MB · SHA-256 da4e80522b42…9147 · Hugging Face

Download

onnx/model_q4.onnx

onnx · 185 MB · SHA-256 c20ff165515f…469f · Hugging Face

Download

onnx/model_q4f16.onnx

onnx · 165 MB · SHA-256 b09abe28d798…c495 · Hugging Face

Download

onnx/model_quantized.onnx

onnx · 293 MB · SHA-256 619b9ddce2c0…e3c6 · Hugging Face

Download

onnx/model_uint8.onnx

onnx · 291 MB · SHA-256 23f946f9eceb…55f4 · Hugging Face

Download

onnx/model.onnx

onnx · 1.13 GB · SHA-256 4c8baa7b7198…e82f · Hugging Face

Download

Source excerpts

2 excerpts

--- base_model: microsoft/dit-large library_name: transformers.js pipeline_tag: image-feature-extraction tags: - dit --- https://huggingface.co/microsoft/dit-large with ONNX weights to be compatible with Transformers.js. ## Usage (Transformers.js) If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using: ```bash npm i @huggingface/transformers ``` **Example:** Perform image feature extraction. ```js import { pipeline } from '@huggingface/transformers'; const image_feature_extractor = await pipeline('image-feature-extraction', 'Xenova/dit-large'); const url = 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png'; const features = await image_feature_extractor(url); ``` Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).

Source context: 229 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers.js · Repo Xenova/dit-large