[ROCm][CI] Skip ROCm batch invalid-input test pending torch fix (#41572)
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
@@ -535,6 +535,12 @@ class SamplingParams(
|
|||||||
"stop strings are only supported when detokenize is True. "
|
"stop strings are only supported when detokenize is True. "
|
||||||
"Set detokenize=True to use stop."
|
"Set detokenize=True to use stop."
|
||||||
)
|
)
|
||||||
|
assert isinstance(self.bad_words, list)
|
||||||
|
if any(not bad_word for bad_word in self.bad_words):
|
||||||
|
raise ValueError(
|
||||||
|
f"bad_words cannot contain an empty string. "
|
||||||
|
f"Got bad_words={self.bad_words}"
|
||||||
|
)
|
||||||
|
|
||||||
def _verify_greedy_sampling(self) -> None:
|
def _verify_greedy_sampling(self) -> None:
|
||||||
if self.n > 1:
|
if self.n > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user