Upload model
Browse files- config.json +41 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- special_tokens_map.json +6 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +48 -0
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"JambaForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"attn_layer_offset": 4,
|
7 |
+
"attn_layer_period": 8,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"expert_layer_offset": 1,
|
11 |
+
"expert_layer_period": 2,
|
12 |
+
"hidden_act": "silu",
|
13 |
+
"hidden_size": 512,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 2048,
|
16 |
+
"mamba_conv_bias": true,
|
17 |
+
"mamba_d_conv": 4,
|
18 |
+
"mamba_d_state": 16,
|
19 |
+
"mamba_dt_rank": 32,
|
20 |
+
"mamba_expand": 2,
|
21 |
+
"mamba_proj_bias": false,
|
22 |
+
"max_position_embeddings": 262144,
|
23 |
+
"model_type": "jamba",
|
24 |
+
"num_attention_heads": 8,
|
25 |
+
"num_experts": 8,
|
26 |
+
"num_experts_per_tok": 2,
|
27 |
+
"num_hidden_layers": 16,
|
28 |
+
"num_key_value_heads": 2,
|
29 |
+
"num_logits_to_keep": 1,
|
30 |
+
"output_router_logits": false,
|
31 |
+
"pad_token_id": 0,
|
32 |
+
"rms_norm_eps": 1e-06,
|
33 |
+
"router_aux_loss_coef": 0.001,
|
34 |
+
"sliding_window": null,
|
35 |
+
"tie_word_embeddings": false,
|
36 |
+
"torch_dtype": "bfloat16",
|
37 |
+
"transformers_version": "4.40.2",
|
38 |
+
"use_cache": true,
|
39 |
+
"use_mamba_kernels": true,
|
40 |
+
"vocab_size": 65536
|
41 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.40.2"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2be1f3cad5157c5347449629edbbea2ef2a1158b8cbe9cd8070fa8ab687b65e1
|
3 |
+
size 637428728
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|startoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": "<|pad|>",
|
5 |
+
"unk_token": "<|unk|>"
|
6 |
+
}
|
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:02fd6530b8ede0eedd8e509fcab32da7b1dd04c8119f8498c787100f13112713
|
3 |
+
size 1124742
|
tokenizer_config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<|pad|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<|startoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "<|endoftext|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"3": {
|
30 |
+
"content": "<|unk|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
}
|
37 |
+
},
|
38 |
+
"bos_token": "<|startoftext|>",
|
39 |
+
"chat_template": "{% set bom_token='<|bom|>' %}{% set eom_token='<|eom|>' %}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a task following system, respond to the user\\'s input precisely. Do not add any additional information.' %}{% endif %}{{ bom_token + 'System: ' + system_message + eom_token + '' }}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ bom_token + 'User: ' + content.strip() + eom_token }}{% elif message['role'] == 'system' %}{{ bom_token + 'System: ' + content.strip() + eom_token }}{% elif message['role'] == 'assistant' %}{{ bom_token + 'Assistant: ' + content.strip() + eom_token }}{% endif %}{% if message['role'] == 'assistant' and loop.index0 == loop.length - 1 %}{{ 'User: ' }}{% elif message['role'] == 'user' and loop.index0 == loop.length - 1 %}{{ '' + bom_token + 'Assistant:' }}{% else %}{{ '' }}{% endif %}{% endfor %}",
|
40 |
+
"clean_up_tokenization_spaces": false,
|
41 |
+
"eos_token": "<|endoftext|>",
|
42 |
+
"model_max_length": 1000000000000000019884624838656,
|
43 |
+
"pad_token": "<|pad|>",
|
44 |
+
"spaces_between_special_tokens": false,
|
45 |
+
"tokenizer_class": "LlamaTokenizer",
|
46 |
+
"unk_token": "<|unk|>",
|
47 |
+
"use_default_system_prompt": false
|
48 |
+
}
|