nemo_automodel.components.models.deepseek_v41.vision

View as Markdown

Reuse the unchanged DeepSeek vision encoder with the V4.1 nested config.

Module Contents

Classes

NameDescription
DeepseekV41VisionAlignerThe released padded spatial merger and GELU projection into text width.
DeepseekV41VisionTransformerThe released full-attention 2D-RoPE ViT, configured by nested V4.1 fields.

Functions

NameDescription
_vision_configTranslate the typed V4.1 config into the existing vision implementation’s config.

API

class nemo_automodel.components.models.deepseek_v41.vision.DeepseekV41VisionAligner(
)

Bases: DeepseekV4VisionAligner

The released padded spatial merger and GELU projection into text width.

Parameters:

config
DeepseekV41Config

Top-level V4.1 configuration containing vision and text widths.

class nemo_automodel.components.models.deepseek_v41.vision.DeepseekV41VisionTransformer(
)

Bases: DeepseekV4VisionTransformer

The released full-attention 2D-RoPE ViT, configured by nested V4.1 fields.

Parameters:

config
DeepseekV41Config

Top-level V4.1 configuration containing the vision dimensions.

Translate the typed V4.1 config into the existing vision implementation’s config.