matterai commited on
Commit
bc7a2da
·
1 Parent(s): b5851c5

Fix up incorrect configs (#2)

Browse files

- fixes (42b4b33b8769f10ee03f9be45577178f65a2e026)

Files changed (3) hide show
  1. chat_template.jinja +1 -5
  2. config.json +2 -2
  3. tokenizer.json +1 -10
chat_template.jinja CHANGED
@@ -1,5 +1 @@
1
- {% for message in messages %}
2
- <{{ message.role }}>
3
- {{ message.content }}
4
- </{{ message.role }}>
5
- {% endfor %}
 
1
+ [CLS]{{ messages[0].content }}[SEP]
 
 
 
 
config.json CHANGED
@@ -20,13 +20,13 @@
20
  "hidden_activation": "gelu",
21
  "hidden_size": 768,
22
  "id2label": {
23
- "0": "LABEL_0"
24
  },
25
  "initializer_cutoff_factor": 2.0,
26
  "initializer_range": 0.02,
27
  "intermediate_size": 1152,
28
  "label2id": {
29
- "LABEL_0": 0
30
  },
31
  "layer_norm_eps": 1e-05,
32
  "local_attention": 128,
 
20
  "hidden_activation": "gelu",
21
  "hidden_size": 768,
22
  "id2label": {
23
+ "0": "toxic"
24
  },
25
  "initializer_cutoff_factor": 2.0,
26
  "initializer_range": 0.02,
27
  "intermediate_size": 1152,
28
  "label2id": {
29
+ "toxic": 0
30
  },
31
  "layer_norm_eps": 1e-05,
32
  "local_attention": 128,
tokenizer.json CHANGED
@@ -6,16 +6,7 @@
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
- "padding": {
10
- "strategy": {
11
- "Fixed": 2048
12
- },
13
- "direction": "Right",
14
- "pad_to_multiple_of": null,
15
- "pad_id": 50283,
16
- "pad_type_id": 0,
17
- "pad_token": "[PAD]"
18
- },
19
  "added_tokens": [
20
  {
21
  "id": 0,
 
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
+ "padding": null,
 
 
 
 
 
 
 
 
 
10
  "added_tokens": [
11
  {
12
  "id": 0,