burtenshaw HF Staff commited on
Commit
b70cb4d
·
verified ·
1 Parent(s): fc44ce7

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +34 -17
config.json CHANGED
@@ -1,19 +1,36 @@
1
  {
2
- "tokenizer_class": "PreTrainedTokenizerFast",
3
- "bos_token": "<|bos|>",
4
- "eos_token": "<|assistant_end|>",
5
- "pad_token": "<|assistant_end|>",
6
- "additional_special_tokens": [
7
- "<|user_start|>",
8
- "<|user_end|>",
9
- "<|assistant_start|>",
10
- "<|python_start|>",
11
- "<|python_end|>",
12
- "<|output_start|>",
13
- "<|output_end|>"
14
- ],
15
- "model_input_names": [
16
- "input_ids",
17
- "attention_mask"
18
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
 
1
  {
2
+ "architectures": [
3
+ "NanoChatForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token": "<|bos|>",
7
+ "bos_token_id": 0,
8
+ "chat_template": "{% if messages[0]['role'] == 'system' %}<|bos|><|user_start|>{{ messages[0]['content'] }}\n\n{{ messages[1]['content'] }}<|user_end|>{% set messages = messages[2:] %}{% else %}<|bos|>{% endif %}{% for message in messages %}{% if loop.index0 % 2 == 0 %}<|user_start|>{{ message['content'] }}<|user_end|>{% else %}<|assistant_start|>{{ message['content'] }}<|assistant_end|>{% endif %}{% endfor %}",
9
+ "dtype": "bfloat16",
10
+ "eos_token": "<|assistant_end|>",
11
+ "eos_token_id": 65531,
12
+ "hidden_act": "relu2",
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 5120,
15
+ "logits_soft_cap": 15.0,
16
+ "max_position_embeddings": 2048,
17
+ "model_type": "nanochat",
18
+ "n_embd": 1280,
19
+ "n_head": 10,
20
+ "n_layer": 20,
21
+ "hidden_size": 1280,
22
+ "num_attention_heads": 10,
23
+ "num_hidden_layers": 20,
24
+ "num_key_value_heads": 10,
25
+ "pad_token": "<|assistant_end|>",
26
+ "pad_token_id": 65531,
27
+ "qkv_bias": false,
28
+ "resid_dropout": 0.0,
29
+ "rms_norm_eps": 1e-06,
30
+ "rope_scaling": null,
31
+ "rope_theta": 10000.0,
32
+ "tie_word_embeddings": false,
33
+ "transformers_version": "4.57.0.dev0",
34
+ "use_cache": true,
35
+ "vocab_size": 65536
36
  }