Feature Extraction
Transformers
Safetensors
sentence-transformers
ONNX
English
bert
embeddings
text-embeddings
semantic-search
information-retrieval
int8
minilm
e5
text-embeddings-inference
Instructions to use GrowBitLabs/tinye5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GrowBitLabs/tinye5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="GrowBitLabs/tinye5")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("GrowBitLabs/tinye5") model = AutoModel.from_pretrained("GrowBitLabs/tinye5", device_map="auto") - sentence-transformers
How to use GrowBitLabs/tinye5 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("GrowBitLabs/tinye5") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -69,7 +69,6 @@ where model size, CPU latency, and deployment efficiency matter.
|
|
| 69 |
| **TinyE5-L6-384 (Safetensors)** | 86.7 MB | 0.8138 | 0.7342 | 0.5897 |
|
| 70 |
| **TinyE5-L6-384 (FP32 ONNX)** | 86.2 MB | 0.8138 | 0.7342 | 0.5897 |
|
| 71 |
| **TinyE5-L6-384 (INT8 ONNX)** | **21.8 MB** | 0.8058 | 0.7599 | 0.6020 |
|
| 72 |
-
| all-MiniLM-L6-v2 | — | **0.8194** | **0.7923** | **0.6494** |
|
| 73 |
|
| 74 |
### CPU Inference Performance
|
| 75 |
|
|
@@ -97,7 +96,6 @@ where model size, CPU latency, and deployment efficiency matter.
|
|
| 97 |
| **TinyE5-L6-384 (Safetensors)** | 0.72s | 3.71s |
|
| 98 |
| TinyE5-L6-384 (FP32 ONNX) | 8.82s | 265.58s |
|
| 99 |
| TinyE5-L6-384 (INT8 ONNX) | 5.46s | 179.11s |
|
| 100 |
-
| **all-MiniLM-L6-v2** | **0.62s** | **3.62s** |
|
| 101 |
|
| 102 |
> **Summary:** INT8 quantization reduces TinyE5-L6-384 from **86.2 MB to 21.8 MB (~74.7% smaller)**, lowers CPU inference latency from **2.35 ms/text to 0.77 ms/text (~67.2% lower)**, and increases CPU throughput from **424.7 to 1299.4 texts/s (~3.06× throughput)**. Session RAM also drops from **90.4 MB to 11.2 MB (~87.6% lower)**. STS Spearman decreases slightly from **0.8138 to 0.8058**, while SciFact Recall@10 improves from **0.7342 to 0.7599** and nDCG@10 improves from **0.5897 to 0.6020**. The all-MiniLM-L6-v2 baseline still achieves the highest overall quality, with **0.8194 STS Spearman, 0.7923 Recall@10, and 0.6494 nDCG@10**.
|
| 103 |
|
|
|
|
| 69 |
| **TinyE5-L6-384 (Safetensors)** | 86.7 MB | 0.8138 | 0.7342 | 0.5897 |
|
| 70 |
| **TinyE5-L6-384 (FP32 ONNX)** | 86.2 MB | 0.8138 | 0.7342 | 0.5897 |
|
| 71 |
| **TinyE5-L6-384 (INT8 ONNX)** | **21.8 MB** | 0.8058 | 0.7599 | 0.6020 |
|
|
|
|
| 72 |
|
| 73 |
### CPU Inference Performance
|
| 74 |
|
|
|
|
| 96 |
| **TinyE5-L6-384 (Safetensors)** | 0.72s | 3.71s |
|
| 97 |
| TinyE5-L6-384 (FP32 ONNX) | 8.82s | 265.58s |
|
| 98 |
| TinyE5-L6-384 (INT8 ONNX) | 5.46s | 179.11s |
|
|
|
|
| 99 |
|
| 100 |
> **Summary:** INT8 quantization reduces TinyE5-L6-384 from **86.2 MB to 21.8 MB (~74.7% smaller)**, lowers CPU inference latency from **2.35 ms/text to 0.77 ms/text (~67.2% lower)**, and increases CPU throughput from **424.7 to 1299.4 texts/s (~3.06× throughput)**. Session RAM also drops from **90.4 MB to 11.2 MB (~87.6% lower)**. STS Spearman decreases slightly from **0.8138 to 0.8058**, while SciFact Recall@10 improves from **0.7342 to 0.7599** and nDCG@10 improves from **0.5897 to 0.6020**. The all-MiniLM-L6-v2 baseline still achieves the highest overall quality, with **0.8194 STS Spearman, 0.7923 Recall@10, and 0.6494 nDCG@10**.
|
| 101 |
|