dyxohjl666 commited on
Commit
503e0c5
1 Parent(s): 111c8dd

Upload T5ForConditionalGeneration

Browse files
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - adapter-transformers
4
+ - t5
5
+ datasets:
6
+ - length_ctrl
7
+ ---
8
+
9
+ # Adapter `dyxohjl666/xlora` for google/flan-t5-xl
10
+
11
+ An [adapter](https://adapterhub.ml) for the `google/flan-t5-xl` model that was trained on the [length_ctrl](https://huggingface.co/datasets/length_ctrl/) 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("google/flan-t5-xl")
29
+ adapter_name = model.load_adapter("dyxohjl666/xlora", 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 -->
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "alpha": 8,
4
+ "architecture": "lora",
5
+ "attn_matrices": [
6
+ "q",
7
+ "v"
8
+ ],
9
+ "composition_mode": "add",
10
+ "dropout": 0.0,
11
+ "init_weights": "lora",
12
+ "intermediate_lora": false,
13
+ "leave_out": [],
14
+ "output_lora": false,
15
+ "r": 8,
16
+ "selfattn_lora": true,
17
+ "use_gating": false
18
+ },
19
+ "hidden_size": 2048,
20
+ "model_class": "T5ForConditionalGeneration",
21
+ "model_name": "google/flan-t5-xl",
22
+ "model_type": "t5",
23
+ "name": "length",
24
+ "version": "0.2.2"
25
+ }
head_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": null,
3
+ "hidden_size": 2048,
4
+ "label2id": {
5
+ "LABEL_0": 0,
6
+ "LABEL_1": 1
7
+ },
8
+ "model_class": "T5ForConditionalGeneration",
9
+ "model_name": "google/flan-t5-xl",
10
+ "model_type": "t5",
11
+ "name": null,
12
+ "num_labels": 2,
13
+ "version": "0.2.2"
14
+ }
pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77656d6aa06b044bb778c6680e815811fc455c353b08f93a1d7fb5be54a08ddf
3
+ size 18974226
pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95e7011c8ab4a7cbfce6c14ff83d65ec943ed92b6d59d719639285e538894fdf
3
+ size 263193875