Instructions to use modularStarEncoder/ModularStarEncoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modularStarEncoder/ModularStarEncoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="modularStarEncoder/ModularStarEncoder", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("modularStarEncoder/ModularStarEncoder", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,7 +35,7 @@ from transformers import AutoTokenizer
|
|
| 35 |
#import the model
|
| 36 |
model = AutoModel.from_pretrained("andreagurioli1995/ModularStarEncoder", trust_remote_code=True)
|
| 37 |
|
| 38 |
-
#import the tokenizer
|
| 39 |
tokenizer = AutoTokenizer.from_pretrained("andreagurioli1995/ModularStarEncoder")
|
| 40 |
|
| 41 |
|
|
|
|
| 35 |
#import the model
|
| 36 |
model = AutoModel.from_pretrained("andreagurioli1995/ModularStarEncoder", trust_remote_code=True)
|
| 37 |
|
| 38 |
+
#import the tokenizer, the tokenizer applies LEFT padding!
|
| 39 |
tokenizer = AutoTokenizer.from_pretrained("andreagurioli1995/ModularStarEncoder")
|
| 40 |
|
| 41 |
|