bert4torch_config / internlm-chat-7b /bert4torch_config.json
Tongjilibo's picture
为大模型增加generation_config
16f61c2
{
"model": "internlm",
"hidden_size": 4096,
"intermediate_size": 11008,
"num_attention_heads": 32,
"num_hidden_layers": 32,
"layer_norm_eps": 1e-06,
"hidden_act": "silu",
"vocab_size": 103168,
"pad_token_id": 0,
"segment_vocab_size": 0,
"skip_init": true,
"rope_rank": "updown",
"torch_dtype": "float16",
"tie_word_embeddings": false,
"generation_config": {"tokenizer_config": {"skip_special_tokens": true}, "end_id": [2, 103028], "max_length": 2048}
}