mozharovsky
commited on
Commit
·
fa31f3b
1
Parent(s):
8de1c3a
Update README.md
Browse files
README.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
# Python T5 base model
|
2 |
|
3 |
-
Pre-trained model on CodeSearchNet Python dataset using a span-masking objective. The training objective and model were introduced in this paper and first released in this repository. PyT5 model used git-t5 framework
|
4 |
|
5 |
# How to use
|
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 |
Add the following code for encoding an input text:
|
10 |
```python
|
11 |
from typing import Dict, Optional, Tuple
|
|
|
1 |
# Python T5 base model
|
2 |
|
3 |
+
Pre-trained model on CodeSearchNet Python dataset using a span-masking objective. The training objective and model were introduced in [this paper](https://arxiv.org/pdf/1910.10683.pdf) and first released in [this repository](https://github.com/google-research/text-to-text-transfer-transformer). PyT5 model used [git-t5](https://github.com/formermagic/git-t5) framework built on top of JAX/Flax to pre-train the model on a TPU v3-8 node.
|
4 |
|
5 |
# How to use
|
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` pip package:
|
10 |
+
```shell
|
11 |
+
> pip install git-t5
|
12 |
+
```
|
13 |
+
|
14 |
Add the following code for encoding an input text:
|
15 |
```python
|
16 |
from typing import Dict, Optional, Tuple
|