Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Tiny-Eval

Tiny-Eval is a minimal framework for evaluating language models. It provides a clean, async-first API for interacting with various LLM providers and running evaluation experiments.

Features

  • Multi-Provider Support

    • OpenAI API integration
    • OpenRouter API integration for access to multiple model providers
    • Extensible interface for adding new providers
  • Robust API Handling

    • Automatic rate limiting with configurable parameters
    • Built-in exponential backoff retry logic
    • Async-first design for efficient request handling
  • Evaluation Utilities

    • Log probability calculation support
    • Async function chaining for complex evaluation pipelines
    • Batch processing capabilities
  • Experiment Framework

    • Progress tracking for long-running experiments
    • Structured data collection and analysis
    • Built-in visualization tools using Streamlit

Installation

git clone https://github.com/dtch1997/tiny-eval.git
cd tiny-eval
pip install -e .

Usage

Minimal usage is shown as follows:

import asyncio
from tiny_eval.core.constants import Model
from tiny_eval.model_api import build_model_api

async def main():
    model = Model.GPT_4o_mini
    api = build_model_api(model)
    question = "What is the capital of France?"
    response = await api.get_response(question)
    print("Question:", question)
    print("Response:", response)

if __name__ == "__main__":
    asyncio.run(main())

See examples for more examples.

Metadata

Release files for tiny-eval 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for tiny-eval 0.5.0
File Size Uploaded Provenance Actions
tiny_eval-0.5.0.tar.gz 21.4 kB With provenance Details for tiny_eval-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tiny-eval 0.5.0
File Interpreter ABI Platform Actions
tiny_eval-0.5.0-py3-none-any.whl Python 3 none any Details for tiny_eval-0.5.0-py3-none-any.whl

Total release size: 43.3 kB

Release files / tiny_eval-0.5.0.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL tiny_eval-0.5.0.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea687a59f45179d13e2bad0df17e93ad0412e82544a43a94316be23ba5480b3f
BLAKE2b-256 checksum
How to use checksums
950e5109ca5af9f0043569841f6c7355dc134fe82d03a04eda95bac738fa869a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 14, 2025.

Transparency log

Release files / tiny_eval-0.5.0-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL tiny_eval-0.5.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e8bf61a4aacfab22cb941aa6eb09f7d759b86530d4a537f31bd4cc95c2903c6
BLAKE2b-256 checksum
How to use checksums
1b446a61db37e2d48fa4ed5ebe323f50a14a7bdfcbcba7e4f4bd61532d48fe71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 14, 2025.

Transparency log

Security for tiny-eval 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for tiny_eval-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 14, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page