Skip to main content

HELM integration for GDB (GraphicDesignBench) — run GDB benchmarks via helm-run

Project description

lica-gdb-helm

HELM integration for GDB (GraphicDesignBench) — run all 39 GDB benchmarks through Stanford CRFM's HELM framework.

Install

pip install lica-gdb-helm

This installs lica-gdb and crfm-helm as dependencies. For benchmarks with heavier metrics:

pip install "lica-gdb-helm[svg]"      # SVG rendering metrics (LPIPS, SSIM, CLIP)
pip install "lica-gdb-helm[layout]"   # Layout generation metrics (NIMA, HPS, FID)
pip install "lica-gdb-helm[full]"     # Everything

Usage

# Run a single benchmark
helm-run --run-entries gdb:benchmark_id=category-1,model=openai/gpt-4o \
         --suite gdb-eval --max-eval-instances 50

# Run multiple benchmarks
helm-run --run-entries gdb:benchmark_id=svg-1,model=openai/gpt-4o \
                       gdb:benchmark_id=svg-2,model=openai/gpt-4o \
         --suite gdb-eval

# Summarize and view results
helm-summarize --suite gdb-eval
helm-server --suite gdb-eval

Available benchmarks

All 39 GDB benchmarks are available. Pass any benchmark ID:

Domain Benchmark IDs
Category category-1, category-2
Layout layout-1 through layout-8
SVG svg-1 through svg-8
Template template-1 through template-5
Temporal temporal-1 through temporal-6
Typography typography-1 through typography-8
Lottie lottie-1, lottie-2

Options

Parameter Description
benchmark_id Required. GDB benchmark ID (e.g. svg-1)
dataset_root Optional. Path to local GDB dataset. Defaults to HuggingFace Hub
max_samples Optional. Limit number of samples loaded from GDB

How it works

This package is a thin adapter (~300 lines) that translates between HELM and GDB types. All benchmark logic — data loading, prompt construction, output parsing, and metric computation — is delegated to the lica-gdb package. Metrics from HELM runs are identical to standalone GDB evaluation.

Development

cd integrations/helm
pip install -e "../../[hub]"   # install lica-gdb in editable mode
pip install -e .               # install lica-gdb-helm in editable mode

# Test with HELM's built-in echo model
helm-run --run-entries gdb:benchmark_id=category-1,model=simple/model1 \
         --suite test --max-eval-instances 5

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

lica_gdb_helm-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

lica_gdb_helm-0.1.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lica_gdb_helm-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for lica_gdb_helm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef9e4d4b13fdf2cf83c59e33bdfd855ab39725fca99f176930343a5ef5c11162
MD5 12c10cb2be89480e8709dbe0fca03f05
BLAKE2b-256 c16fe9e479fae4e45d799cb4671062c05013fe05a83d9243fbeaaea83dcebb33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lica_gdb_helm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for lica_gdb_helm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c348556074b5193836ffcb8d31c8a5ae4c50c99c7bfc28729e73e141587e3aaf
MD5 d5f6bf7a667c91491b4640e0a7972c14
BLAKE2b-256 81a665360e77e64d0fb5b751e498d6718efbf6cad801b63d1b6b1ed5ba82f0f3

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