sberbank-ai
commited on
Commit
·
b24d25b
1
Parent(s):
c9b97c0
Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,7 @@ def mean_pooling(model_output, attention_mask):
|
|
27 |
sentences = ['Привет! Как твои дела?',
|
28 |
'А правда, что 42 твое любимое число?']
|
29 |
#Load AutoModel from huggingface model repository
|
30 |
-
tokenizer = AutoTokenizer.from_pretrained("sberbank-ai/
|
31 |
model = AutoModel.from_pretrained("sberbank-ai/ruElectra-small")
|
32 |
#Tokenize sentences
|
33 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, max_length=24, return_tensors='pt')
|
|
|
27 |
sentences = ['Привет! Как твои дела?',
|
28 |
'А правда, что 42 твое любимое число?']
|
29 |
#Load AutoModel from huggingface model repository
|
30 |
+
tokenizer = AutoTokenizer.from_pretrained("sberbank-ai/ruElectra-small")
|
31 |
model = AutoModel.from_pretrained("sberbank-ai/ruElectra-small")
|
32 |
#Tokenize sentences
|
33 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, max_length=24, return_tensors='pt')
|