bert4torch_config / Baichuan2-13B-Chat /bert4torch_config.json
Tongjilibo's picture
为大模型增加generation_config
16f61c2
raw
history blame
620 Bytes
{
"model": "baichuan",
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 5120,
"initializer_range": 0.02,
"intermediate_size": 13696,
"model_max_length": 4096,
"num_attention_heads": 40,
"num_hidden_layers": 40,
"pad_token_id": 0,
"layer_norm_eps": 1e-06,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"vocab_size": 125696,
"segment_vocab_size": 0,
"p_bias": "alibi",
"skip_init": true,
"norm_head": true,
"generation_config": {"tokenizer_config": {"skip_special_tokens": true}, "max_length": 4096}
}