Edit model card

Usage using Transformer.js for feature extraction

import { env, pipeline } from "@xenova/transformers";

env.allowLocalModels = false;

const extractor = await pipeline(
  "feature-extraction",
  "Fuzail22/onnx-msmarco-distilbert-cos-v5",
  {
    quantized: false
  }
);

const extract = async (text: string) => {
    const output = await extractor(text, {
      pooling: "mean",
      normalize: true
    });
    console.log("extraction output:", output);
};

extact("Open Source is great!")

This is Onnx converted version of the original model The Input Sequence length is 512

Converted Using Xenova

Link to original Model sentence-transformers/msmarco-distilbert-cos-v5

Downloads last month
18
Inference API
Unable to determine this model's library. Check the docs .

Model tree for Fuzail22/onnx-msmarco-distilbert-cos-v5

Quantized
(1)
this model