---
title: "MoeRouting"
sidebar_label: "MoeRouting"
description: "Kotlin binding reference: MoeRouting."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[MoeRouting](index.md)

# MoeRouting

[common]\
enum [MoeRouting](index.md) : [Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)&lt;[MoeRouting](index.md)&gt; 

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](SOFTMAX_TOPK/index.md) | [common]<br>[SOFTMAX_TOPK](SOFTMAX_TOPK/index.md)<br>softmax over all experts, then top-k (Mixtral / Qwen / gemma) |
| [TOPK_SOFTMAX](TOPK_SOFTMAX/index.md) | [common]<br>[TOPK_SOFTMAX](TOPK_SOFTMAX/index.md)<br>top-k of the raw logits, then softmax over the k |
| [SIGMOID](SIGMOID/index.md) | [common]<br>[SIGMOID](SIGMOID/index.md)<br>per-expert sigmoid, then top-k |
| [SIGMOID_GROUP_TOPK](SIGMOID_GROUP_TOPK/index.md) | [common]<br>[SIGMOID_GROUP_TOPK](SIGMOID_GROUP_TOPK/index.md)<br>sigmoid + selection bias, group-limited (DeepSeek-V3) |
| [SPARSE_MIXER](SPARSE_MIXER/index.md) | [common]<br>[SPARSE_MIXER](SPARSE_MIXER/index.md)<br>sparse-mixer top-2 (Phi-3.5-MoE) |
| [PRE_COMPUTED](PRE_COMPUTED/index.md) | [common]<br>[PRE_COMPUTED](PRE_COMPUTED/index.md)<br>the logits are already the probability grid |

## Types

| Name | Summary |
|---|---|
| [Companion](Companion/index.md) | [common]<br>object [Companion](Companion/index.md) |

## Properties

| Name | Summary |
|---|---|
| [code](code.md) | [common]<br>val [code](code.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [name](../PaddingSide/LEFT/index.md) | [common]<br>val [name](../PaddingSide/LEFT/index.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [ordinal](../PaddingSide/LEFT/index.md) | [common]<br>val [ordinal](../PaddingSide/LEFT/index.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |

## Functions

| Name | Summary |
|---|---|
| [valueOf](valueOf.md) | [common]<br>fun [valueOf](valueOf.md)(value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [MoeRouting](index.md)<br>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](values.md) | [common]<br>fun [values](values.md)(): [Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)&lt;[MoeRouting](index.md)&gt;<br>Returns an array containing the constants of this enum type, in the order they're declared. |