| { | |
| "id": "cur_moe_compressor", | |
| "name": "CUR-MoE Compressor: apply CUR cross-approximation to Mixture of Experts (Mo", | |
| "file": "Codes/framework/compression_engine/cur_moe_compressor.py", | |
| "type": "Compression Engine", | |
| "category": "Mixture of Experts & Routing", | |
| "paradigm": "moe", | |
| "icon": "\ud83d\udd00", | |
| "description": "CUR-MoE Compressor: apply CUR cross-approximation to Mixture of Experts (MoE) modules and expert layers. Registered in COMPRESSOR_REGISTRY as 'cur_moe' and 'cur_moe_compressor'.", | |
| "classes": [ | |
| "CURMoECompressor" | |
| ], | |
| "methods_count": 7, | |
| "math_latex": "W \\approx C \\cdot U \\cdot R, \\quad C = W_{[:, J]}, \\; R = W_{[I, :]}, \\; U = C^\\dagger W R^\\dagger", | |
| "components": [ | |
| { | |
| "id": "router", | |
| "name": "Top-K Gating Router", | |
| "role": "Sparse Token Dispatch", | |
| "shape_transform": "[K \u00d7 d_in] Softmax", | |
| "color": "#b57ee0", | |
| "math_latex": "G(x) = \\text{Softmax}(\\text{TopK}(x W_g, K=2))" | |
| }, | |
| { | |
| "id": "expert_0", | |
| "name": "Specialized Feed-Forward Expert 0", | |
| "role": "Semantic Representation Subspace", | |
| "shape_transform": "[d_ffn // 2 \u00d7 d_in]", | |
| "color": "#c084fc", | |
| "math_latex": "E_0(x) = \\text{GELU}(x W_{0,1} + b_{0,1}) W_{0,2} + b_{0,2}" | |
| }, | |
| { | |
| "id": "expert_1", | |
| "name": "Specialized Feed-Forward Expert 1", | |
| "role": "Semantic Representation Subspace", | |
| "shape_transform": "[d_ffn // 2 \u00d7 d_in]", | |
| "color": "#a855f7", | |
| "math_latex": "E_1(x) = \\text{GELU}(x W_{1,1} + b_{1,1}) W_{1,2} + b_{1,2}" | |
| }, | |
| { | |
| "id": "expert_2", | |
| "name": "Specialized Feed-Forward Expert 2", | |
| "role": "Semantic Representation Subspace", | |
| "shape_transform": "[d_ffn // 2 \u00d7 d_in]", | |
| "color": "#9333ea", | |
| "math_latex": "E_2(x) = \\text{GELU}(x W_{2,1} + b_{2,1}) W_{2,2} + b_{2,2}" | |
| }, | |
| { | |
| "id": "expert_3", | |
| "name": "Specialized Feed-Forward Expert 3", | |
| "role": "Semantic Representation Subspace", | |
| "shape_transform": "[d_ffn // 2 \u00d7 d_in]", | |
| "color": "#7e22ce", | |
| "math_latex": "E_3(x) = \\text{GELU}(x W_{3,1} + b_{3,1}) W_{3,2} + b_{3,2}" | |
| } | |
| ], | |
| "model_projections": { | |
| "distilbert": { | |
| "hidden_size": 768, | |
| "intermediate_size": 3072, | |
| "baseline_layer_params": 6488064, | |
| "compressed_layer_params": 11206656, | |
| "savings_ratio": 0.58 | |
| }, | |
| "roberta": { | |
| "hidden_size": 768, | |
| "intermediate_size": 3072, | |
| "baseline_layer_params": 6488064, | |
| "compressed_layer_params": 11206656, | |
| "savings_ratio": 0.58 | |
| }, | |
| "gpt2": { | |
| "hidden_size": 768, | |
| "intermediate_size": 3072, | |
| "baseline_layer_params": 6488064, | |
| "compressed_layer_params": 11206656, | |
| "savings_ratio": 0.58 | |
| }, | |
| "qwen": { | |
| "hidden_size": 896, | |
| "intermediate_size": 4864, | |
| "baseline_layer_params": 11124736, | |
| "compressed_layer_params": 19841024, | |
| "savings_ratio": 0.56 | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 2.99 kB
- Xet hash:
- cd2604c01cb65fcc98a7b8be7e10d9de478bf82923ca52be5c922c3b71d495bb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.