Instructions to use ai-forever/FRIDA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ai-forever/FRIDA with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ai-forever/FRIDA") 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] - Transformers
How to use ai-forever/FRIDA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ai-forever/FRIDA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ai-forever/FRIDA") model = AutoModel.from_pretrained("ai-forever/FRIDA", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
---
|
| 3 |
# Model Card for FRIDA
|
|
@@ -118,6 +124,13 @@ document_embedding = model.encode("Чтобы вкрутить лампочку,
|
|
| 118 |
print(query_embedding @ document_embedding.T) # 0.7761018872261047
|
| 119 |
```
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
## Citation
|
| 122 |
|
| 123 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- ru
|
| 5 |
+
- en
|
| 6 |
+
---
|
| 7 |
|
| 8 |
---
|
| 9 |
# Model Card for FRIDA
|
|
|
|
| 124 |
print(query_embedding @ document_embedding.T) # 0.7761018872261047
|
| 125 |
```
|
| 126 |
|
| 127 |
+
+ # Authors
|
| 128 |
+
+ [SaluteDevices](https://sberdevices.ru/) AI for B2C RnD Team.
|
| 129 |
+
+ Artem Snegirev: [HF profile](https://huggingface.co/artemsnegirev);
|
| 130 |
+
+ Ana Maksimova;
|
| 131 |
+
+ Aleksandr Abramov: [HF profile](https://huggingface.co/Andrilko), [Github](https://github.com/Ab1992ao), [Kaggle Competitions Master](https://www.kaggle.com/andrilko)
|
| 132 |
+
|
| 133 |
+
|
| 134 |
## Citation
|
| 135 |
|
| 136 |
```
|