zpn commited on
Commit
339ed7f
1 Parent(s): 5e8b3c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -0
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