test_sampling_params.py 294 B

12345678910111213
  1. """Tests for the SamplingParams class.
  2. """
  3. from aphrodite import SamplingParams
  4. def test_max_tokens_none():
  5. """max_tokens=None should be allowed"""
  6. SamplingParams(temperature=0.01, top_p=0.1, max_tokens=None)
  7. if __name__ == "__main__":
  8. import pytest
  9. pytest.main([__file__])