We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8238b90 commit cb4bf2eCopy full SHA for cb4bf2e
src/guidellm/benchmark/profile.py
@@ -253,9 +253,9 @@ def from_standard_args( # type: ignore[override]
253
if not isinstance(rate, Sequence):
254
rate = [rate]
255
256
- if not all(r.is_integer() and r > 0 for r in rate):
+ if not all(isinstance(r, (float, int)) and r > 0 for r in rate):
257
raise ValueError(
258
- f"All rate values must be positive integers, received {rate}"
+ f"All rate values must be positive numbers, received {rate}"
259
)
260
261
if rate_type == "async":
0 commit comments