SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.14200 · 2026

How to Scale Mixture-of-Experts: From µP to the Maximally Scale-Stable Parameterization

Moritz Haas, Sebastian Bordt, Leena Chennuru Vankadara, Luke Hayward, Alessandro Breccia, Emb Sgd Lr N N N, Emb Lr, Emb Adam Ε N -1 N -1 N -1 Pre-Ln, Init Std, Pre-Ln Adam, Adam Ε N -1 L -1 N -1 L -1 N -1 L -

arXiv · PDF · Open in the Atlas

Code that ran

14 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 9 have no contract verdict; 3 failures of our instrument; 11 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.14200.json · badge: /api/ran/2605.14200.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
vankadara-lab/mssp-moe community
Papers with Code archive
14 ran · 11 no recorded run
FunctionStatusWhere it lives
CausalSelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("79206b63d6c2a4cc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, CausalSelfAttention: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.nn import RMSNorm

torch.manual_seed(0)

# Define a minimal config class with all required attributes
class Config:
    def __init__(self):
        self.n_embd = 16
        self.n_head = 4
        self.attn_bias = False
        self.qk_norm = True
        self.rms_norm_epsilon = 1e-6
        self.rope_rotary_percentage = 1.0

# Create config instance
config = Config()

# Create tiny input tensor: (batch=2, seq_len=3, embedding_dim=16)
x = torch.randn(2, 3, 16)

# Create cos and sin tensors for RoPE
# These should have shape (seq_len, head_dim // 2) or be broadcastable
# The apply_rope function expects them to broadcast with q/k which have shape
# (batch, n_head, seq_len, head_dim)
head_dim = config.n_embd // config.n_head  # 4
rope_n_elem = int(head_dim * config.rope_rotary_percentage)  # 4
cos = torch.randn(1, 1, 3, rope_n_elem)  # (1, 1, seq_len, rope_n_elem)
sin = torch.randn(1, 1, 3, rope_n_elem)  # (1, 1, seq_len, rope_n_elem)

# Define ARGS dictionary mapping all parameters
ARGS = {
    'config': config,
    'scaling_config': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CausalSelfAttention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CausalSelfAttention output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Expert Ran
ran on a synthesized input · constructed an object; no result was computed
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("eb4439589ee0f401")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Expert: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Config:
    def __init__(self):
        self.n_embd = 8
        self.moe_ratio = 2.0
        self.bias = True
        self.expert_hidden_forward_mult = 1.5

config = Config()

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Expert — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Expert output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("89edafb2b7dd86d4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MLP: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Config:
    def __init__(self):
        self.n_embd = 4
        self.mlp_ratio = 2
        self.bias = True
        self.dense_hidden_forward_mult = 1.5

config = Config()

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLP output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MLPExperts Ran
ran on a synthesized input · constructed an object; no result was computed
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("0701f790e1bfa186")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MLPExperts: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Config:
    def __init__(self):
        self.n_embd = 4
        self.n_exp = 2
        self.moe_ratio = 0.5
        self.bias = True
        self.expert_hidden_forward_mult = 1.0

config = Config()

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MLPExperts — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLPExperts output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MOEManager Ran
ran on a synthesized input · constructed an object; no result was computed
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("d6fd8fe0a21c5705")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MOEManager: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
torch.manual_seed(0)

# MOEManager has no parameters in __init__, so ARGS is empty
ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MOEManager — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MOEManager output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MupBottleneck Ran
ran on a synthesized input
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("c4dfde8cc3a53a1e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# ScalingConfig and related classes are defined above
# Now we construct and call MupBottleneck

class SimpleConfig:
    """Minimal config object for testing."""
    def __init__(self, n_embd=256, n_exp=8):
        self.n_embd = n_embd
        self.n_exp = n_exp

INIT_ARGS = {}

ARGS = {
    'role': 'expert_down',
    'param': torch.randn(4, 3),
    'fan_in': 4,
    'fan_out': 3,
    'config': SimpleConfig(n_embd=256, n_exp=8)
}

METHOD = 'init_weight'

def construct_and_call():
    config_obj = SimpleConfig(n_embd=256, n_exp=8)
    scaler = MupBottleneck(**INIT_ARGS)
    
    param = torch.randn(4, 3)
    scaler.init_weight(
        role=ARGS['role'],
        param=param,
        fan_in=ARGS['fan_in'],
        fan_out=ARGS['fan_out'],
        config=ARGS['config']
    )
    
    return scaler, param

if __name__ == '__main__':
    scaler, param = construct_and_call()
    print("MupBottleneck instance created and init_weight called successfully")
    print(f"Parameter shape: {param.shape}")
    print(f"Parameter std: {param.std().item():.6f}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MupDense Ran
ran on a synthesized input
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("cb99fcd3b1f748d2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# MupDense has no __init__ parameters beyond the implicit 'self'
INIT_ARGS = {}

# Create a minimal config object with the required attribute
class MockConfig:
    def __init__(self):
        self.n_embd = 8

config = MockConfig()

# Create a small test parameter tensor
param = torch.randn(6, 5)

# ARGS for the method we want to test
# We'll test init_weight since it's the main computation method
METHOD = 'init_weight'

ARGS = {
    'role': 'mlp',
    'param': param,
    'fan_in': 5,
    'fan_out': 6,
    'config': config
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MupFixedE Ran
ran on a synthesized input · constructed an object; no result was computed
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("b0c26f0b82672510")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MupFixedE: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

class StandInConfig:
    """Stand-in config class with required attributes."""
    def __init__(self):
        self.n_embd = 256

ARGS = {
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MupFixedE — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MupFixedE output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ScalingConfig Ran
ran on a synthesized input
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("c4751b9b12f74641")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

class ScalingConfig:
    """Base class for scaling configurations.

    Subclasses override methods to define initialization, per-group LR, and
    forward-pass multipliers.  The base implementation provides a simple
    default (normal init with std=0.02, flat LR, standard attention scaling).
    """
    BASE_WIDTH = 256
    BASE_EXPERTS = 8

    @torch.no_grad()
    def init_weight(self, role: str, param: torch.Tensor, fan_in: int, fan_out: int, config) -> None:
        """Initialize a weight tensor in-place."""
        torch.nn.init.normal_(param, mean=0.0, std=0.02)

    @torch.no_grad()
    def init_bias(self, param: torch.Tensor) -> None:
        """Initialize a bias tensor in-place."""
        torch.nn.init.zeros_(param)

    def lr_scale(self, role: str, config) -> float:
        """LR multiplier for this parameter role.  Default: 1.0."""
        return 1.0

    def eps_scale(self, role: str, config) -> float:
        """Epsilon multiplier for this parameter role.  Default: 1.0."""
        return 1.0

    def attn_scale(self, head_dim: int, config) -> float | None:
        """Attention logit scale passed to scaled_dot_product_attention.

        Return ``None`` to use PyTorch's default (1 / sqrt(head_dim)).
        """
        return None

    def output_logit_scale(self, config) -> float:
        """Multiplier applied to hidden states before the lm_head projection."""
        return 1.0

    def input_embed_scale(self, config) -> float:
        """Multiplier applied to the embedding output."""
        return 1.0


INIT_ARGS = {}

ARGS = {
    "role": "embedding",
    "param": torch.randn(4, 3),
    "fan_in": 4,
    "fan_out": 3,
    "config": {"hidden_size": 64, "num_heads": 2}
}

METHOD = "init_weight"

if __name__ == "__main__":
    config_obj = ScalingConfig(**INIT_ARGS)
    config_obj.init_weight(**ARGS)
    print("ScalingConfig.init_weight executed successfully")
    
    lr = config_obj.lr_scale("embedding", ARGS["config"])
    print(f"lr_scale result: {lr}")
    
    eps = config_obj.eps_scale("embedding", ARGS["config"])
    print(f"eps_scale result: {eps}")
    
    attn = config_obj.attn_scale(64, ARGS["config"])
    print(f"attn_scale result: {attn}")
    
    output_scale = config_obj.output_logit_scale(ARGS["config"])
    print(f"output_logit_scale result: {output_scale}")
    
    embed_scale = config_obj.input_embed_scale(ARGS["config"])
    print(f"input_embed_scale result: {embed_scale}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
apply_rope Ran
ran; our contract draft was wrong, not the code
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("5d32ec6879733f85")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create test tensors
batch_size = 2
head_size = 4
seq_len = 3

# x: shape (batch_size, seq_len, head_size)
x = torch.randn(batch_size, seq_len, head_size, dtype=torch.float32)

# cos: shape (seq_len, head_size) - used for element-wise multiplication
cos = torch.randn(seq_len, head_size, dtype=torch.float32)

# sin: shape (seq_len, head_size) - used for element-wise multiplication
sin = torch.randn(seq_len, head_size, dtype=torch.float32)

ARGS = {
    "x": x,
    "cos": cos,
    "sin": sin,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_rope_cache Ran
ran, honoured the contract we drafted
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("60caeaf416ffdf78")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "seq_len": 8,
    "n_elem": 4,
    "device": None,
    "base": 10000,
    "condense_ratio": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
classify_parameter Ran
ran; our contract draft was wrong, not the code
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("5bc29c2859687b6c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'name': 'transformer.h.0.attn.c_attn.weight'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_fans Ran
ran; our contract draft was wrong, not the code
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("68a803a8db3489f0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a 2D tensor for nn.Linear weights [out, in]
linear_weight = torch.randn(5, 3)

# Create a 2D tensor for nn.Embedding weights [num_embeddings, embedding_dim]
embedding_weight = torch.randn(7, 4)

# Create a 3D tensor for batched expert parameters [n_exp, in, out]
expert_weight = torch.randn(2, 6, 8)

# Create a 1D tensor (should return (1, 1))
bias = torch.randn(4)

ARGS = {
    "param": linear_weight,
    "role": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_input_like Ran
ran, violated the contract we drafted
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("4053fe32ebf78105")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'role': 'embedding'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Block Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("6a082740ae6a704b")
How it ran

no invocation recorded.

GPT Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("c21ab39f1c8ed9db")
How it ran

no invocation recorded.

MonitorMoELayer Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("908e9b4c72c5ccfd")
How it ran

no invocation recorded.

MupAllScale Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("137a06276c29cba3")
How it ran

no invocation recorded.

MupBaselineAllScale Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("731519ad66b94ad5")
How it ran

no invocation recorded.

MupBottleneckNoExpertDownInit Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("e46ca229f04a0481")
How it ran

no invocation recorded.

NanoMoELayer Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("0401dd09f1f20363")
How it ran

no invocation recorded.

Router Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("b19d401a089c2b4d")
How it ran

no invocation recorded.

SoftMoELayer Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("0d725e3597c5b8d0")
How it ran

no invocation recorded.

StandardScaling Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("03ca8589472f37ff")
How it ran

no invocation recorded.

get_scaling_config Not yet run
unverified (harvested, no recorded run)
vankadara-lab/mssp-moe/transformer-moe-experiments/model.py
code served (permissive licence) · get_code("f9f552a09c0196b1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 25 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent frontier large language models predominantly rely on Mixture-of-Experts (MoE) architectures. Despite empirical progress, there is still no principled understanding of how hyperparameters should scale with network width N , expert width N e , number of experts M , sparsity K, and depth L to ensure both stability and optimal performance at scale. We take a principled step toward resolving this gap by analyzing three different scaling regimes: (I) co-scaling N ≍ N e , (II) co-scaling N ≍ M ≍ K, and (III) full proportional scaling of N, N e , M , and K. For each regime, we develop a novel Dynamical Mean Field Theory (DMFT) description of the limiting training dynamics of MoEs that provides a formal foundation for our analysis. Within this framework, we derive the unique parameterization for SGD and Adam satisfying all maximal-update (µ) desiderata. We then show that the resulting µP prescription does not reliably induce monotonic improvement with scale or robust learning-rate transfer. We trace these pathologies to scaledependent observables in the aggregation dynamics, which motivates a refined set of desiderata that we term maximal scale stability. Guided by this principle, we derive a Maximally Scale-Stable Parameterization (MSSP) for both SGD and Adam in all three scaling regimes, and characterize the corresponding limiting dynamics -qualitatively distinct from the µP limit -through a separate DMFT analysis. Experiments verify that MSSP robustly recovers learning rate transfer and monotonic improvement with scale across regimes. Combined with existing depth-scaling theory, these results provide a complete scaling prescription for MoE architectures as a function of width, depth, expert width, and number of experts.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.14200")
get_code_for_paper("2605.14200")
have("2605.14200")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.14200.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.14200.svg)](https://syntology.ai/paper/2605.14200)

Connect an agent — have() is free.