Skip to content

Commit

Permalink
Fix StreamExecutor.fork() losing the current role start index. (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
max99x authored Jul 21, 2024
1 parent 77e592e commit 5ad033a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sglang/lang/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def fork(
exes[i].text_ = str(self.text_)
exes[i].messages_ = list(self.messages_)
exes[i].cur_role = self.cur_role
exes[i].cur_role_begin_pos = self.cur_role_begin_pos
exes[i].fork_start_text_pos = len(self.text_)
exes[i].images_ = list(self.images_)

Expand Down

0 comments on commit 5ad033a

Please sign in to comment.