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
935cda94
Unverified
Commit
935cda94
authored
Mar 03, 2025
by
Lianmin Zheng
Committed by
GitHub
Mar 03, 2025
Browse files
Misc clean up; Remove the support of jump forward (#4032)
parent
110e0066
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
test/srt/test_regex_constrained.py
test/srt/test_regex_constrained.py
+0
-17
No files found.
test/srt/test_regex_constrained.py
View file @
935cda94
...
@@ -3,8 +3,6 @@ python3 -m unittest test_regex_constrained.TestRegexConstrained.test_regex_gener
...
@@ -3,8 +3,6 @@ python3 -m unittest test_regex_constrained.TestRegexConstrained.test_regex_gener
python3 -m unittest test_regex_constrained.TestRegexConstrained.test_regex_generate_greeting
python3 -m unittest test_regex_constrained.TestRegexConstrained.test_regex_generate_greeting
python3 -m unittest test_regex_constrained.TestRegexConstrainedLLGuidance.test_regex_generate_email
python3 -m unittest test_regex_constrained.TestRegexConstrainedLLGuidance.test_regex_generate_email
python3 -m unittest test_regex_constrained.TestRegexConstrainedLLGuidance.test_regex_generate_greeting
python3 -m unittest test_regex_constrained.TestRegexConstrainedLLGuidance.test_regex_generate_greeting
python3 -m unittest test_regex_constrained.TestJumpForwardLLGuidance.test_regex_generate_email
python3 -m unittest test_regex_constrained.TestJumpForwardLLGuidance.test_regex_generate_greeting
"""
"""
import
json
import
json
...
@@ -47,7 +45,6 @@ class TestRegexConstrained(unittest.TestCase):
...
@@ -47,7 +45,6 @@ class TestRegexConstrained(unittest.TestCase):
@
classmethod
@
classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
setup_class
(
cls
,
"xgrammar"
,
disable_overlap
=
False
)
setup_class
(
cls
,
"xgrammar"
,
disable_overlap
=
False
)
cls
.
check_jump_forward
=
False
@
classmethod
@
classmethod
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
...
@@ -179,20 +176,6 @@ class TestRegexConstrained(unittest.TestCase):
...
@@ -179,20 +176,6 @@ class TestRegexConstrained(unittest.TestCase):
)
)
class
TestJumpForward
(
TestRegexConstrained
):
@
classmethod
def
setUpClass
(
cls
):
setup_class
(
cls
,
"xgrammar"
,
disable_overlap
=
True
)
cls
.
check_jump_forward
=
True
class
TestJumpForwardLLGuidance
(
TestRegexConstrained
):
@
classmethod
def
setUpClass
(
cls
):
setup_class
(
cls
,
"llguidance"
,
disable_overlap
=
True
)
cls
.
check_jump_forward
=
True
class
TestRegexConstrainedLLGuidance
(
TestRegexConstrained
):
class
TestRegexConstrainedLLGuidance
(
TestRegexConstrained
):
@
classmethod
@
classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
...
...
Prev
1
2
3
Next
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