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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nvidia_eval_commons-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a94c577debc4c109ebe4516b51c9d0f2b68c63c70dcd4dc78fad1b8ae456fc4
MD5 2a130baeda8feb3c87fac821d374df31
BLAKE2b-256 2e9e777e3fe309164581ffecbe36ad072d21d60f96345236255ba38eef187771

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