File size: 3,915 Bytes
e84a55b 53f3e5b e84a55b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | {
"mic": "0.3",
"name": "GLM-5.3-Flash multimodal generation",
"usage": "AutoProcessor + Glm5NextForConditionalGeneration, image+text chat, batched, causal LM labels",
"architecture": "Glm5NextForConditionalGeneration",
"checkpoints": {
"zai-org/GLM-5.3-Flash": {
"fixture": "huggingface-mic/GLM-5.3-Flash-mic"
}
},
"fixtures": {
"huggingface-mic/GLM-5.3-Flash-mic": {
"built_from": "zai-org/GLM-5.3-Flash",
"covers": [
"zai-org/GLM-5.3-Flash"
],
"why_separate": "The checkpoint is a ~hundreds-of-billions-of-parameters FP8 MoE VLM; the slim fixture shrinks text depth/experts and vision depth so CPU runners can exercise the public forward, processor and training path.",
"build": {
"seed": 17,
"model_class": "Glm5NextForConditionalGeneration",
"config_overrides": {
"fields": {
"text_config.n_routed_experts": 8,
"text_config.num_experts_per_tok": 2,
"text_config.moe_intermediate_size": 64,
"text_config.intermediate_size": 128,
"text_config.hidden_size": 128,
"text_config.num_attention_heads": 4,
"text_config.num_key_value_heads": 4,
"text_config.q_lora_rank": 64,
"text_config.kv_lora_rank": 64,
"text_config.qk_nope_head_dim": 32,
"text_config.v_head_dim": 32,
"text_config.index_head_dim": 32,
"text_config.index_n_heads": 4,
"text_config.index_topk": 64,
"text_config.linear_attn_config.num_heads": 4,
"text_config.linear_attn_config.head_dim": 32,
"text_config.num_nextn_predict_layers": 1,
"vision_config.depth": 2,
"vision_config.hidden_size": 64,
"vision_config.intermediate_size": 128,
"vision_config.num_heads": 4,
"vision_config.out_hidden_size": 128,
"vision_config.image_size": 56,
"vision_config.patch_size": 14,
"vision_config.projection_intermediate_size": 128
},
"reason": "Shrink text and vision stacks to a few layers, few experts and a tiny vocabulary so the fixture fits CPU memory while preserving the MoE, linear-attention, sparse-attention, MTP and multimodal projector code paths."
}
}
}
},
"integrations": {
"transformers": {
"entry_point": "integrations/transformers/usage.md",
"format": "runnable-markdown",
"requires": [
"transformers>=5",
"torch",
"torchvision"
],
"targets": [
"fixtures"
],
"variants": {
"default": {},
"eager": {
"attn_implementation": "eager"
},
"bfloat16": {
"dtype": "bfloat16"
}
},
"training": true,
"resources": {
"fixture": {
"memory_gb": 4,
"download_mb": 50
},
"zai-org/GLM-5.3-Flash": {
"devices": [
"cuda"
],
"gpus": 1,
"gpu_memory_gb": 80,
"memory_gb": 64,
"disk_gb": 400,
"download_mb": 300000,
"variants": {
"bfloat16": {
"gpu_memory_gb": 80
},
"default": {
"devices": []
},
"eager": {
"devices": []
}
}
}
}
}
},
"outputs": {
"runtime": {
"compare": "exact"
},
"predicted_tokens": {
"compare": "exact"
},
"answer_logits": {
"compare": "allclose",
"atol": 0.0001,
"rtol": 0.0001
},
"training.loss": {
"compare": "allclose",
"atol": 0.0001,
"rtol": 0.0001
},
"training.gradients": {
"compare": "all_true"
},
"training.updated": {
"compare": "true"
}
}
}
|