Dmitriy007
commited on
Commit
·
9dbc476
1
Parent(s):
e24971d
Upload README.md
Browse files
README.md
CHANGED
@@ -25,6 +25,7 @@ RuGPT2_Gen_Comments — это модель преобразователей, п
|
|
25 |
|
26 |
### Проимер использования
|
27 |
|
|
|
28 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
29 |
|
30 |
tokenizer = AutoTokenizer.from_pretrained("Dmitriy007/rugpt2_gen_comments")
|
@@ -54,4 +55,4 @@ early_stopping=True
|
|
54 |
|
55 |
generated_text = list(map(tokenizer.decode, output))
|
56 |
print(generated_text[0])
|
57 |
-
|
|
|
25 |
|
26 |
### Проимер использования
|
27 |
|
28 |
+
```python
|
29 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
30 |
|
31 |
tokenizer = AutoTokenizer.from_pretrained("Dmitriy007/rugpt2_gen_comments")
|
|
|
55 |
|
56 |
generated_text = list(map(tokenizer.decode, output))
|
57 |
print(generated_text[0])
|
58 |
+
```
|