Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,27 @@ language:
|
|
4 |
- fa
|
5 |
---
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
```python
|
9 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
10 |
|
@@ -16,4 +36,6 @@ input_ids = tokenizer(input_text, return_tensors="pt")
|
|
16 |
|
17 |
outputs = model.generate(**input_ids)
|
18 |
print(tokenizer.decode(outputs[0]))
|
19 |
-
```
|
|
|
|
|
|
4 |
- fa
|
5 |
---
|
6 |
|
7 |
+
![](https://tech-writing-tools.s3.us-west-2.amazonaws.com/fd7b7fe1-2565-4845-eb66-3b0ca9587c99.png)
|
8 |
+
|
9 |
+
## [Model description](#model-description) | [Example output](#example-output) | [Banchmark results](#banchmark-results) | [How to use](#how-to-use) | [Training and finetuning](#training-and-finetuning) |
|
10 |
+
|
11 |
+
----
|
12 |
+
# Model description
|
13 |
+
----
|
14 |
+
# Example output:
|
15 |
+
|
16 |
+
**Example 1:**
|
17 |
+
- Input: "سلام، خوبی؟"
|
18 |
+
- Output: "سلام، خوشحالم که با شما صحبت می کنم. چطور می توانم به شما کمک کنم؟"
|
19 |
+
|
20 |
+
**Example 2:**
|
21 |
+
- Input: "سلام، خوبی؟"
|
22 |
+
- Output: "سلام، خوشحالم که با شما صحبت می کنم. چطور می توانم به شما کمک کنم؟"
|
23 |
+
----
|
24 |
+
# Banchmark results
|
25 |
+
----
|
26 |
+
# How to use
|
27 |
+
|
28 |
```python
|
29 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
30 |
|
|
|
36 |
|
37 |
outputs = model.generate(**input_ids)
|
38 |
print(tokenizer.decode(outputs[0]))
|
39 |
+
```
|
40 |
+
----
|
41 |
+
# Training and finetuning
|