Skip to content
ModelListedExternal
Download

Ijepa Vith14 1k

with ONNX weights to be compatible with Transformers.js.

KindOtherBase modeljmtzt/ijepa_vith14_1kVersionRevision 2d1d0e3

Model source

Kind
Other
File size
584 KB–1.18 GB
Base model
jmtzt/ijepa_vith14_1k
Version
vRevision 2d1d0e3
Updated
Sep 16, 2026
Downloads
23
Source
Hugging Face

Source description

https://huggingface.co/jmtzt/ijepa_vith14_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_vith14_1k.

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

// Create an image feature extraction pipeline
const extractor = await pipeline(
  "image-feature-extraction",
  "onnx-community/ijepa_vith14_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.5168613045518973

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 2d1d0e31b73cd7b8aa93d6d2cb30fb65a8cd1de6
huggingface.co/onnx-community/ijepa_vith14_1k/tree/2d1d0e31b73cd7b8aa93d6d2cb30fb65a8cd1de6

Verified Sep 16

Model artifacts

8 artifacts

onnx/model_bnb4.onnx

onnx · 344 MB · SHA-256 c093bf804bd6…7395 · Hugging Face

Download

onnx/model_fp16.onnx

onnx · 1.18 GB · SHA-256 9259557af202…0631 · Hugging Face

Download

onnx/model_int8.onnx

onnx · 607 MB · SHA-256 4156661b699c…f709 · Hugging Face

Download

onnx/model_q4.onnx

onnx · 382 MB · SHA-256 055fded2eae2…dcec · Hugging Face

Download

onnx/model_q4f16.onnx

onnx · 341 MB · SHA-256 f69d54c534c4…c3fd · Hugging Face

Download

onnx/model_quantized.onnx

onnx · 607 MB · SHA-256 12fc5b29c036…0a09 · Hugging Face

Download

onnx/model_uint8.onnx

onnx · 607 MB · SHA-256 12fc5b29c036…0a09 · Hugging Face

Download

onnx/model.onnx

onnx · 584 KB · SHA-256 10b70b2151a5…bfb8 · Hugging Face

Download

Source excerpts

2 excerpts

--- library_name: transformers.js base_model: jmtzt/ijepa_vith14_1k --- https://huggingface.co/jmtzt/ijepa_vith14_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_vith14_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_vith14_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.5168613045518973 ``` --- 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: 23 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers.js · Repo onnx-community/ijepa_vith14_1k