Giter Club home page Giter Club logo

Comments (1)

simon-mo avatar simon-mo commented on September 26, 2024

✨✨ Here's an AI-assisted sketch of how you might approach this issue saved by @simon-mo using Copilot Workspace v0.17

Topic

Can benchmark_throughput and benchmark_latency write their metrics to a JSON file?

Before
  • No, currently, benchmark_throughput.py and benchmark_latency.py do not support writing their metrics directly to a JSON file. The scripts output their results to the console instead, as seen in their respective code benchmarks/benchmark_throughput.py and benchmarks/benchmark_latency.py.
  • The benchmark_serving.py script, however, does support saving results to a JSON file, as indicated by its code structure and usage of JSON file writing in benchmarks/benchmark_serving.py.
After
  • Yes, benchmark_throughput.py and benchmark_latency.py now support writing their metrics directly to a JSON file.
  • The scripts include a new command-line argument --output-json to specify the output file path for the JSON results.
  • The JSON output includes key metrics such as average latency, throughput, and detailed per-iteration metrics.
  • The benchmark_serving.py script's existing JSON file writing functionality remains unchanged.
Plan
  • benchmarks/benchmark_latency.py (CHANGE)
    • Add argument parsing for --output-json to specify the output JSON file path
    • Implement JSON writing logic to output latency metrics to the specified JSON file
    • Ensure existing console output remains unchanged
  • benchmarks/benchmark_throughput.py (CHANGE)
    • Add argument parsing for --output-json to specify the output JSON file path
    • Implement JSON writing logic to output throughput metrics to the specified JSON file
    • Ensure existing console output remains unchanged
  • .buildkite/run-benchmarks.sh (CHANGE)
    • Add --output-json arguments to the two benchmarks (throughput and latency) and ensure they are uploaded as artifacts
    • For both benchmarks (thoughput and latency), turn them into multiline bash command
    • Do not change the benchmark serving output
Sketch of implementation

View the changes

Details

Code analyzed at 52f8107

from vllm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.