varun-v-rao
commited on
Commit
•
24a71b9
1
Parent(s):
200e4b9
Upload T5ForQuestionAnswering
Browse files- README.md +23 -35
- pytorch_adapter.bin +1 -1
- pytorch_model_head.bin +1 -1
README.md
CHANGED
@@ -1,54 +1,42 @@
|
|
1 |
---
|
2 |
-
license: apache-2.0
|
3 |
-
base_model: t5-base
|
4 |
tags:
|
5 |
-
-
|
|
|
6 |
datasets:
|
7 |
-
-
|
8 |
-
model-index:
|
9 |
-
- name: t5-base-bn-adapter-1.79M-squad-model1
|
10 |
-
results: []
|
11 |
---
|
12 |
|
13 |
-
|
14 |
-
should probably proofread and complete it, then remove this comment. -->
|
15 |
|
16 |
-
|
17 |
|
18 |
-
This
|
19 |
|
20 |
-
##
|
21 |
|
22 |
-
|
23 |
|
24 |
-
|
|
|
|
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
|
|
29 |
|
30 |
-
|
|
|
|
|
31 |
|
32 |
-
## Training
|
33 |
|
34 |
-
|
35 |
|
36 |
-
|
37 |
-
- learning_rate: 2e-05
|
38 |
-
- train_batch_size: 16
|
39 |
-
- eval_batch_size: 4
|
40 |
-
- seed: 98
|
41 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
-
- lr_scheduler_type: linear
|
43 |
-
- num_epochs: 3
|
44 |
|
45 |
-
|
46 |
|
|
|
47 |
|
48 |
-
|
49 |
-
### Framework versions
|
50 |
-
|
51 |
-
- Transformers 4.35.2
|
52 |
-
- Pytorch 2.1.1+cu121
|
53 |
-
- Datasets 2.15.0
|
54 |
-
- Tokenizers 0.15.0
|
|
|
1 |
---
|
|
|
|
|
2 |
tags:
|
3 |
+
- t5
|
4 |
+
- adapter-transformers
|
5 |
datasets:
|
6 |
+
- squad
|
|
|
|
|
|
|
7 |
---
|
8 |
|
9 |
+
# Adapter `varun-v-rao/t5-base-bn-adapter-1.79M-squad-model1` for t5-base
|
|
|
10 |
|
11 |
+
An [adapter](https://adapterhub.ml) for the `t5-base` model that was trained on the [squad](https://huggingface.co/datasets/squad/) dataset.
|
12 |
|
13 |
+
This adapter was created for usage with the **[Adapters](https://github.com/Adapter-Hub/adapters)** library.
|
14 |
|
15 |
+
## Usage
|
16 |
|
17 |
+
First, install `adapters`:
|
18 |
|
19 |
+
```
|
20 |
+
pip install -U adapters
|
21 |
+
```
|
22 |
|
23 |
+
Now, the adapter can be loaded and activated like this:
|
24 |
|
25 |
+
```python
|
26 |
+
from adapters import AutoAdapterModel
|
27 |
|
28 |
+
model = AutoAdapterModel.from_pretrained("t5-base")
|
29 |
+
adapter_name = model.load_adapter("varun-v-rao/t5-base-bn-adapter-1.79M-squad-model1", source="hf", set_active=True)
|
30 |
+
```
|
31 |
|
32 |
+
## Architecture & Training
|
33 |
|
34 |
+
<!-- Add some description here -->
|
35 |
|
36 |
+
## Evaluation results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
+
<!-- Add some description here -->
|
39 |
|
40 |
+
## Citation
|
41 |
|
42 |
+
<!-- Add some description here -->
|
|
|
|
|
|
|
|
|
|
|
|
pytorch_adapter.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7190294
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f84bd8362f4247c1498f53d97279075be91bd76e08b8cf4444ab820c54b7cac8
|
3 |
size 7190294
|
pytorch_model_head.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7706
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53e18a8e9c698b154803c694700c9f55302494a6307dd4b41be93f38b200fbca
|
3 |
size 7706
|