Feature Extraction
Transformers
ONNX
English
bert
sparse sparsity quantized onnx embeddings int8
mteb
Eval Results (legacy)
Run this model with HF Jobs
Run zeroshot/gte-large-quant on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/zeroshot/gte-large-quant. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zeroshot/gte-large-quant on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use zeroshot/gte-large-quant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zeroshot/gte-large-quant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="zeroshot/gte-large-quant")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("zeroshot/gte-large-quant") model = AutoModel.from_pretrained("zeroshot/gte-large-quant", device_map="auto") - Notebooks
- Google Colab
- Kaggle
gte-large-quant
This is the quantized (INT8) ONNX variant of the gte-large embeddings model created with DeepSparse Optimum for ONNX export/inference and Neural Magic's Sparsify for one-shot quantization.
Current list of sparse and quantized gte ONNX models:
| Links | Sparsification Method |
|---|---|
| zeroshot/gte-large-sparse | Quantization (INT8) & 50% Pruning |
| zeroshot/gte-large-quant | Quantization (INT8) |
| zeroshot/gte-base-sparse | Quantization (INT8) & 50% Pruning |
| zeroshot/gte-base-quant | Quantization (INT8) |
| zeroshot/gte-small-sparse | Quantization (INT8) & 50% Pruning |
| zeroshot/gte-small-quant | Quantization (INT8) |
pip install -U deepsparse-nightly[sentence_transformers]
from deepsparse.sentence_transformers import SentenceTransformer
model = SentenceTransformer('zeroshot/gte-large-quant', export=False)
# Our sentences we like to encode
sentences = ['This framework generates embeddings for each input sentence',
'Sentences are passed as a list of string.',
'The quick brown fox jumps over the lazy dog.']
# Sentences are encoded by calling model.encode()
embeddings = model.encode(sentences)
# Print the embeddings
for sentence, embedding in zip(sentences, embeddings):
print("Sentence:", sentence)
print("Embedding:", embedding.shape)
print("")
For further details regarding DeepSparse & Sentence Transformers integration, refer to the DeepSparse README.
For general questions on these models and sparsification methods, reach out to the engineering team on our community Slack.
- Downloads last month
- 45
Evaluation results
- cos_sim_pearson on MTEB BIOSSEStest set self-reported90.273
- cos_sim_spearman on MTEB BIOSSEStest set self-reported87.978
- euclidean_pearson on MTEB BIOSSEStest set self-reported88.428
- euclidean_spearman on MTEB BIOSSEStest set self-reported87.972
- manhattan_pearson on MTEB BIOSSEStest set self-reported88.138
- manhattan_spearman on MTEB BIOSSEStest set self-reported87.434
- cos_sim_pearson on MTEB SICK-Rtest set self-reported85.142
- cos_sim_spearman on MTEB SICK-Rtest set self-reported79.134
