//clika-runtime/io.clika.runtime/MoeRouting
MoeRouting
[common]
enum MoeRouting : Enum<MoeRouting>
Mixture-of-Experts routing: how the router logits select the top-k experts and produce the combine weights. Values are PINNED (ABI).
Entries
| SOFTMAX_TOPK | [common] SOFTMAX_TOPK softmax over all experts, then top-k (Mixtral / Qwen / gemma) |
| TOPK_SOFTMAX | [common] TOPK_SOFTMAX top-k of the raw logits, then softmax over the k |
| SIGMOID | [common] SIGMOID per-expert sigmoid, then top-k |
| SIGMOID_GROUP_TOPK | [common] SIGMOID_GROUP_TOPK sigmoid + selection bias, group-limited (DeepSeek-V3) |
| SPARSE_MIXER | [common] SPARSE_MIXER sparse-mixer top-2 (Phi-3.5-MoE) |
| PRE_COMPUTED | [common] PRE_COMPUTED the logits are already the probability grid |
Types
| Name | Summary |
|---|---|
| Companion | [common] object Companion |
Properties
| Name | Summary |
|---|---|
| code | [common] val code: Int |
| name | [common] val name: String |
| ordinal | [common] val ordinal: Int |
Functions
| Name | Summary |
|---|---|
| valueOf | [common] fun valueOf(value: String): MoeRouting Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| values | [common] fun values(): Array<MoeRouting> Returns an array containing the constants of this enum type, in the order they're declared. |