Skip to content

Commit

Permalink
fix bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayon02 committed Feb 27, 2025
1 parent 83984d3 commit 503b3d3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/unit/models/llms/test_sglang.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ class TestSGLang:
"logprobs": [
[
[
{"token": "I'm", "logprob": -1},
{"token": "Hello", "logprob": -3},
{"token": "thank", "logprob": -1},
{"token": "you", "logprob": -3},
],
[
{"token": "I'm", "logprob": -1},
{"token": "Hello", "logprob": -3},
{"token": "thank", "logprob": -1},
{"token": "you", "logprob": -3},
],
]
],
Expand All @@ -145,12 +145,12 @@ class TestSGLang:
"logprobs": [
[
[
{"token": "I'm", "logprob": -1},
{"token": "Hello", "logprob": -3},
{"token": "thank", "logprob": -1},
{"token": "you", "logprob": -3},
],
[
{"token": "I'm", "logprob": -1},
{"token": "Hello", "logprob": -3},
{"token": "thank", "logprob": -1},
{"token": "you", "logprob": -3},
],
]
]
Expand Down Expand Up @@ -187,8 +187,8 @@ def test_generate(
"meta_info": {
"completion_tokens": 6,
"output_top_logprobs": [
[(-1, 1, "I'm"), (-3, 2, "Hello")],
[(-1, 1, "I'm"), (-3, 2, "Hello")],
[(-1, 6979, "thank"), (-3, 368, "you")],
[(-1, 6979, "thank"), (-3, 368, "you")],
],
},
}
Expand Down

0 comments on commit 503b3d3

Please sign in to comment.