Skip to content
ModelListedExternal
Browse files

Ijepa Vith16 1k

with ONNX weights to be compatible with Transformers.js.

KindOtherBase modeljmtzt/ijepa_vith16_1kVersionRevision 59ebd91

Model source

Kind
Other
File size
584 KB–1.18 GB
Base model
jmtzt/ijepa_vith16_1k
Version
vRevision 59ebd91
Updated
Sep 16, 2026
Downloads
10
Source
Hugging Face

Source description

https://huggingface.co/jmtzt/ijepa_vith16_1k 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: Image feature extraction with onnx-community/ijepa_vith16_1k.

import { pipeline, cos_sim } from "@huggingface/transformers";

// Create an image feature extraction pipeline
const extractor = await pipeline(
  "image-feature-extraction",
  "onnx-community/ijepa_vith16_1k",
  { dtype: "q8" },
);

// Compute image embeddings
const url_1 = "http://images.cocodataset.org/val2017/000000039769.jpg"
const url_2 = "http://images.cocodataset.org/val2017/000000219578.jpg"
const output = await extractor([url_1, url_2]);
const pooled_output = output.mean(1); // Apply mean pooling

// Compute cosine similarity
const similarity = cos_sim(pooled_output[0].data, pooled_output[1].data);
console.log(similarity); // 0.5334921616321957

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 59ebd911845f639c18e06b1239ac243a30a7d35f
huggingface.co/onnx-community/ijepa_vith16_1k/tree/59ebd911845f639c18e06b1239ac243a30a7d35f

Verified Sep 16

Download files

Model artifacts

8 artifacts

onnx/model_bnb4.onnx

onnx · 348 MB · SHA-256 96ed1b356a90…a420 · Hugging Face

Download file

onnx/model_fp16.onnx

onnx · 1.18 GB · SHA-256 a3a05a2ed11f…b6c0 · Hugging Face

Download file

onnx/model_int8.onnx

onnx · 609 MB · SHA-256 7b75ad866418…d0a5 · Hugging Face

Download file

onnx/model_q4.onnx

onnx · 385 MB · SHA-256 f109d85a9903…b3e2 · Hugging Face

Download file

onnx/model_q4f16.onnx

onnx · 343 MB · SHA-256 31aeae0c1c59…67c3 · Hugging Face

Download file

onnx/model_quantized.onnx

onnx · 609 MB · SHA-256 018ece3de1c8…8ccd · Hugging Face

Download file

onnx/model_uint8.onnx

onnx · 609 MB · SHA-256 018ece3de1c8…8ccd · Hugging Face

Download file

onnx/model.onnx

onnx · 584 KB · SHA-256 daf859fbbbc7…9ec6 · Hugging Face

Download file

Source excerpts

2 excerpts

--- library_name: transformers.js base_model: jmtzt/ijepa_vith16_1k --- https://huggingface.co/jmtzt/ijepa_vith16_1k 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:** Image feature extraction with `onnx-community/ijepa_vith16_1k`. ```js import { pipeline, cos_sim } from "@huggingface/transformers"; // Create an image feature extraction pipeline const extractor = await pipeline( "image-feature-extraction", "onnx-community/ijepa_vith16_1k", { dtype: "q8" }, ); // Compute image embeddings const url_1 = "http://images.cocodataset.org/val2017/000000039769.jpg" const url_2 = "http://images.cocodataset.org/val2017/000000219578.jpg" const output = await extractor([url_1, url_2]); const pooled_output = output.mean(1); // Apply mean pooling // Compute cosine similarity const similarity = cos_sim(pooled_output[0].data, pooled_output[1].data); console.log(similarity); // 0.5334921616321957 ``` --- 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: 10 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers.js · Repo onnx-community/ijepa_vith16_1k