typeof commited on
Commit
a94bf8f
·
verified ·
1 Parent(s): 53a74ed

Upload folder using huggingface_hub

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- for message in messages %}
2
+ {{- '<|im_start|>' + message['role'] + '\n' }}
3
+ {{- message['content'] }}
4
+ {%- if message['role'] == 'user' and message.get('sources') %}
5
+ {%- for source in message['sources'] %}
6
+ {{- '\n\n<source_' + loop.index|string + '>' + source + '</source_' + loop.index|string + '>' }}
7
+ {%- endfor %}
8
+ {%- endif %}
9
+ {{- '<|im_end|>\n' }}
10
+ {%- endfor %}
11
+ {%- if add_generation_prompt %}
12
+ {{- '<|im_start|>assistant\n' }}
13
+ {%- if disable_thinking %}
14
+ {{- '</think>\n' }}
15
+ {%- else %}
16
+ {{- '<think>\n' }}
17
+ {%- endif %}
18
+ {%- endif %}
chat_template.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "chat_template": "{% for m in messages %}<|im_start|>{{ m['role'] }}\n{{ m['content'] }}<|im_end|>\n{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n<think>\n{% endif %}",
3
+ "eos_token": "<|im_end|>",
4
+ "bos_token": "<|im_start|>",
5
+ "stop": ["<|im_end|>"],
6
+ "roles": { "user": "user", "assistant": "assistant", "system": "system" }
7
+ }
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "head_dim": 64,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 256,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 768,
14
+ "max_position_embeddings": 8192,
15
+ "mlp_bias": false,
16
+ "model_type": "qwen2",
17
+ "num_attention_heads": 4,
18
+ "num_hidden_layers": 64,
19
+ "num_key_value_heads": 4,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-05,
22
+ "rope_scaling": {
23
+ "factor": 4.0,
24
+ "original_max_position_embeddings": 2048,
25
+ "type": "yarn"
26
+ },
27
+ "rope_theta": 10000,
28
+ "tie_word_embeddings": true,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.51.3",
31
+ "use_cache": true,
32
+ "vocab_size": 8192,
33
+
34
+ "max_window_layers": 64,
35
+ "use_sliding_window": false,
36
+ "sliding_window": 8192
37
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.51.3"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d99bffef2d388cfbd0b39b8a0e1665e64afd7e0f7b055f7abebadc756a7227bf
3
+ size 113376216
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[UNK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<|begin_of_text|>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "<|end_of_text|>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[PAD]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ }
35
+ },
36
+ "clean_up_tokenization_spaces": false,
37
+ "extra_special_tokens": {},
38
+ "model_input_names": [
39
+ "input_ids",
40
+ "attention_mask"
41
+ ],
42
+ "model_max_length": 1000000000000000019884624838656,
43
+ "tokenizer_class": "PreTrainedTokenizer"
44
+ }