Update README.md
Browse files
README.md
CHANGED
@@ -10,13 +10,11 @@ pipeline_tag: text-generation
|
|
10 |
|
11 |
- **Developed by:** Mahmoud Ibrahim
|
12 |
|
13 |
-
|
14 |
-
|
15 |
|
16 |
``` bush
|
17 |
-
|
18 |
! pip install transformers bitsandbytes
|
19 |
-
|
20 |
```
|
21 |
|
22 |
```python
|
@@ -58,7 +56,7 @@ output = model.generate(
|
|
58 |
top_k=50, # Filter to top-k tokens
|
59 |
top_p=0.9, # Use nucleus sampling
|
60 |
temperature=0.7 , # Control creativity level
|
61 |
-
|
62 |
)
|
63 |
|
64 |
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|
|
|
10 |
|
11 |
- **Developed by:** Mahmoud Ibrahim
|
12 |
|
13 |
+
-
|
14 |
+
**How to use :**
|
15 |
|
16 |
``` bush
|
|
|
17 |
! pip install transformers bitsandbytes
|
|
|
18 |
```
|
19 |
|
20 |
```python
|
|
|
56 |
top_k=50, # Filter to top-k tokens
|
57 |
top_p=0.9, # Use nucleus sampling
|
58 |
temperature=0.7 , # Control creativity level
|
59 |
+
|
60 |
)
|
61 |
|
62 |
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
|