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
87a7cfa0
Unverified
Commit
87a7cfa0
authored
Oct 23, 2024
by
Lianmin Zheng
Committed by
GitHub
Oct 23, 2024
Browse files
Fix MockTokenizer in the unit tests (#1774)
parent
8f8f96a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/test/srt/sampling/penaltylib/utils.py
python/sglang/test/srt/sampling/penaltylib/utils.py
+1
-0
No files found.
python/sglang/test/srt/sampling/penaltylib/utils.py
View file @
87a7cfa0
...
...
@@ -24,6 +24,7 @@ class MockSamplingParams:
@
dataclasses
.
dataclass
class
MockTokenizer
:
eos_token_id
:
int
additional_stop_token_ids
:
typing
.
Optional
[
typing
.
List
[
int
]]
=
None
@
dataclasses
.
dataclass
...
...
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