mirror of
https://github.com/wassname/vllm.git
synced 2026-08-18 12:30:29 +08:00
[Bugfix] fix crash if max_tokens=None (#2570)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""Tests for the SamplingParams class.
|
||||
"""
|
||||
from vllm import SamplingParams
|
||||
|
||||
|
||||
def test_max_tokens_none():
|
||||
"""max_tokens=None should be allowed"""
|
||||
SamplingParams(temperature=0.01, top_p=0.1, max_tokens=None)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import pytest
|
||||
pytest.main([__file__])
|
||||
Reference in New Issue
Block a user