zpn commited on
Commit
048345c
1 Parent(s): 24e49ac

Update README.md

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