Skip to main content

Common utilities for NVIDIA evaluation frameworks

Project description

nvidia-eval-commons

NVIDIA Eval Commons is a set of dataclasses and tools used to define the configuration for the evaluation run.

Installation

pip install nvidia-eval-commons

Usage

from nvidia_eval_commons.api.api_dataclasses import EvaluationConfig, EvaluationTarget, ApiEndpoint, EndpointType, ConfigParams

config = EvaluationConfig(
    type="sample_eval",
    params=ConfigParams(
        task="sample_task",
        temperature=1e-5,
        top_p=1e-5,
        extra={"n_samples": 5}
    ),
    output_dir=".",
    supported_endpoint_types=[EndpointType.CHAT, EndpointType.COMPLETIONS],
)

target = EvaluationTarget(
    api_endpoint=ApiEndpoint(
        model_id="sample_model",
        type=EndpointType.CHAT,
        url="http://sample_model:8000",
    )
)

Development

Install in editable mode with [all] extra:

pip install -e '.[all]'

This installs testing dependencies.

License

Apache License, Version 2.0

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

nvidia_eval_commons-1.0.0-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

Details for the file nvidia_eval_commons-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nvidia_eval_commons-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dac05384f08370d9b4851751f10a211aa276958be65adc507d1bb3a79fd4d778
MD5 e52bbf7ba9a1257efbb59b1ff7e77380
BLAKE2b-256 7fbd016bee6c1ee486ca120062221d6d4c6d842f59bdfda61ba9cc74822677a7

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