Update README.md
Browse files
README.md
CHANGED
@@ -3,11 +3,16 @@ license: apache-2.0
|
|
3 |
language:
|
4 |
- fa
|
5 |
---
|
6 |
-
<code>
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
import torch
|
13 |
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
|
@@ -43,4 +48,4 @@ def response_generate(input_prompt):
|
|
43 |
return response
|
44 |
|
45 |
print(response_generate(f"{SYS_PROMPT}"))
|
46 |
-
|
|
|
3 |
language:
|
4 |
- fa
|
5 |
---
|
|
|
6 |
|
7 |
+
### Installing Libraries
|
8 |
+
Make sure these libraries are installed correctly.
|
9 |
+
* ```pip install -q sentencepiece ```
|
10 |
+
* ```pip install -q transformers ```
|
11 |
+
* ```pip install -q accelerate ```
|
12 |
+
* ```pip install --upgrade -q bitsandbytes ```
|
13 |
+
|
14 |
+
|
15 |
+
```python
|
16 |
|
17 |
import torch
|
18 |
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
|
|
|
48 |
return response
|
49 |
|
50 |
print(response_generate(f"{SYS_PROMPT}"))
|
51 |
+
```
|