Feature Extraction
Transformers.js
ONNX
Transformers
OpenVINO
modernbert
granite
embeddings
multilingual
mteb
sentence-similarity
matryoshka
text-embeddings-inference
Instructions to use onnx-community/granite-embedding-311m-multilingual-r2-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/granite-embedding-311m-multilingual-r2-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'onnx-community/granite-embedding-311m-multilingual-r2-ONNX'); - Transformers
How to use onnx-community/granite-embedding-311m-multilingual-r2-ONNX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="onnx-community/granite-embedding-311m-multilingual-r2-ONNX")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("onnx-community/granite-embedding-311m-multilingual-r2-ONNX") model = AutoModel.from_pretrained("onnx-community/granite-embedding-311m-multilingual-r2-ONNX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
8f039f2 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:0087c868b33bad550a78a08d19798cfd7f713cde4f020803b8f51f405503e15f
size 33384821
|