Instructions to use Roxas13/e5-small-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Roxas13/e5-small-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir e5-small-mlx Roxas13/e5-small-mlx
- sentence-transformers
How to use Roxas13/e5-small-mlx with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Roxas13/e5-small-mlx") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
library_name: mlx
|
| 4 |
+
pipeline_tag: sentence-similarity
|
| 5 |
+
base_model: intfloat/multilingual-e5-small
|
| 6 |
+
base_model_relation: quantized
|
| 7 |
+
tags:
|
| 8 |
+
- mlx
|
| 9 |
+
- e5
|
| 10 |
+
- sentence-transformers
|
| 11 |
+
- embeddings
|
| 12 |
---
|
| 13 |
+
|
| 14 |
+
# AEGIS multilingual-e5-small (FP16, MLX)
|
| 15 |
+
|
| 16 |
+
FP16, MLX-format build of `intfloat/multilingual-e5-small`, used on-device by the
|
| 17 |
+
AEGIS app for RAG memory retrieval (384-dim sentence embeddings). This is a
|
| 18 |
+
**format conversion** of the original (PyTorch → MLX, FP16) — no fine-tuning and
|
| 19 |
+
no architecture change.
|
| 20 |
+
|
| 21 |
+
## License & attribution
|
| 22 |
+
|
| 23 |
+
This repository redistributes a derivative of
|
| 24 |
+
**[`intfloat/multilingual-e5-small`](https://huggingface.co/intfloat/multilingual-e5-small)**,
|
| 25 |
+
which is released under the **MIT License**. The original copyright and MIT
|
| 26 |
+
license terms are retained and passed along to all recipients.
|
| 27 |
+
|
| 28 |
+
- Source model: https://huggingface.co/intfloat/multilingual-e5-small
|
| 29 |
+
- License: MIT
|
| 30 |
+
|
| 31 |
+
Modifications relative to the base model: weights converted to MLX format at
|
| 32 |
+
FP16 precision. Output is 384-dim with mean pooling + L2 normalization. No
|
| 33 |
+
weights were fine-tuned.
|
| 34 |
+
|
| 35 |
+
## Usage notes
|
| 36 |
+
|
| 37 |
+
E5 requires input prefixes for good retrieval accuracy:
|
| 38 |
+
`query: ` for search queries and `passage: ` for stored documents.
|