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 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.0.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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lica_gdb_helm-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a2a53f3a30d195c48acc39204879285506f42bc132533f856519109b71115ba3
MD5 399d22431629d33e1fa71f3d6c262955
BLAKE2b-256 d92f137dcab7ed26f979aaf645c1ed51ff5f96f9bea979281473125963e133fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lica_gdb_helm-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc5cc938a77834a0bda3436234c2990383d5f1e9889532ca9074f0c2bae61f11
MD5 4421b42ddda96bc30f2f2cf16d7ee66c
BLAKE2b-256 b1565e4363e9e7d08070e3c9cbda5cc30b08200cbdcd265bc5ee1c1458cfcd12

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