Update installation
Browse files
README.md
CHANGED
@@ -20,6 +20,12 @@ pipeline_tag: text-generation
|
|
20 |
| Average | 61.33 | <b>63.88</b> |
|
21 |
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
## Basic Usage
|
24 |
``` Python
|
25 |
#Load model
|
@@ -51,7 +57,4 @@ def generate(prompt, max_length=1024):
|
|
51 |
|
52 |
#Generate
|
53 |
print(generate('If A+B=C and B=C, what would be the value of A?'))
|
54 |
-
|
55 |
-
```
|
56 |
-
## Installation
|
57 |
-
> As the time of writing Phi-2 is only supported has been integrated in the development version (4.37.0.dev) of transformers. Until the official version is released through pip, ensure that you update your local transformers to the development version: pip uninstall -y transformers && pip install git+https://github.com/huggingface/transformers.
|
|
|
20 |
| Average | 61.33 | <b>63.88</b> |
|
21 |
|
22 |
|
23 |
+
## Installation
|
24 |
+
Make sure you have the latest version of the transformers library:
|
25 |
+
```
|
26 |
+
pip install pip --upgrade && pip install transformers --upgrade
|
27 |
+
```
|
28 |
+
|
29 |
## Basic Usage
|
30 |
``` Python
|
31 |
#Load model
|
|
|
57 |
|
58 |
#Generate
|
59 |
print(generate('If A+B=C and B=C, what would be the value of A?'))
|
60 |
+
```
|
|
|
|
|
|