misc: add pre-commit config (#637)
This commit is contained in:
@@ -312,8 +312,8 @@ def main(args: argparse.Namespace):
|
||||
np.sum([output_len for _, output_len, _ in REQUEST_LATENCY]) / benchmark_time
|
||||
)
|
||||
|
||||
#latencies = [round(latency, 2) for _, _, latency in REQUEST_LATENCY]
|
||||
#print(latencies)
|
||||
# latencies = [round(latency, 2) for _, _, latency in REQUEST_LATENCY]
|
||||
# print(latencies)
|
||||
|
||||
print(f"Total time: {benchmark_time:.2f} s")
|
||||
print(f"Request throughput: {args.num_prompts / benchmark_time:.2f} requests/s")
|
||||
|
||||
@@ -48,9 +48,9 @@ def generate_lines(random_words, num_lines, redirect_ratio):
|
||||
)
|
||||
for i in redirect_indices:
|
||||
target_idx = np.random.choice(min(i * 2 + 100, num_lines))
|
||||
lines[
|
||||
i
|
||||
] = f"Line {indices[i]}: The REGISTER_CONTENT is the same as Line {indices[target_idx]}."
|
||||
lines[i] = (
|
||||
f"Line {indices[i]}: The REGISTER_CONTENT is the same as Line {indices[target_idx]}."
|
||||
)
|
||||
redirects[i] = target_idx
|
||||
|
||||
# Build links and find sources
|
||||
|
||||
Reference in New Issue
Block a user