Update README.md
Browse files
README.md
CHANGED
@@ -2675,6 +2675,7 @@ sentences = ['What is TSNE?', 'Who is Laurens van der Maaten?']
|
|
2675 |
|
2676 |
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased')
|
2677 |
model = AutoModel.from_pretrained('nomic-ai/nomic-embed-text-v1-unsupervised', trust_remote_code=True)
|
|
|
2678 |
|
2679 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
2680 |
|
|
|
2675 |
|
2676 |
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased')
|
2677 |
model = AutoModel.from_pretrained('nomic-ai/nomic-embed-text-v1-unsupervised', trust_remote_code=True)
|
2678 |
+
model.eval()
|
2679 |
|
2680 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
2681 |
|