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)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("modularStarEncoder/ModularStarEncoder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files34 unmodified lines3536373839404134 unmodified lines#import the modelmodel = AutoModel.from_pretrained("andreagurioli1995/ModularStarEncoder", trust_remote_code=True)#import the tokenizertokenizer = AutoTokenizer.from_pretrained("andreagurioli1995/ModularStarEncoder")34 unmodified lines3536373839404134 unmodified lines#import the modelmodel = AutoModel.from_pretrained("andreagurioli1995/ModularStarEncoder", trust_remote_code=True)#import the tokenizer, the tokenizer applies LEFT padding!tokenizer = AutoTokenizer.from_pretrained("andreagurioli1995/ModularStarEncoder")
README.md+1-1