nemo_automodel.components.models.glm5_next.backend
nemo_automodel.components.models.glm5_next.backend
Runtime backend configuration owned by GLM-5.3-Flash.
Module Contents
Classes
Data
API
Bases: BackendConfig
Select mHC Sinkhorn independently of the sparse-attention backend.
Score generation for KPool selection. The cuDNN option keeps BF16 projections and PyTorch top-k, and requires CUDA and cuDNN DSA.
"torch" preserves eager FP32 normalization. "tilelang"
requires CUDA and the optional TileKernels package; an unavailable
kernel raises instead of silently falling back to PyTorch.
Return a private GLM config carrying backend’s values.
The model accepts the shared BackendConfig, which has no sinkhorn or indexer
field; those take their "torch" defaults here, once, so layers read them directly.
Every shared field is copied by value, and __post_init__ re-validates it.
Parameters:
A shared BackendConfig or a Glm5NextBackendConfig.
Returns: Glm5NextBackendConfig
A new Glm5NextBackendConfig; a Glm5NextBackendConfig input is shallow-copied.