shareit commited on
Commit
6f987fc
·
verified ·
1 Parent(s): 51cdab1

(Trained with Unsloth)

Browse files
Files changed (2) hide show
  1. config.json +34 -0
  2. tokenizer_config.json +4 -3
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Phi3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 100257,
8
+ "torch_dtype": "bfloat16",
9
+ "embd_pdrop": 0.0,
10
+ "eos_token_id": 100265,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 5120,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 17920,
15
+ "max_position_embeddings": 32768,
16
+ "model_type": "phi3",
17
+ "num_attention_heads": 40,
18
+ "num_hidden_layers": 40,
19
+ "num_key_value_heads": 10,
20
+ "original_max_position_embeddings": 32768,
21
+ "pad_token_id": 100349,
22
+ "partial_rotary_factor": 1.0,
23
+ "resid_pdrop": 0.0,
24
+ "rms_norm_eps": 1e-05,
25
+ "rope_scaling": null,
26
+ "rope_theta": 500000,
27
+ "sliding_window": null,
28
+ "tie_word_embeddings": false,
29
+ "transformers_version": "4.57.6",
30
+ "unsloth_fixed": true,
31
+ "unsloth_version": "2026.1.4",
32
+ "use_cache": true,
33
+ "vocab_size": 100352
34
+ }
tokenizer_config.json CHANGED
@@ -784,7 +784,8 @@
784
  "extra_special_tokens": {},
785
  "model_max_length": 32768,
786
  "pad_token": "<|dummy_85|>",
787
- "padding_side": "right",
788
  "tokenizer_class": "GPT2Tokenizer",
789
- "unk_token": "�"
790
- }
 
 
784
  "extra_special_tokens": {},
785
  "model_max_length": 32768,
786
  "pad_token": "<|dummy_85|>",
787
+ "padding_side": "left",
788
  "tokenizer_class": "GPT2Tokenizer",
789
+ "unk_token": "�",
790
+ "chat_template": "{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|im_start|>system<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'assistant') %}{{'<|im_start|>assistant<|im_sep|>' + message['content'] + '<|im_end|>'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant<|im_sep|>' }}{% endif %}"
791
+ }