Delete README.md
Browse files
README.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
base_model: ibm-granite/granite-embedding-107m-multilingual
|
| 4 |
-
tags:
|
| 5 |
-
- sentence-transformers
|
| 6 |
-
- feature-extraction
|
| 7 |
-
- sentence-similarity
|
| 8 |
-
- transformers
|
| 9 |
-
- granite
|
| 10 |
-
- embeddings
|
| 11 |
-
- multilingual
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
# Granite Embedding 107M Multilingual
|
| 15 |
-
|
| 16 |
-
This is a copy of the [ibm-granite/granite-embedding-107m-multilingual](https://huggingface.co/ibm-granite/granite-embedding-107m-multilingual) model for document encoding purposes.
|
| 17 |
-
|
| 18 |
-
## Model Summary
|
| 19 |
-
Granite-Embedding-107M-Multilingual is a 107M parameter dense biencoder embedding model from the Granite Embeddings suite that can be used to generate high quality text embeddings. This model produces embedding vectors of size 384.
|
| 20 |
-
|
| 21 |
-
## Supported Languages
|
| 22 |
-
English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese.
|
| 23 |
-
|
| 24 |
-
## Usage
|
| 25 |
-
|
| 26 |
-
### With Sentence Transformers
|
| 27 |
-
```python
|
| 28 |
-
from sentence_transformers import SentenceTransformer
|
| 29 |
-
|
| 30 |
-
model = SentenceTransformer('RikoteMaster/MNLP_M3_document_encoder')
|
| 31 |
-
embeddings = model.encode(['Your text here'])
|
| 32 |
-
```
|
| 33 |
-
|
| 34 |
-
### With Transformers
|
| 35 |
-
```python
|
| 36 |
-
from transformers import AutoModel, AutoTokenizer
|
| 37 |
-
import torch
|
| 38 |
-
|
| 39 |
-
model = AutoModel.from_pretrained('RikoteMaster/MNLP_M3_document_encoder')
|
| 40 |
-
tokenizer = AutoTokenizer.from_pretrained('RikoteMaster/MNLP_M3_document_encoder')
|
| 41 |
-
|
| 42 |
-
inputs = tokenizer(['Your text here'], return_tensors='pt', padding=True, truncation=True)
|
| 43 |
-
with torch.no_grad():
|
| 44 |
-
outputs = model(**inputs)
|
| 45 |
-
embeddings = outputs.last_hidden_state[:, 0] # CLS pooling
|
| 46 |
-
```
|
| 47 |
-
|
| 48 |
-
## Original Model
|
| 49 |
-
This model is based on [ibm-granite/granite-embedding-107m-multilingual](https://huggingface.co/ibm-granite/granite-embedding-107m-multilingual) by IBM.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|