File size: 360 Bytes
a48e945
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_name = "intfloat/e5-mistral-7b-instruct"  # Use the correct identifier for your model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)

# Now, you can use the 'tokenizer' and 'model' for your NLP tasks