Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- config.json +44 -0
- generation_config.json +7 -0
- pytorch_model-00001-of-00017.bin +3 -0
- pytorch_model-00002-of-00017.bin +3 -0
- pytorch_model-00003-of-00017.bin +3 -0
- pytorch_model-00004-of-00017.bin +3 -0
- pytorch_model-00005-of-00017.bin +3 -0
- pytorch_model-00006-of-00017.bin +3 -0
- pytorch_model-00007-of-00017.bin +3 -0
- pytorch_model-00008-of-00017.bin +3 -0
- pytorch_model-00009-of-00017.bin +3 -0
- pytorch_model-00010-of-00017.bin +3 -0
- pytorch_model-00011-of-00017.bin +3 -0
- pytorch_model-00012-of-00017.bin +3 -0
- pytorch_model-00013-of-00017.bin +3 -0
- pytorch_model-00014-of-00017.bin +3 -0
- pytorch_model-00015-of-00017.bin +3 -0
- pytorch_model-00016-of-00017.bin +3 -0
- pytorch_model-00017-of-00017.bin +3 -0
- pytorch_model.bin.index.json +0 -0
- special_tokens_map.json +26 -0
- tokenizer.json +3 -0
- tokenizer_config.json +106 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"DeepseekForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "ai-sage/GigaChat-20B-A3B-base--configuration_deepseek.DeepseekConfig",
|
9 |
+
"AutoModel": "ai-sage/GigaChat-20B-A3B-base--modelling_deepseek.DeepseekModel",
|
10 |
+
"AutoModelForCausalLM": "ai-sage/GigaChat-20B-A3B-base--modelling_deepseek.DeepseekForCausalLM"
|
11 |
+
},
|
12 |
+
"aux_loss_alpha": 0.001,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"eos_token_id": 128001,
|
15 |
+
"first_k_dense_replace": 1,
|
16 |
+
"hidden_act": "silu",
|
17 |
+
"hidden_size": 2048,
|
18 |
+
"initializer_range": 0.006,
|
19 |
+
"intermediate_size": 14336,
|
20 |
+
"max_position_embeddings": 131072,
|
21 |
+
"moe_implementation": "eager",
|
22 |
+
"moe_intermediate_size": 1792,
|
23 |
+
"moe_layer_freq": 1,
|
24 |
+
"n_routed_experts": 64,
|
25 |
+
"n_shared_experts": 2,
|
26 |
+
"norm_topk_prob": false,
|
27 |
+
"num_attention_heads": 16,
|
28 |
+
"num_experts_per_tok": 6,
|
29 |
+
"num_hidden_layers": 28,
|
30 |
+
"num_key_value_heads": 8,
|
31 |
+
"pad_token_id": 1,
|
32 |
+
"pretraining_tp": 1,
|
33 |
+
"return_dict": false,
|
34 |
+
"rms_norm_eps": 1e-05,
|
35 |
+
"rope_scaling": null,
|
36 |
+
"rope_theta": 1400000,
|
37 |
+
"scoring_func": "softmax",
|
38 |
+
"seq_aux": true,
|
39 |
+
"tie_word_embeddings": false,
|
40 |
+
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.48.0",
|
42 |
+
"use_cache": true,
|
43 |
+
"vocab_size": 128256
|
44 |
+
}
|
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": 2,
|
6 |
+
"transformers_version": "4.48.0"
|
7 |
+
}
|
pytorch_model-00001-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6881be84de3f9cd9d6fa6b224c06ef72d605d40bfb8b799a9bd7be03bb045e89
|
3 |
+
size 4990209805
|
pytorch_model-00002-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d22acb31b9d05968618f417e3643f68c6065d70fa7f92b06574ecf1bfa64bdd8
|
3 |
+
size 4998156291
|
pytorch_model-00003-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0159a7278b387aad6eb9c8cbb3b4661031ed98dd76d0358c5735c772bffcc566
|
3 |
+
size 4990291165
|
pytorch_model-00004-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ed25e86b388338197de8f5388edb1aac55121f3f5fa3b84adda3c8ddfdb4d35
|
3 |
+
size 4990291141
|
pytorch_model-00005-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f2444656b6ca44d53552d5f5e5fd0e516a08a5cc1a6de8b22bb5cb0b95bb843
|
3 |
+
size 4998156291
|
pytorch_model-00006-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc9cb99812ff088b24e9a92f400f4f3acf143ed421e337f5f4ab5191c0584274
|
3 |
+
size 4990291269
|
pytorch_model-00007-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7eee709da015cd42e6edbe7a4d808bb2174381294decd94e71517cbd05319b11
|
3 |
+
size 4990291525
|
pytorch_model-00008-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7aed5540694a67d0e135fdada93caf456bce6e3e5088a5735bc63b32892f655
|
3 |
+
size 4988194397
|
pytorch_model-00009-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56fd8ccdb745f341d5d1b8a1aca7662dcefa1321e91c14715461133d9ec346dc
|
3 |
+
size 4985573296
|
pytorch_model-00010-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c4859fd1d33529e67ecd2f79753bd83b33b3320a13d91d203b01151de365ee8
|
3 |
+
size 4990291537
|
pytorch_model-00011-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8cd8c0db6a167cb3cfc46aa1745fd87d08d5fc1dc9561be51e9c4426b71b9a8b
|
3 |
+
size 4990291549
|
pytorch_model-00012-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da4dab92becf5f54e355053035c639ff9df6b55e67a89126fb2a8d474d5b29b2
|
3 |
+
size 4998156611
|
pytorch_model-00013-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a913eadd76fabde6c9e538e1a10918c7bbb441b24554a6981c796c12529fea3a
|
3 |
+
size 4990291549
|
pytorch_model-00014-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:12bb48d3c989e2790dfb25e45ada69d297beddb5967fe103f84ee3097b9e0538
|
3 |
+
size 4990291549
|
pytorch_model-00015-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:453611aa27e699c490e0597aa955fd344d2bc716daba126dc5a8d51063f4aca3
|
3 |
+
size 4998156611
|
pytorch_model-00016-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a56a0a81774371fb7322a88593d1a499758bac8146e700fa04823db7f1abbc18
|
3 |
+
size 4990291549
|
pytorch_model-00017-of-00017.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:698eff1c4741c7b4007e8d55bbce3560f8a2c6abaa744160130fa85319ef9814
|
3 |
+
size 2489877692
|
pytorch_model.bin.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|role_sep|>",
|
4 |
+
"<|message_sep|>",
|
5 |
+
"[",
|
6 |
+
"]",
|
7 |
+
"<|role_sep|>",
|
8 |
+
"<|message_sep|>",
|
9 |
+
"[",
|
10 |
+
"]"
|
11 |
+
],
|
12 |
+
"bos_token": {
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
"eos_token": {
|
20 |
+
"content": "<|message_sep|>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false
|
25 |
+
}
|
26 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6fc8146adda45ec7f4876d832f80b55e8dd3e1fa648fbd54d059a601ee73cea3
|
3 |
+
size 10678892
|
tokenizer_config.json
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_eos_token": false,
|
3 |
+
"added_tokens": {
|
4 |
+
"1": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"128000": {
|
13 |
+
"content": "<|role_sep|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"128001": {
|
21 |
+
"content": "<|message_sep|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"61": {
|
29 |
+
"content": "[",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"63": {
|
37 |
+
"content": "]",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"added_tokens_decoder": {
|
46 |
+
"1": {
|
47 |
+
"content": "<s>",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": false,
|
50 |
+
"rstrip": false,
|
51 |
+
"single_word": false,
|
52 |
+
"special": true
|
53 |
+
},
|
54 |
+
"61": {
|
55 |
+
"content": "[",
|
56 |
+
"lstrip": false,
|
57 |
+
"normalized": false,
|
58 |
+
"rstrip": false,
|
59 |
+
"single_word": false,
|
60 |
+
"special": true
|
61 |
+
},
|
62 |
+
"63": {
|
63 |
+
"content": "]",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": false,
|
66 |
+
"rstrip": false,
|
67 |
+
"single_word": false,
|
68 |
+
"special": true
|
69 |
+
},
|
70 |
+
"128000": {
|
71 |
+
"content": "<|role_sep|>",
|
72 |
+
"lstrip": false,
|
73 |
+
"normalized": false,
|
74 |
+
"rstrip": false,
|
75 |
+
"single_word": false,
|
76 |
+
"special": true
|
77 |
+
},
|
78 |
+
"128001": {
|
79 |
+
"content": "<|message_sep|>",
|
80 |
+
"lstrip": false,
|
81 |
+
"normalized": false,
|
82 |
+
"rstrip": false,
|
83 |
+
"single_word": false,
|
84 |
+
"special": true
|
85 |
+
}
|
86 |
+
},
|
87 |
+
"additional_special_tokens": [
|
88 |
+
"<|role_sep|>",
|
89 |
+
"<|message_sep|>",
|
90 |
+
"[",
|
91 |
+
"]",
|
92 |
+
"<|role_sep|>",
|
93 |
+
"<|message_sep|>",
|
94 |
+
"[",
|
95 |
+
"]"
|
96 |
+
],
|
97 |
+
"bos_token": "<s>",
|
98 |
+
"chat_template": "{% if messages[0]['role'] == 'system' -%}\n {%- set loop_messages = messages[1:] -%}\n {%- set system_message = bos_token + messages[0]['content'] + additional_special_tokens[1] -%}\n{%- else -%}\n {%- set loop_messages = messages -%}\n {%- set system_message = bos_token + '' -%}\n{%- endif -%}\n{%- for message in loop_messages %}\n {% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}\n {% endif %}\n \n {%- if loop.index0 == 0 -%}\n {{ system_message -}}\n {%- endif -%}\n {%- if message['role'] == 'user' -%}\n {{ message['role'] + additional_special_tokens[0] + message['content'] + additional_special_tokens[1] -}}\n {{ 'available functions' + additional_special_tokens[0] + additional_special_tokens[2] + additional_special_tokens[3] + additional_special_tokens[1] -}}\n {%- endif -%}\n {%- if message['role'] == 'assistant' -%}\n {{ message['role'] + additional_special_tokens[0] + message['content'] + additional_special_tokens[1] -}}\n {%- endif -%}\n {%- if loop.last and add_generation_prompt -%}\n {{ 'assistant' + additional_special_tokens[0] -}}\n {%- endif -%}\n{%- endfor %}",
|
99 |
+
"clean_up_tokenization_spaces": true,
|
100 |
+
"eos_token": "<|message_sep|>",
|
101 |
+
"extra_special_tokens": {},
|
102 |
+
"legacy": true,
|
103 |
+
"model_max_length": 1000000000000000019884624838656,
|
104 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
105 |
+
"unk_token": null
|
106 |
+
}
|