bert4torch_config / Qwen2-7B /bert4torch_config.json
Tongjilibo's picture
增加convert_lm_logits_dty
86a6956
raw
history blame
No virus
868 Bytes
{
"model": "qwen2",
"hidden_act": "silu",
"attention_probs_dropout_prob": 0.0,
"bos_token_id": 151643,
"eos_token_id": 151645,
"intermediate_size": 18944,
"initializer_range": 0.02,
"layer_norm_eps": 1e-06,
"hidden_size": 3584,
"num_attention_heads": 28,
"num_hidden_layers": 28,
"num_key_value_heads": 4,
"rope_theta": 1000000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"flash_attention": true,
"is_causal": true,
"vocab_size": 152064,
"segment_vocab_size": 0,
"skip_init": true,
"rope_rank": "updown",
"max_position_embeddings": 32768,
"sliding_window": 131072,
"max_window_layers": 28,
"convert_lm_logits_dtype": "float32",
"generation_config": {"tokenizer_config": {"skip_special_tokens": true}, "end_id": [151643],
"max_length": 32768}
}