arvindabacus
commited on
Commit
•
e39965a
1
Parent(s):
9014fc8
Update config and add tokenizer files for completeness
Browse files- config.json +9 -4
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +40 -0
config.json
CHANGED
@@ -1,16 +1,17 @@
|
|
1 |
{
|
2 |
"_name_or_path": "abacusai/Giraffe-v2-70b-32k",
|
3 |
-
"abacus_scale": 8,
|
4 |
"architectures": [
|
5 |
"LlamaForCausalLM"
|
6 |
],
|
|
|
7 |
"bos_token_id": 1,
|
8 |
"eos_token_id": 2,
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 8192,
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 28672,
|
13 |
-
"
|
|
|
14 |
"model_type": "llama",
|
15 |
"num_attention_heads": 64,
|
16 |
"num_hidden_layers": 80,
|
@@ -18,10 +19,14 @@
|
|
18 |
"pad_token_id": 0,
|
19 |
"pretraining_tp": 1,
|
20 |
"rms_norm_eps": 1e-05,
|
21 |
-
"rope_scaling":
|
|
|
|
|
|
|
|
|
22 |
"tie_word_embeddings": false,
|
23 |
"torch_dtype": "float16",
|
24 |
"transformers_version": "4.31.0",
|
25 |
-
"use_cache":
|
26 |
"vocab_size": 32000
|
27 |
}
|
|
|
1 |
{
|
2 |
"_name_or_path": "abacusai/Giraffe-v2-70b-32k",
|
|
|
3 |
"architectures": [
|
4 |
"LlamaForCausalLM"
|
5 |
],
|
6 |
+
"attention_bias": false,
|
7 |
"bos_token_id": 1,
|
8 |
"eos_token_id": 2,
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 8192,
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 28672,
|
13 |
+
"max_length": 4096,
|
14 |
+
"max_position_embeddings": 4096,
|
15 |
"model_type": "llama",
|
16 |
"num_attention_heads": 64,
|
17 |
"num_hidden_layers": 80,
|
|
|
19 |
"pad_token_id": 0,
|
20 |
"pretraining_tp": 1,
|
21 |
"rms_norm_eps": 1e-05,
|
22 |
+
"rope_scaling": {
|
23 |
+
"factor": 8.0,
|
24 |
+
"type": "linear"
|
25 |
+
},
|
26 |
+
"rope_theta": 10000.0,
|
27 |
"tie_word_embeddings": false,
|
28 |
"torch_dtype": "float16",
|
29 |
"transformers_version": "4.31.0",
|
30 |
+
"use_cache": true,
|
31 |
"vocab_size": 32000
|
32 |
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": true,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": true,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": true,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"bos_token": "<s>",
|
29 |
+
"clean_up_tokenization_spaces": false,
|
30 |
+
"eos_token": "</s>",
|
31 |
+
"legacy": true,
|
32 |
+
"model_max_length": 1000000000000000019884624838656,
|
33 |
+
"pad_token": "<unk>",
|
34 |
+
"sp_model_kwargs": {},
|
35 |
+
"spaces_between_special_tokens": false,
|
36 |
+
"tokenizer_class": "LlamaTokenizer",
|
37 |
+
"unk_token": "<unk>",
|
38 |
+
"use_default_system_prompt": true,
|
39 |
+
"chat_template": "{%- if messages[0]['role'] == 'system' -%}\nBelow is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n{{messages[0]['content']}}\n{% for msg in messages[1:] %}\n{% if msg['role'] == 'user' %}\n\n### Input:\n{% else %}\n\n### Response:{% endif %}\n{% if 'content' in msg %}\n{{ msg['content'] }}\n{% endif -%}\n{%- endfor %}\n{% if (messages | length) % 2 == 0 %}\n\n### Response:\n{% endif %}\n{%- else -%}\nBelow is an instruction that describes a task. Write a response that appropriately completes the request.\n\n{% for msg in messages %}\n{% if msg['role'] == 'user' %}\n### Instruction:\n{% else %}\n\n### Response:{% endif %}\n{% if 'content' in msg %}\n{{ msg['content'] }}\n{% endif -%}\n{%- endfor %}\n{% if (messages | length) % 2 == 1 %}\n\n### Response:\n{% endif %}\n{%- endif -%}\n"
|
40 |
+
}
|