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