Skip to content

Commit

Permalink
ci: bench: fix mermaid values, markdown generated
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Mar 26, 2024
1 parent bff4644 commit 337c13b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ jobs:
<details>
<summary>More</summary>
<summary>More</summary>
```mermaid
${{ env.PROMPT_TOKENS_SECONDS }}
Expand Down
2 changes: 1 addition & 1 deletion examples/server/bench/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def main(args_in: list[str] | None = None) -> None:
title "{title}"
y-axis "llamacpp:{metric}"
x-axis "llamacpp:{metric}" {int(min(timestamps))} --> {int(max(timestamps))}
line [{', '.join([str(round(float(value))) for value in metric_values])}]
line [{', '.join([str(round(float(value), 2)) for value in metric_values])}]
""")
mermaid_f.write(mermaid)

Expand Down

0 comments on commit 337c13b

Please sign in to comment.