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
85986bb9
"vscode:/vscode.git/clone" did not exist on "e1f363463773c4fba379c11b1a00a5a20a53debd"
Unverified
Commit
85986bb9
authored
Feb 10, 2025
by
Yineng Zhang
Committed by
GitHub
Feb 10, 2025
Browse files
compatible with new outlines (#3435)
parent
64c87135
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
python/pyproject.toml
python/pyproject.toml
+2
-2
python/sglang/srt/constrained/outlines_backend.py
python/sglang/srt/constrained/outlines_backend.py
+4
-1
No files found.
python/pyproject.toml
View file @
85986bb9
...
@@ -25,8 +25,8 @@ runtime_common = [
...
@@ -25,8 +25,8 @@ runtime_common = [
]
]
srt
=
[
srt
=
[
"sglang[runtime_common]"
,
"cuda-python"
,
"sglang[runtime_common]"
,
"cuda-python"
,
"sgl-kernel>=0.0.3.post2"
,
"torch"
,
"vllm
=
=0.6.4.post1"
,
"sgl-kernel>=0.0.3.post2"
,
"torch"
,
"vllm
>
=0.6.4.post1
,<=0.7.2
"
,
"flashinfer_python>=0.2.0.post2"
,
"outlines>=0.0.44,<0.1.
0
"
"flashinfer_python>=0.2.0.post2"
,
"outlines>=0.0.44,<
=
0.1.
11
"
]
]
# HIP (Heterogeneous-computing Interface for Portability) for AMD
# HIP (Heterogeneous-computing Interface for Portability) for AMD
...
...
python/sglang/srt/constrained/outlines_backend.py
View file @
85986bb9
...
@@ -35,7 +35,10 @@ is_hip_ = is_hip()
...
@@ -35,7 +35,10 @@ is_hip_ = is_hip()
if
is_hip_
:
if
is_hip_
:
from
outlines_core.fsm.json_schema
import
build_regex_from_schema
from
outlines_core.fsm.json_schema
import
build_regex_from_schema
else
:
else
:
try
:
from
outlines.fsm.json_schema
import
build_regex_from_schema
from
outlines.fsm.json_schema
import
build_regex_from_schema
except
ImportError
:
from
outlines_core.fsm.json_schema
import
build_regex_from_schema
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
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