Update README.md
Browse files
README.md
CHANGED
@@ -2669,7 +2669,7 @@ def mean_pooling(model_output, attention_mask):
|
|
2669 |
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
|
2673 |
|
2674 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
2675 |
|
|
|
2669 |
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 |
|