Reduce logs in CLI scripts and plugin loader (#18970)

Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
Michael Goin
2025-06-03 06:00:45 +00:00
committed by GitHub
parent 17430e3653
commit cc977286e7
5 changed files with 19 additions and 15 deletions
+3 -3
View File
@@ -328,9 +328,9 @@ class RandomDataset(BenchmarkDataset):
output_high = int(output_len * (1 + range_ratio))
# Add logging for debugging
logger.info("Sampling input_len from [%s, %s]", input_low, input_high)
logger.info("Sampling output_len from [%s, %s]", output_low,
output_high)
logger.info(
"Sampling input_len from [%s, %s] and output_len from [%s, %s]",
input_low, input_high, output_low, output_high)
input_lens = np.random.randint(input_low,
input_high + 1,
-2
View File
@@ -78,7 +78,6 @@ def add_cli_args(parser: argparse.ArgumentParser):
def main(args: argparse.Namespace):
print(args)
if args.profile and not envs.VLLM_TORCH_PROFILER_DIR:
raise OSError(
"The environment variable 'VLLM_TORCH_PROFILER_DIR' is not set. "
@@ -101,7 +100,6 @@ def main(args: argparse.Namespace):
max_tokens=args.output_len,
detokenize=not args.disable_detokenize,
)
print(sampling_params)
dummy_prompt_token_ids = np.random.randint(10000,
size=(args.batch_size,
args.input_len))
-1
View File
@@ -527,7 +527,6 @@ def main(args: argparse.Namespace):
validate_args(args)
if args.seed is None:
args.seed = 0
print(args)
random.seed(args.seed)
# Sample the requests.
tokenizer = AutoTokenizer.from_pretrained(