mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user