{"record":{"id":"b3e35b3f68a856fe","repo":"hpcaitech/Open-Sora","slug":"context-module-context-module-is-not-supported","errorCode":null,"errorMessage":"context_module {context_module} is not supported","messagePattern":"context_module (.+?) is not supported","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"opensora/models/dc_ae/models/nn/ops.py","lineNumber":855,"sourceCode":"        local_module: str = \"MBConv\",\n        is_video: bool = False,\n    ):\n        super().__init__()\n        if context_module == \"LiteMLA\":\n            self.context_module = ResidualBlock(\n                LiteMLA(\n                    in_channels=in_channels,\n                    out_channels=in_channels,\n                    heads_ratio=heads_ratio,\n                    dim=dim,\n                    norm=(None, norm),\n                    scales=scales,\n                    is_video=is_video,\n                ),\n                IdentityLayer(),\n            )\n        else:\n            raise ValueError(f\"context_module {context_module} is not supported\")\n        if local_module == \"MBConv\":\n            self.local_module = ResidualBlock(\n                MBConv(\n                    in_channels=in_channels,\n                    out_channels=in_channels,\n                    expand_ratio=expand_ratio,\n                    use_bias=(True, True, False),\n                    norm=(None, None, norm),\n                    act_func=(act_func, act_func, None),\n                    is_video=is_video,\n                ),\n                IdentityLayer(),\n            )\n        elif local_module == \"GLUMBConv\":\n            self.local_module = ResidualBlock(\n                GLUMBConv(\n                    in_channels=in_channels,\n                    out_channels=in_channels,","sourceCodeStart":837,"sourceCodeEnd":873,"githubUrl":"https://github.com/hpcaitech/Open-Sora/blob/7ad6a96a135feb81f755c84fb391818718f6beb2/opensora/models/dc_ae/models/nn/ops.py#L837-L873","documentation":"EfficientViTBlock's constructor only supports specific context_module names (the recognized lightweight attention/context variants); an unrecognized string raises this ValueError at model build time. This is a config-vocabulary error in the dc_ae architecture definition.","triggerScenarios":"Setting context_module to an unsupported/misspelled value (e.g. 'SelfAttention', 'ViT', 'cross_attn') in an EViTS5_GLU block config; raised when DCAE builds its stages via build_block.","commonSituations":"Hand-writing architecture configs or porting block definitions from the EfficientViT repo where names differ.","solutions":["Use a supported context_module name as defined in the branches of EfficientViTBlock.__init__","Instantiate from a shipped DCAE config rather than constructing blocks manually","Match the opensora version to the config's origin"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"SUPPORTED_CONTEXT = {' LightweightCrossAttention', ...}  # mirror EfficientViTBlock branches\nassert context_module in SUPPORTED_CONTEXT, context_module","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Whitelist block submodule names at config load","Construct models from shipped configs"],"tags":["config","dc-ae","efficient-vit","validation"],"backgroundTag":"invalid-config-value","analyzedSha":"7ad6a96a135feb81f755c84fb391818718f6beb2","analyzedAt":"2026-08-28T16:58:37.171Z","schemaVersion":2},"datasetVersion":"2026-08-28T21:17:43.275Z"}