ceilf6 commited on
Commit
8277ab1
·
verified ·
1 Parent(s): 5ced808

Update subtitle postprocessor fine-tuned model

Browse files
README.md CHANGED
@@ -1,6 +1,13 @@
1
  ---
2
- library_name: transformers
3
- tags: []
 
 
 
 
 
 
 
4
  ---
5
 
6
  # Model Card for Model ID
@@ -15,7 +22,7 @@ tags: []
15
 
16
  <!-- Provide a longer summary of what this model is. -->
17
 
18
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
 
20
  - **Developed by:** [More Information Needed]
21
  - **Funded by [optional]:** [More Information Needed]
@@ -196,4 +203,7 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
196
 
197
  ## Model Card Contact
198
 
199
- [More Information Needed]
 
 
 
 
1
  ---
2
+ base_model: HuggingFaceTB/SmolLM2-135M-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:HuggingFaceTB/SmolLM2-135M-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
  ---
12
 
13
  # Model Card for Model ID
 
22
 
23
  <!-- Provide a longer summary of what this model is. -->
24
 
25
+
26
 
27
  - **Developed by:** [More Information Needed]
28
  - **Funded by [optional]:** [More Information Needed]
 
203
 
204
  ## Model Card Contact
205
 
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.19.1
adapter_config.json CHANGED
@@ -30,13 +30,13 @@
30
  "rank_pattern": {},
31
  "revision": null,
32
  "target_modules": [
 
33
  "gate_proj",
 
34
  "k_proj",
35
- "up_proj",
36
  "down_proj",
37
  "v_proj",
38
- "q_proj",
39
- "o_proj"
40
  ],
41
  "target_parameters": null,
42
  "task_type": "CAUSAL_LM",
 
30
  "rank_pattern": {},
31
  "revision": null,
32
  "target_modules": [
33
+ "up_proj",
34
  "gate_proj",
35
+ "o_proj",
36
  "k_proj",
 
37
  "down_proj",
38
  "v_proj",
39
+ "q_proj"
 
40
  ],
41
  "target_parameters": null,
42
  "task_type": "CAUSAL_LM",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:63c4bf4593d60359e1421ca80d2b94aba0ef75beb45c74978bed1c50dcfa7111
3
  size 19593064
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:455ae313667c729be9d4eb44d665834ed5a1088ad87b7f5fda757857a7f9453e
3
  size 19593064
chat_template.jinja CHANGED
@@ -1,6 +1,6 @@
1
  {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
2
  You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
3
- ' }}{% endif %}{{'<|im_start|>' + message['role'] + '
4
- ' + message['content'] + '<|im_end|>' + '
5
- '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
  ' }}{% endif %}
 
1
  {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
2
  You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
3
+ ' }}{% endif %}{{ '<|im_start|>' + message['role'] + '
4
+ ' }}{% if message['role'] == 'assistant' %}{% generation %}{{ message['content'] }}{% endgeneration %}{% else %}{{ message['content'] }}{% endif %}{{ '<|im_end|>
5
+ ' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
  ' }}{% endif %}
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<|im_start|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|im_end|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": "<|im_end|>",
21
+ "unk_token": {
22
+ "content": "<|endoftext|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ }
28
+ }
tokenizer.json CHANGED
@@ -159,37 +159,21 @@
159
  ],
160
  "normalizer": null,
161
  "pre_tokenizer": {
162
- "type": "ByteLevel",
163
- "add_prefix_space": false,
164
- "trim_offsets": true,
165
- "use_regex": true
166
- },
167
- "post_processor": {
168
- "type": "TemplateProcessing",
169
- "single": [
170
  {
171
- "Sequence": {
172
- "id": "A",
173
- "type_id": 0
174
- }
175
- }
176
- ],
177
- "pair": [
178
- {
179
- "Sequence": {
180
- "id": "A",
181
- "type_id": 0
182
- }
183
  },
184
  {
185
- "Sequence": {
186
- "id": "B",
187
- "type_id": 1
188
- }
189
  }
190
- ],
191
- "special_tokens": {}
192
  },
 
193
  "decoder": {
194
  "type": "ByteLevel",
195
  "add_prefix_space": true,
@@ -200,8 +184,8 @@
200
  "type": "BPE",
201
  "dropout": null,
202
  "unk_token": null,
203
- "continuing_subword_prefix": "",
204
- "end_of_word_suffix": "",
205
  "fuse_unk": false,
206
  "byte_fallback": false,
207
  "ignore_merges": false,
 
159
  ],
160
  "normalizer": null,
161
  "pre_tokenizer": {
162
+ "type": "Sequence",
163
+ "pretokenizers": [
 
 
 
 
 
 
164
  {
165
+ "type": "Digits",
166
+ "individual_digits": true
 
 
 
 
 
 
 
 
 
 
167
  },
168
  {
169
+ "type": "ByteLevel",
170
+ "add_prefix_space": false,
171
+ "trim_offsets": true,
172
+ "use_regex": true
173
  }
174
+ ]
 
175
  },
176
+ "post_processor": null,
177
  "decoder": {
178
  "type": "ByteLevel",
179
  "add_prefix_space": true,
 
184
  "type": "BPE",
185
  "dropout": null,
186
  "unk_token": null,
187
+ "continuing_subword_prefix": null,
188
+ "end_of_word_suffix": null,
189
  "fuse_unk": false,
190
  "byte_fallback": false,
191
  "ignore_merges": false,
tokenizer_config.json CHANGED
@@ -1,16 +1,151 @@
1
  {
2
  "add_prefix_space": false,
3
- "backend": "tokenizers",
4
- "bos_token": "<|im_start|>",
5
- "clean_up_tokenization_spaces": false,
6
- "eos_token": "<|im_end|>",
7
- "errors": "replace",
8
- "extra_special_tokens": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  "<|im_start|>",
10
  "<|im_end|>"
11
  ],
12
- "is_local": false,
13
- "local_files_only": false,
 
 
14
  "model_max_length": 8192,
15
  "pad_token": "<|im_end|>",
16
  "tokenizer_class": "GPT2Tokenizer",
 
1
  {
2
  "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<repo_name>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": "<reponame>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": "<file_sep>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": "<filename>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": "<gh_stars>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": "<issue_start>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": "<issue_comment>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": "<issue_closed>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<jupyter_start>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "12": {
101
+ "content": "<jupyter_text>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "13": {
109
+ "content": "<jupyter_code>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "14": {
117
+ "content": "<jupyter_output>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "15": {
125
+ "content": "<jupyter_script>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "16": {
133
+ "content": "<empty_output>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": true
139
+ }
140
+ },
141
+ "additional_special_tokens": [
142
  "<|im_start|>",
143
  "<|im_end|>"
144
  ],
145
+ "bos_token": "<|im_start|>",
146
+ "clean_up_tokenization_spaces": false,
147
+ "eos_token": "<|im_end|>",
148
+ "extra_special_tokens": {},
149
  "model_max_length": 8192,
150
  "pad_token": "<|im_end|>",
151
  "tokenizer_class": "GPT2Tokenizer",
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c5bc73070a4694ced65d8556f33cc194bd42f217765fe591da87caf7e93210d
3
+ size 6353
vocab.json ADDED
The diff for this file is too large to render. See raw diff