Skip to content

openshift-psap/bench-llm

Repository files navigation

bench-llm

A Crucible benchmark wrapper for llm-load-test. To launch a test, run this on the Crucible controller: crucible run --from-file run-llm.json

All options from the llm-load-test config file are present in run-llm.json prefixed by config_.

Files Included

  • config.yaml.j2: Template file to generate llm-load-test config
  • config_convert.py: This script is not used in the benchmark. It is a helper for us to generate config.yaml.j2 and some other boilerplate from a full llm-load-test config file.
  • llm-base: Boilerplate for Crucible. This was copied from bench-ilab directly.
  • llm-client: Core script that downloads llm-load-test, templates the config file, and runs llm-load-test.
  • llm-get-runtime: Required by Crucible. Simple script that calculates how much time our benchmark will run for. Requests an indefinite runtime.
  • llm-load-test-config.yaml: This file is also not directly used in the benchmark. It is used in conjunction with config_convert.py to generate a template file and other boilerplate.
  • llm-post-process: Core script that processes any artifact and generates a CommonDataModel payload. At this point, the only data being considered is the output json file from llm-load-test.
  • multiplex.json: Required by Crucible. Allows you to use regex to perform input validation.
  • random-but-same: Random bytes to be used as some randomness if needed (not currently used).
  • rickshaw.json: Required by Crucible. Tells Crucible where to find your scripts (llm-client, llm-post-process, etc) and any other files you want to copy into the run.
  • run-llm.json: Used to run and configure your benchmark. It is not a necessary file to make the benchmark work, but a copy with all parameters listed is given here for your convenience. This file is used when running the benchmark crucible run --from-file run-llm.json
  • workshop.json: Required by Crucible. Specifies necessary dependencies to include in the container that will run on the SUT. It is used to install the dependencies required by llm-load-test.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published