CarlosJefte
commited on
Commit
•
fb2cfdb
1
Parent(s):
842e0b0
(Trained with Unsloth)
Browse files- config.json +33 -0
- generation_config.json +7 -0
- pytorch_model.bin +3 -0
- tokenizer.json +4 -0
- tokenizer_config.json +2 -10
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "unsloth/tinyllama-bnb-4bit",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 2048,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 5632,
|
14 |
+
"max_position_embeddings": 4096,
|
15 |
+
"model_type": "llama",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_hidden_layers": 22,
|
18 |
+
"num_key_value_heads": 4,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"pretraining_tp": 1,
|
21 |
+
"rms_norm_eps": 1e-05,
|
22 |
+
"rope_scaling": {
|
23 |
+
"factor": 2.0,
|
24 |
+
"type": "linear"
|
25 |
+
},
|
26 |
+
"rope_theta": 10000.0,
|
27 |
+
"tie_word_embeddings": false,
|
28 |
+
"torch_dtype": "float16",
|
29 |
+
"transformers_version": "4.40.2",
|
30 |
+
"unsloth_version": "2024.5",
|
31 |
+
"use_cache": true,
|
32 |
+
"vocab_size": 32000
|
33 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"eos_token_id": 2,
|
4 |
+
"max_length": 2048,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.40.2"
|
7 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28ba75c29d126a684d6a844cc57c034a98d63e5c79b71b1fa14cea598db430a2
|
3 |
+
size 2200164718
|
tokenizer.json
CHANGED
@@ -34,6 +34,10 @@
|
|
34 |
"normalizer": {
|
35 |
"type": "Sequence",
|
36 |
"normalizers": [
|
|
|
|
|
|
|
|
|
37 |
{
|
38 |
"type": "Replace",
|
39 |
"pattern": {
|
|
|
34 |
"normalizer": {
|
35 |
"type": "Sequence",
|
36 |
"normalizers": [
|
37 |
+
{
|
38 |
+
"type": "Prepend",
|
39 |
+
"prepend": "▁"
|
40 |
+
},
|
41 |
{
|
42 |
"type": "Replace",
|
43 |
"pattern": {
|
tokenizer_config.json
CHANGED
@@ -27,24 +27,16 @@
|
|
27 |
"special": true
|
28 |
}
|
29 |
},
|
30 |
-
"additional_special_tokens": [],
|
31 |
"bos_token": "<s>",
|
32 |
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ bos_token + '<|user|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'system' %}\n{{ bos_token + '<|system|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'assistant' %}\n{{ bos_token + '<|assistant|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'function_metadata' %}\n{{ bos_token + '<|function_metadata|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'function_response' %}\n{{ bos_token + '<|function_response|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ bos_token + '<|assistant|>\n' }}\n{% endif %}\n{% endfor %}",
|
33 |
"clean_up_tokenization_spaces": false,
|
34 |
-
"cls_token": null,
|
35 |
"eos_token": "</s>",
|
36 |
-
"
|
37 |
-
"model_input_names": [
|
38 |
-
"input_ids",
|
39 |
-
"attention_mask"
|
40 |
-
],
|
41 |
"model_max_length": 4096,
|
42 |
"pad_token": "<unk>",
|
43 |
"padding_side": "left",
|
44 |
-
"
|
45 |
-
"split_special_tokens": false,
|
46 |
"tokenizer_class": "LlamaTokenizer",
|
47 |
-
"truncation_side": "right",
|
48 |
"unk_token": "<unk>",
|
49 |
"use_default_system_prompt": false
|
50 |
}
|
|
|
27 |
"special": true
|
28 |
}
|
29 |
},
|
|
|
30 |
"bos_token": "<s>",
|
31 |
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ bos_token + '<|user|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'system' %}\n{{ bos_token + '<|system|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'assistant' %}\n{{ bos_token + '<|assistant|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'function_metadata' %}\n{{ bos_token + '<|function_metadata|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% elif message['role'] == 'function_response' %}\n{{ bos_token + '<|function_response|>\n' + message['content'].strip() + eos_token + \"\n\" }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ bos_token + '<|assistant|>\n' }}\n{% endif %}\n{% endfor %}",
|
32 |
"clean_up_tokenization_spaces": false,
|
|
|
33 |
"eos_token": "</s>",
|
34 |
+
"legacy": false,
|
|
|
|
|
|
|
|
|
35 |
"model_max_length": 4096,
|
36 |
"pad_token": "<unk>",
|
37 |
"padding_side": "left",
|
38 |
+
"sp_model_kwargs": {},
|
|
|
39 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
40 |
"unk_token": "<unk>",
|
41 |
"use_default_system_prompt": false
|
42 |
}
|