N Neurarch All checks Caught bugs Data Docs Open the app

Checks / structure

Matryoshka prefix wider than the embedding

Check R37. Runs in the editor as you build, in CI through the GitHub Action, and over the wire at POST /api/v1/check. Milliseconds, before any GPU is billed.

block structure R37
TriggerA matryoshkaHead lists a nestedDims entry greater than its own embedDim.
WhyThe head's entire contract is that embedding[:d] is usable on its own for each listed d. A d larger than the width names a prefix that does not exist, so a caller who truncates to it silently gets the full width instead and indexes at a size nobody chose. There is no reading of the graph under which a prefix longer than the whole was meant.
SourceKusupati et al. 2022, Matryoshka Representation Learning.

Why it is not a lint you can ignore

A structural mistake does not fail at review time and it does not fail at import time. It fails when the module is constructed on the training node, after the job was queued and the dataset was downloaded. That is why this runs before the spend and not after it.
Run this check on your own model Free, no account needed

Every check

41 structural checks: 6 guardrail gates and 35 architecture advisor rules. See the full catalogue.

← R36 Predictive branch with no stop-gradient on the target