Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
67be11c7
Commit
67be11c7
authored
Feb 03, 2024
by
Ying Sheng
Browse files
fix bug of race condition in copy()
parent
cd8c3ccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
python/sglang/lang/interpreter.py
python/sglang/lang/interpreter.py
+2
-3
No files found.
python/sglang/lang/interpreter.py
View file @
67be11c7
...
...
@@ -252,9 +252,8 @@ class StreamExecutor:
return
ret
def
fork
(
self
,
number
:
int
,
position_ids_offset
:
Optional
[
List
[
int
]]
=
None
):
if
number
>
1
:
self
.
submit
(
SglCommitLazy
())
self
.
sync
()
self
.
submit
(
SglCommitLazy
())
self
.
sync
()
number
=
int
(
number
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment