Instructions to use formermagic/pyt5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use formermagic/pyt5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("formermagic/pyt5-base") model = AutoModelForSeq2SeqLM.from_pretrained("formermagic/pyt5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
17690fa
1
Parent(s): fa31f3b
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ Pre-trained model on CodeSearchNet Python dataset using a span-masking objective
|
|
| 6 |
|
| 7 |
You can use this model to denoise span-masked sequences. Note, that you'll need to add some boilerplate code for adding the noise to your sequences.
|
| 8 |
|
| 9 |
-
First, install the
|
| 10 |
```shell
|
| 11 |
> pip install git-t5
|
| 12 |
```
|
|
|
|
| 6 |
|
| 7 |
You can use this model to denoise span-masked sequences. Note, that you'll need to add some boilerplate code for adding the noise to your sequences.
|
| 8 |
|
| 9 |
+
First, install the [git-t5](https://github.com/formermagic/git-t5) pip package:
|
| 10 |
```shell
|
| 11 |
> pip install git-t5
|
| 12 |
```
|