Update README.md
Browse files
README.md
CHANGED
|
@@ -4,9 +4,9 @@ language:
|
|
| 4 |
license: apache-2.0
|
| 5 |
---
|
| 6 |
|
| 7 |
-
# Luxical
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
## Quickstart
|
| 12 |
|
|
@@ -23,14 +23,8 @@ pip install luxical
|
|
| 23 |
To load and use the model in `transformers`:
|
| 24 |
``` python
|
| 25 |
from transformers import AutoModel
|
| 26 |
-
from pathlib import Path
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
trust_remote_code=True,
|
| 32 |
-
)
|
| 33 |
-
|
| 34 |
-
# Embed some text.
|
| 35 |
-
emb = local_model(["Luxical integrates with Huggingface."]).embeddings
|
| 36 |
```
|
|
|
|
| 4 |
license: apache-2.0
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# Luxical-One
|
| 8 |
|
| 9 |
+
Luxical-One is a small lexical-dense text embedding model distilled from [`Snowflake/snowflake-arctic-embed-m-v2.0`](https://huggingface.co/Snowflake/snowflake-arctic-embed-m-v2.0). It is optimized for high-throughput embedding without GPU acceleration, and it is trained for English-language symmetrical full-document text similarity and classification applications.
|
| 10 |
|
| 11 |
## Quickstart
|
| 12 |
|
|
|
|
| 23 |
To load and use the model in `transformers`:
|
| 24 |
``` python
|
| 25 |
from transformers import AutoModel
|
|
|
|
| 26 |
|
| 27 |
+
example_text = "Luxical integrates with Huggingface."
|
| 28 |
+
luxical_one = AutoModel.from_pretrained("datologyai/luxical-one", trust_remote_code=True)
|
| 29 |
+
embeddings = luxical_one([example_text]).embeddings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
```
|