Skip to main content

Hyperband-optimized parallelized prompt and model parameter tuning for evaluating LLMs

Project description

HyperEvals

Hyperband-optimized parallelized prompt and model parameter tuning for evaluating LLMs.

Motivation

Evaluating LLMs is both notoriously challenging and yet critical before confidently deploying in production environments. Seemingly small tweaks in prompts or upgrades to the model can have a significant impact on performance across various tasks, hence the need for carefully crafted evaluations.

HyperEvals provides hyperband-optimized parallelized prompt and model parameter tuning for evaluating LLMs, inspired by W&B's sweeps combined with hyperband optimization.

Screenshot 2025-06-19 at 9 27 03 AM image

Installation

pip install hyperevals

Usage

MVP Flow

  1. Create a CSV dataset
  2. Create a prompt template
  3. Create an executable Model file
  4. Create executable scorers
  5. Create a config file
  6. Run the evaluation
  7. Iterate on prompt and model parameters
  8. Hyperband kills bad optimizations early
  9. Final prompt is reported w/ accuracy

Sample Configuration

dataset: data/diseases.csv
model: models/simple_model.py
scorer: scorers/basic_scorer.py
prompts: prompts
results_dir: results
num_examples: 5
sort: random
hyperband:
  num_trials: 2
  min_examples: 1

TODO

  • multi-step scorers for agent evals

Shape of the eval output:

id step input output score
1 1 "Hey, whats your name?" "My name is John" 0.95
1 2 "What is your favorite color?" "My favorite color is blue" 0.95
1 3 "What is your favorite food?" "My favorite food is pizza" 0.95
2 1 "What is your name?" "My name is John" 0.95
2 2 "Wow great!" "..." 0.95

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperevals-0.1.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperevals-0.1.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file hyperevals-0.1.1.tar.gz.

File metadata

  • Download URL: hyperevals-0.1.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for hyperevals-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5dafdca79737bd104ccc832e60e3dc77f95e59112cdc266190de23573c4471d4
MD5 9336b7ba155298867aee619991e79a36
BLAKE2b-256 111e164d3b3666dd972c797a043d6e7df883ddca5b6a6e3413057969237eabbd

See more details on using hashes here.

File details

Details for the file hyperevals-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hyperevals-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for hyperevals-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d5553e3faaf36e1bce8f35fcb06fb3ccdbc617041d3cc87a5ff38867df65a34
MD5 cb798d0a3b27ece20106e09e2864f228
BLAKE2b-256 d0b9650fae5ffa80d77f210051afccc7b900b8c0bb60cc76d8f79d22eadb1e3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page