Add GLM MoE Metal active expert patches - #1063
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthroughGLM MoE Metal execution now defaults to two-phase mode, supports terminal diagnostics and explicit selector flags, skips inactive or zero-weight slots, adds active-count Q3 kernels, applies maximum-active policies to dispatch and roofline paths, and expands backend evaluation and performance coverage. ChangesGLM MoE Metal execution
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant GLMActivePolicy
participant MetalOps
participant PipelineSelector
participant MetalKernel
GLMActivePolicy->>MetalOps: set maximum active experts
MetalOps->>PipelineSelector: select active-count Q3 pipeline
PipelineSelector->>MetalKernel: dispatch active2, active4, or active6 kernel
MetalKernel->>MetalKernel: process only active slots
Suggested labels: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Why
This keeps the GLM MoE performance work separate from the core GLM-DSA architecture and IndexShare support. The GLM-DSA foundation has landed in #1034; this PR is the next layer.
Validation
LLAMA_WORKDIR=$(mktemp -d /tmp/mesh-llm-llama.XXXXXX) scripts/prepare-llama.sh pinnedSummary by CodeRabbit
Performance
Diagnostics