[Bugfix] Fix bug in fork logic caused by null text_ (#2835)

This commit is contained in:
Muqi Li
2025-01-11 05:37:00 +08:00
committed by GitHub
parent f290bd4332
commit 5413ec2bbe

View File

@@ -347,7 +347,7 @@ class StreamExecutor:
size: int = 1,
position_ids_offset: Optional[List[int]] = None,
):
if size > 1:
if size > 1 and str(self.text_):
self.submit(SglCommitLazy())
self.sync()