MLmtl91 commited on
Commit
4e4a7d8
·
verified ·
1 Parent(s): 5b671a8
chat_template.jinja ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {{ bos_token }}{% for m in messages %}{% if m['role'] == 'system' %}[SYS] {{ m['content'] }} [/SYS]
2
+ {% elif m['role'] == 'user' %}[INST] {{ m['content'] }} [/INST]{% elif m['role'] == 'assistant' %} {{ m['content'] }}{{ eos_token }}{% endif %}{% endfor %}
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "PhiForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": null,
7
+ "dtype": "bfloat16",
8
+ "embd_pdrop": 0.0,
9
+ "eos_token_id": null,
10
+ "hidden_act": "gelu_new",
11
+ "hidden_size": 2048,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 8192,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 2048,
16
+ "model_type": "phi",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 24,
19
+ "num_key_value_heads": 32,
20
+ "pad_token_id": null,
21
+ "partial_rotary_factor": 0.5,
22
+ "qk_layernorm": false,
23
+ "resid_pdrop": 0.0,
24
+ "rope_parameters": {
25
+ "partial_rotary_factor": 0.5,
26
+ "rope_theta": 10000.0,
27
+ "rope_type": "default"
28
+ },
29
+ "tie_word_embeddings": false,
30
+ "transformers_version": "5.17.0",
31
+ "use_cache": true,
32
+ "vocab_size": 51215
33
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": false,
3
+ "bos_token_id": 11111,
4
+ "do_sample": false,
5
+ "eos_token_id": 11111,
6
+ "num_beams": 4,
7
+ "early_stopping": true,
8
+ "length_penalty": 1.5
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b19ba38f4eba91adddb3dde28f6b9ee873b88b52b0444ae8a3ea3e83fa4d57b2
3
+ size 2836701950
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "clean_up_tokenization_spaces": true,
6
+ "eos_token": "<|endoftext|>",
7
+ "is_local": true,
8
+ "local_files_only": false,
9
+ "max_length": 200,
10
+ "model_max_length": 2048,
11
+ "pad_to_multiple_of": null,
12
+ "pad_token": "<|endoftext|>",
13
+ "pad_token_type_id": 0,
14
+ "padding_side": "left",
15
+ "return_token_type_ids": false,
16
+ "stride": 0,
17
+ "tokenizer_class": "CodeGenTokenizer",
18
+ "truncation_side": "right",
19
+ "truncation_strategy": "longest_first",
20
+ "unk_token": "<|endoftext|>",
21
+ "chat_template": "{{ bos_token }}{% for m in messages %}{% if m['role'] == 'system' %}[SYS] {{ m['content'] }} [/SYS]\n{% elif m['role'] == 'user' %}[INST] {{ m['content'] }} [/INST]{% elif m['role'] == 'assistant' %} {{ m['content'] }}{{ eos_token }}{% endif %}{% endfor %}"
22
+ }