update
Browse files
architectures/codeparrot.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
| GPT2 | 110M |
|
| 6 |
| GPT2 | 1.5B |
|
| 7 |
|
| 8 |
-
You can load the model and tokenizer directly from
|
| 9 |
|
| 10 |
```python
|
| 11 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
|
@@ -18,7 +18,7 @@ outputs = model(**inputs)
|
|
| 18 |
|
| 19 |
```
|
| 20 |
|
| 21 |
-
Or you can use a pipeline
|
| 22 |
|
| 23 |
```python
|
| 24 |
from transformers import pipeline
|
|
|
|
| 5 |
| GPT2 | 110M |
|
| 6 |
| GPT2 | 1.5B |
|
| 7 |
|
| 8 |
+
You can load the model and tokenizer directly from `transformers`:
|
| 9 |
|
| 10 |
```python
|
| 11 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
|
|
|
| 18 |
|
| 19 |
```
|
| 20 |
|
| 21 |
+
Or you can use a `pipeline`:
|
| 22 |
|
| 23 |
```python
|
| 24 |
from transformers import pipeline
|