Update README.md
#6
by
japoneris
- opened
README.md
CHANGED
|
@@ -21,8 +21,10 @@ Furthermore, it is instruction-tuned to align with natural language instructions
|
|
| 21 |
This model can be easily loaded using the `AutoModelForSeq2SeqLM` functionality and employs the same tokenizer as [CodeGen](https://github.com/salesforce/CodeGen).
|
| 22 |
|
| 23 |
```python
|
|
|
|
| 24 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
| 25 |
|
|
|
|
| 26 |
checkpoint = "Salesforce/codet5p-2b"
|
| 27 |
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
| 28 |
|
|
|
|
| 21 |
This model can be easily loaded using the `AutoModelForSeq2SeqLM` functionality and employs the same tokenizer as [CodeGen](https://github.com/salesforce/CodeGen).
|
| 22 |
|
| 23 |
```python
|
| 24 |
+
import torch
|
| 25 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
| 26 |
|
| 27 |
+
|
| 28 |
checkpoint = "Salesforce/codet5p-2b"
|
| 29 |
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
| 30 |
|