Skip to content

vllm.model_executor.models.dory

Dory: normalized latent recurrent transformer.

Classes:

  • DoryAttention –

    GQA attention with nGPT qk-norm, output gate, and fngpt justnorm.

  • DoryDecoderLayer –

    One physical layer: a single sublayer (attention OR mlp) + slerp residual.

  • DoryMLP –

    SwiGLU with nGPT suv scaling and fngpt justnorm.

Functions:

  • justnorm –

    NGPT normalization: x * rsqrt(sum(x^2) + eps), fp32 accumulation.

DoryAttention

Bases: Module

GQA attention with nGPT qk-norm, output gate, and fngpt justnorm.

DoryDecoderLayer

Bases: Module

One physical layer: a single sublayer (attention OR mlp) + slerp residual.

DoryMLP

Bases: Module

SwiGLU with nGPT suv scaling and fngpt justnorm.

justnorm(x, dim=-1)

NGPT normalization: x * rsqrt(sum(x^2) + eps), fp32 accumulation.