Skip to content

Add Plaintext output option to LocalScore + Respect NO_COLOR env var#742

Merged
cjpais merged 3 commits intomozilla-ai:mainfrom
cjpais:localscore-plaintext
Apr 9, 2025
Merged

Add Plaintext output option to LocalScore + Respect NO_COLOR env var#742
cjpais merged 3 commits intomozilla-ai:mainfrom
cjpais:localscore-plaintext

Conversation

@cjpais
Copy link
Copy Markdown
Collaborator

@cjpais cjpais commented Apr 9, 2025

This PR introduces a new --plaintext command-line option to the localscore tool and respects the users NO_COLOR environment variable preference.

The final output with --plaintext looks like

LocalScore:              3658
Token Generation:        330.51 tok/s
Prompt Processing:       14040.38 tok/s
Time to First Token:     94.73 ms

This differs from the default

    __    ____  _________    __   _____ __________  ____  ______
   / /   / __ \/ ____/   |  / /  / ___// ____/ __ \/ __ \/ ____/
  / /   / / / / /   / /| | / /   \__ \/ /   / / / / /_/ / __/   
 / /___/ /_/ / /___/ ___ |/ /______/ / /___/ /_/ / _, _/ /___   
/_____/\____/\____/_/  |_/_____/____/\____/\____/_/ |_/_____/   

██████    ██████   █████    █████   
     ██  ██       ██   ██  ██   ██  
 █████   ███████   █████    █████   
     ██  ██    ██ ██   ██  ██   ██  
██████    ██████   █████    █████   

Token Generation:        333.37 tok/s
Prompt Processing:       14157.32 tok/s
Time to First Token:     94.02 ms

@cjpais cjpais merged commit 7998b11 into mozilla-ai:main Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant