ci: bench: fix mermaid values, markdown generated

This commit is contained in:
Pierrick HYMBERT 2024-03-26 08:39:30 +01:00
parent bff4644f49
commit 337c13b226
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ jobs:
<details> <details>
<summary>More</summary> <summary>More</summary>
```mermaid ```mermaid
${{ env.PROMPT_TOKENS_SECONDS }} ${{ env.PROMPT_TOKENS_SECONDS }}

View file

@ -170,7 +170,7 @@ xychart-beta
title "{title}" title "{title}"
y-axis "llamacpp:{metric}" y-axis "llamacpp:{metric}"
x-axis "llamacpp:{metric}" {int(min(timestamps))} --> {int(max(timestamps))} 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) mermaid_f.write(mermaid)