From 79d409f21019686d2ac462ad6287c2cc92751120 Mon Sep 17 00:00:00 2001 From: xiaoye <50870160+xiaoyewww@users.noreply.github.com> Date: Fri, 6 Feb 2026 22:55:56 +0800 Subject: [PATCH] [diffusion] fix: offload text encoder model in image encoding stage (#18317) --- .../runtime/pipelines_core/stages/image_encoding.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sglang/multimodal_gen/runtime/pipelines_core/stages/image_encoding.py b/python/sglang/multimodal_gen/runtime/pipelines_core/stages/image_encoding.py index 9f579053e..b914da2c4 100644 --- a/python/sglang/multimodal_gen/runtime/pipelines_core/stages/image_encoding.py +++ b/python/sglang/multimodal_gen/runtime/pipelines_core/stages/image_encoding.py @@ -77,6 +77,7 @@ class ImageEncodingStage(PipelineStage): fields = [ "image_processor", "image_encoder", + "text_encoder", ] for field in fields: processor = getattr(self, field, None)