AbrahamSanders
commited on
Commit
•
a862a1d
1
Parent(s):
3207c7a
First model version
Browse files- README.md +5 -0
- added_tokens.json +1 -0
- config.json +44 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Base model: [gpt2-xl](https://huggingface.co/gpt2-xl)
|
2 |
+
|
3 |
+
Domain-adapted for dialogue response and narrative generation on a [narrative-aligned variant](https://github.com/AbrahamSanders/gutenberg-dialog#download-narrative-aligned-datasets) of the [Gutenberg Dialogue Dataset (Csaky & Recski, 2021)](https://aclanthology.org/2021.eacl-main.11.pdf)
|
4 |
+
|
5 |
+
Fine-tuned for dialogue response generation on [Persuasion For Good (Wang et al., 2019)](https://aclanthology.org/P19-1566.pdf) ([dataset](https://gitlab.com/ucdavisnlp/persuasionforgood))
|
added_tokens.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"<|pad|>": 50257, "<|dialog|>": 50259, "<|narrative|>": 50258}
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "output_gutenberg/checkpoint-400000-nockpt",
|
3 |
+
"_num_labels": 1,
|
4 |
+
"activation_function": "gelu_new",
|
5 |
+
"architectures": [
|
6 |
+
"GPT2LMHeadModel"
|
7 |
+
],
|
8 |
+
"attn_pdrop": 0.1,
|
9 |
+
"bos_token_id": 50256,
|
10 |
+
"embd_pdrop": 0.1,
|
11 |
+
"eos_token_id": 50256,
|
12 |
+
"gradient_checkpointing": false,
|
13 |
+
"id2label": {
|
14 |
+
"0": "LABEL_0"
|
15 |
+
},
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"label2id": {
|
18 |
+
"LABEL_0": 0
|
19 |
+
},
|
20 |
+
"layer_norm_epsilon": 1e-05,
|
21 |
+
"model_type": "gpt2",
|
22 |
+
"n_ctx": 1024,
|
23 |
+
"n_embd": 1600,
|
24 |
+
"n_head": 25,
|
25 |
+
"n_inner": null,
|
26 |
+
"n_layer": 48,
|
27 |
+
"n_positions": 1024,
|
28 |
+
"output_past": true,
|
29 |
+
"resid_pdrop": 0.1,
|
30 |
+
"summary_activation": null,
|
31 |
+
"summary_first_dropout": 0.1,
|
32 |
+
"summary_proj_to_labels": true,
|
33 |
+
"summary_type": "cls_index",
|
34 |
+
"summary_use_proj": true,
|
35 |
+
"task_specific_params": {
|
36 |
+
"text-generation": {
|
37 |
+
"do_sample": true,
|
38 |
+
"max_length": 50
|
39 |
+
}
|
40 |
+
},
|
41 |
+
"transformers_version": "4.4.2",
|
42 |
+
"use_cache": true,
|
43 |
+
"vocab_size": 50260
|
44 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33a906299d4ece61fd389cba39e07259d98bc5cd582f3529aa36d6f1c39c2b0f
|
3 |
+
size 6281058871
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "unk_token": "<|endoftext|>", "pad_token": "<|pad|>", "additional_special_tokens": ["<|narrative|>", "<|dialog|>"]}
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "output_gutenberg/checkpoint-400000-nockpt", "errors": "replace"}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|