[ROCm][CI] Skip ROCm batch invalid-input test pending torch fix (#41572)

Signed-off-by: Andreas Karatzas <[email protected]>
This commit is contained in:
Andreas Karatzas
2026-05-13 18:50:47 +08:00
committed by GitHub
parent 74dffae666
commit d628a3c5cb
+6
View File
@@ -535,6 +535,12 @@ class SamplingParams(
"stop strings are only supported when detokenize is True. "
"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:
if self.n > 1: