baasfasfasfasf commited on
Commit
748ee83
1 Parent(s): 96ded35

Initial commit

Browse files
Files changed (5) hide show
  1. added_tokens.txt +1 -0
  2. config.yml +39 -0
  3. decoder_bart.onnx +3 -0
  4. encoder_bart.onnx +3 -0
  5. tokenizer.json +0 -0
added_tokens.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ {"_other_persona": 50270, "<speaker_self>": 50272, "_self_persona": 50269, "_self_name": 50268, "<speaker_other>": 50271, "_partner_name": 50267, "_setting_desc": 50266, "_setting_name": 50265}
config.yml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model_type: "BartChatbot"
2
+ max_steps: 128
3
+ min_length: 2
4
+ repetition_penalty: 1
5
+ template_string: >
6
+ _setting_name {{ location_name }}
7
+ _setting_desc {{ location }}</s>
8
+ _setting_name {{ name }}
9
+ _setting_desc {{ persona }}</s>
10
+ _setting_name {{ other_name }}
11
+ _setting_desc {{ other_persona }}</s>
12
+ {% for line in history -%}
13
+ {% if line.speaker == name -%}
14
+ <speaker_self>
15
+ {%- elif line.speaker == other_name -%}
16
+ <speaker_other>
17
+ {%- endif -%}
18
+ {{ line.line }}
19
+ {%- if loop.index != (history|length) -%}
20
+ </s>
21
+ {% endif %}
22
+ {%- endfor %}
23
+ default_context: >
24
+ {
25
+ "location_name": "",
26
+ "location": "",
27
+ "name": "",
28
+ "persona": "",
29
+ "other_name": "",
30
+ "other_persona": "",
31
+ "history": [
32
+ {"speaker": "", "line": ""},
33
+ {"speaker": "", "line": ""}
34
+ ]
35
+ }
36
+
37
+ bos_token_id: 0
38
+ eos_token_id: 2
39
+ pad_token_id: 1
decoder_bart.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:193c8d322b2a09c09ab116ba9cfa3736b6a4ac939f5c47213933fb8aebfa8923
3
+ size 1222627449
encoder_bart.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d3a906776a689d69ce50117e894e3c45f1087e8dd64d8b48ea59072010944fe
3
+ size 814818963
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff