Saltar al contenido
ModelPublicadoExterno
Descargar

Ijepa Vith14 22k

with ONNX weights to be compatible with Transformers.js.

TipoOtherModelo basejmtzt/ijepa_vith14_22kVersiónRevision 56f570b

Fuente del modelo

Tipo
Other
Tamaño del archivo
584 KB–1,18 GB
Modelo base
jmtzt/ijepa_vith14_22k
Versión
vRevision 56f570b
Actualizado
28 sept 2026
Descargas
13
Fuente
Hugging Face

Descripción de la fuente

https://huggingface.co/jmtzt/ijepa_vith14_22k 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_22k.

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

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

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).

Fuentes

1 fuente
Hugging FacePrincipalVersión 56f570bba8de230bc03603f6afd2c6f328d7a2ce
huggingface.co/onnx-community/ijepa_vith14_22k/tree/56f570bba8de230bc03603f6afd2c6f328d7a2ce

Verificado 28 sept

Artefactos del modelo

8 artefactos

onnx/model_bnb4.onnx

onnx · 344 MB · SHA-256 35454d3a2414…e7fd · Hugging Face

Descargar

onnx/model_fp16.onnx

onnx · 1,18 GB · SHA-256 e785af7564fb…a341 · Hugging Face

Descargar

onnx/model_int8.onnx

onnx · 607 MB · SHA-256 e4ea272227c5…d24f · Hugging Face

Descargar

onnx/model_q4.onnx

onnx · 382 MB · SHA-256 619eb24dbb04…e470 · Hugging Face

Descargar

onnx/model_q4f16.onnx

onnx · 341 MB · SHA-256 188bf4c23ea3…79c3 · Hugging Face

Descargar

onnx/model_quantized.onnx

onnx · 607 MB · SHA-256 169254208e35…b5cc · Hugging Face

Descargar

onnx/model_uint8.onnx

onnx · 607 MB · SHA-256 169254208e35…b5cc · Hugging Face

Descargar

onnx/model.onnx

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

Descargar

Extractos de fuentes

2 extractos

--- library_name: transformers.js base_model: jmtzt/ijepa_vith14_22k --- https://huggingface.co/jmtzt/ijepa_vith14_22k 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_22k`. ```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_22k", { 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.51260121830826 ``` --- 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: 13 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers.js · Repo onnx-community/ijepa_vith14_22k