ONNX Model Zoo

edertef/french-bge-m3

By edertef · ↓ 2 · ♥ 0 · Updated 2024-12-03

What's in this repo

This page lists the files in edertef/french-bge-m3, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 15 files, including 11 .json, 1 .md, 1 .safetensors, 1 .onnx
  • Last updated 2024-12-03

ONNX files

File Size Download
onnx/model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README


pipeline_tag: sentence-similarity language: fr license: mit tags:

  • passage-retrieval
  • sentence-similarity
  • pruned library_name: sentence-transformers base_model: BAAI/bge-m3 base_model_relation: quantized

🇫🇷 french-bge-m3

This model is a 36.9% smaller version of BAAI/bge-m3 for the French language, created using the mtem-pruner space.

This pruned model should perform similarly to the original model for French language tasks with a much smaller memory footprint. However, it may not perform well for other languages present in the original multilingual model as tokens not commonly used in French were removed from the original multilingual model's vocabulary.

Usage

You can use this model with the Transformers library:

from transformers import AutoModel, AutoTokenizer

model_name = "edertef/french-bge-m3"
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, use_fast=True)

Or with the sentence-transformers library:

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("edertef/french-bge-m3")

Credits: cc @antoinelouis

Model info

sentence-similarity sentence-transformers
sentence-transformers onnx safetensors xlm-roberta passage-retrieval sentence-similarity pruned fr base_model:BAAI/bge-m3 base_model:quantized:BAAI/bge-m3 license:mit text-embeddings-inference
↓ 2 ♥ 0

Created: 2024-12-03

Updated: 2024-12-03

View on Hugging Face

Files (15)

.gitattributes
1_Pooling/config.json
README.md
config.json
model.safetensors
modules.json
onnx/config.json
onnx/model.onnx ONNX
onnx/special_tokens_map.json
onnx/tokenizer.json
onnx/tokenizer_config.json
sentence_bert_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json

Related models