ArtifactAI
commited on
Commit
·
23da74e
1
Parent(s):
9bed08f
Update README.md
Browse files
README.md
CHANGED
@@ -28,8 +28,6 @@ Find below some example scripts on how to use the model in `transformers`:
|
|
28 |
|
29 |
### Running the model on a CPU
|
30 |
|
31 |
-
<details>
|
32 |
-
<summary> Click to expand </summary>
|
33 |
|
34 |
```python
|
35 |
|
@@ -45,12 +43,9 @@ outputs = model.generate(input_ids)
|
|
45 |
print(tokenizer.decode(outputs[0]))
|
46 |
```
|
47 |
|
48 |
-
</details>
|
49 |
|
50 |
### Running the model on a GPU
|
51 |
|
52 |
-
<details>
|
53 |
-
<summary> Click to expand </summary>
|
54 |
|
55 |
```python
|
56 |
# pip install accelerate
|
@@ -66,14 +61,11 @@ outputs = model.generate(input_ids)
|
|
66 |
print(tokenizer.decode(outputs[0]))
|
67 |
```
|
68 |
|
69 |
-
</details>
|
70 |
|
71 |
### Running the model in an HF pipeline
|
72 |
|
73 |
#### FP16
|
74 |
|
75 |
-
<details>
|
76 |
-
<summary> Click to expand </summary>
|
77 |
|
78 |
```python
|
79 |
# load model and tokenizer from huggingface hub with pipeline
|
@@ -88,8 +80,6 @@ print(f"{res[0]['summary_text']}")
|
|
88 |
|
89 |
```
|
90 |
|
91 |
-
</details>
|
92 |
-
|
93 |
|
94 |
# Training Details
|
95 |
|
|
|
28 |
|
29 |
### Running the model on a CPU
|
30 |
|
|
|
|
|
31 |
|
32 |
```python
|
33 |
|
|
|
43 |
print(tokenizer.decode(outputs[0]))
|
44 |
```
|
45 |
|
|
|
46 |
|
47 |
### Running the model on a GPU
|
48 |
|
|
|
|
|
49 |
|
50 |
```python
|
51 |
# pip install accelerate
|
|
|
61 |
print(tokenizer.decode(outputs[0]))
|
62 |
```
|
63 |
|
|
|
64 |
|
65 |
### Running the model in an HF pipeline
|
66 |
|
67 |
#### FP16
|
68 |
|
|
|
|
|
69 |
|
70 |
```python
|
71 |
# load model and tokenizer from huggingface hub with pipeline
|
|
|
80 |
|
81 |
```
|
82 |
|
|
|
|
|
83 |
|
84 |
# Training Details
|
85 |
|