GLM-4.5-FP8 / config.json
reissbaker's picture
Add files using upload-large-folder tool
d3f3bd9 verified
{
"architectures": [
"Glm4MoeForCausalLM"
],
"attention_bias": true,
"attention_dropout": 0.0,
"eos_token_id": [
151329,
151336,
151338
],
"first_k_dense_replace": 3,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 5120,
"initializer_range": 0.02,
"intermediate_size": 12288,
"max_position_embeddings": 131072,
"model_type": "glm4_moe",
"moe_intermediate_size": 1536,
"n_group": 1,
"n_routed_experts": 160,
"n_shared_experts": 1,
"norm_topk_prob": true,
"num_attention_heads": 96,
"num_experts_per_tok": 8,
"num_hidden_layers": 92,
"num_key_value_heads": 8,
"num_nextn_predict_layers": 1,
"pad_token_id": 151329,
"partial_rotary_factor": 0.5,
"quantization_config": {
"config_groups": {
"group_0": {
"format": "float-quantized",
"input_activations": {
"actorder": null,
"block_structure": null,
"dynamic": true,
"group_size": null,
"num_bits": 8,
"observer": null,
"observer_kwargs": {},
"strategy": "token",
"symmetric": true,
"type": "float"
},
"output_activations": null,
"targets": [
"Linear"
],
"weights": {
"actorder": null,
"block_structure": null,
"dynamic": false,
"group_size": null,
"num_bits": 8,
"observer": "minmax",
"observer_kwargs": {},
"strategy": "channel",
"symmetric": true,
"type": "float"
}
}
},
"format": "float-quantized",
"global_compression_ratio": null,
"ignore": [
"lm_head"
],
"kv_cache_scheme": null,
"quant_method": "compressed-tensors",
"quantization_status": "compressed",
"sparsity_config": {},
"transform_config": {},
"version": "0.11.0"
},
"rms_norm_eps": 1e-05,
"rope_scaling": null,
"rope_theta": 1000000,
"routed_scaling_factor": 2.5,
"tie_word_embeddings": false,
"topk_group": 1,
"torch_dtype": "bfloat16",
"transformers_version": "4.55.2",
"use_cache": true,
"use_qk_norm": true,
"vocab_size": 151552
}