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

Note: This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use.

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nvidia_eval_commons-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ff99942fa54bd513b8ebae174ee6f59b0a9669066a21060a7e00989b0a23aa9a
MD5 7ec9d94b56cec22bb87b08b29eebe6cf
BLAKE2b-256 56cea25d661944dbfc140dd8856d3331a2fd2a9737cd7790f121a9e6dbeb5a3e

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