Disable fixed random seed in benchmark_dataset.py (#7263)

Commented out the random seed initialization to allow for varied randomness in benchmarks.
This commit is contained in:
Zhang Yulong
2026-04-10 13:56:14 +08:00
committed by GitHub
parent e327673737
commit 7614175e13
+1 -1
View File
@@ -855,7 +855,7 @@ class RandomTokenDataset(BenchmarkDataset):
sampled_input_len = sample_len(random_input_len, random_range_ratio)
sampled_output_len = sample_len(random_output_len, random_range_ratio)
random.seed(21)
# random.seed(21)
token_ids = [random.randint(2000, 10000) for _ in range(sampled_input_len)]
# prompt_text = " ".join(words)