Instructions to use Lutech-AI/I-SPIn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lutech-AI/I-SPIn with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import ISPIn model = ISPIn.from_pretrained("Lutech-AI/I-SPIn", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
e6c8334
1
Parent(s): af1af25
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ If you installed the package correctly, you can retrieve embeddings in the follo
|
|
| 24 |
from ispin.ISPIn import ISPIn
|
| 25 |
model = ISPIn.from_pretrained('Lutech-AI/I-SPIn')
|
| 26 |
sentences = ['Questa è una frase di prova', 'Testando il funzionamento del modello']
|
| 27 |
-
|
| 28 |
print(sentence_embeddings)
|
| 29 |
```
|
| 30 |
|
|
|
|
| 24 |
from ispin.ISPIn import ISPIn
|
| 25 |
model = ISPIn.from_pretrained('Lutech-AI/I-SPIn')
|
| 26 |
sentences = ['Questa è una frase di prova', 'Testando il funzionamento del modello']
|
| 27 |
+
sentence_embeddings = model(sentences)
|
| 28 |
print(sentence_embeddings)
|
| 29 |
```
|
| 30 |
|