SFT on SmolTalk (20K) - SmolLM2 recipe
Browse files- chat_template.jinja +8 -0
- config.json +24 -0
- pytorch_model.bin +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +14 -0
chat_template.jinja
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|user|>
|
| 2 |
+
' + message['content'] + '
|
| 3 |
+
' }}{% elif message['role'] == 'assistant' %}{{ '<|assistant|>
|
| 4 |
+
' + message['content'] + eos_token + '
|
| 5 |
+
' }}{% elif message['role'] == 'system' %}{{ '<|system|>
|
| 6 |
+
' + message['content'] + '
|
| 7 |
+
' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>
|
| 8 |
+
' }}{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"TinyMindForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_tinymind.TinyMindConfig",
|
| 7 |
+
"AutoModelForCausalLM": "modeling_tinymind.TinyMindForCausalLM"
|
| 8 |
+
},
|
| 9 |
+
"dropout": 0.0,
|
| 10 |
+
"max_seq_len": 512,
|
| 11 |
+
"model_type": "tiny_smart_llm",
|
| 12 |
+
"n_embd": 256,
|
| 13 |
+
"n_heads": 8,
|
| 14 |
+
"n_layers": 6,
|
| 15 |
+
"num_hidden_layers": 6,
|
| 16 |
+
"hidden_size": 256,
|
| 17 |
+
"num_attention_heads": 8,
|
| 18 |
+
"max_position_embeddings": 512,
|
| 19 |
+
"torch_dtype": "float32",
|
| 20 |
+
"vocab_size": 50257,
|
| 21 |
+
"bos_token_id": 50256,
|
| 22 |
+
"eos_token_id": 50256,
|
| 23 |
+
"pad_token_id": 50256
|
| 24 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e9b51c115535a3aebd876c60fc764470ba86f7e5137225b6a70dd8547c85eb2
|
| 3 |
+
size 70947609
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<|endoftext|>",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|endoftext|>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"model_max_length": 512,
|
| 11 |
+
"pad_token": "<|endoftext|>",
|
| 12 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 13 |
+
"unk_token": "<|endoftext|>"
|
| 14 |
+
}
|