Skip to main content

pequi-eval

Métricas reprodutíveis para avaliar modelos Vision-Language-Action (VLA).

Instalação

pip install git+https://github.com/<org>/Eval_VLA.git          # só numpy
pip install "pequi-eval[scipy] @ git+https://github.com/<org>/Eval_VLA.git"  # + Clopper-Pearson
pip install -e ".[dev]"                                         # desenvolvimento

Uso

from pequi_eval import SetupConfig, Statistical

config = SetupConfig(
    robot_embodiment={"name": "ur5e", "gripper": "robotiq_2f85"},
    camera_configuration={"wrist": {"fps": 30}, "front": {"fps": 30}},
    action_space={"type": "ee_delta", "dim": 7},
    control_frequency=10.0,
    object_set={"cube": "red 5cm"},
    scene_layout={"table_height_m": 0.75},
    reset_procedure="manual, object at marked spot",
    success_criteria="cube inside the bowl",
)
ev = Statistical(config, metadata={"model": "openvla-7b", "seed": 0})

for episode in range(50):
    ev.start_trial("pick_cube")
    while not done:
        with ev.measure_latency():
            action = policy(obs)
        ...
    ev.end_trial(success=ok)

ev.trials_per_task()            # {"pick_cube": 50}; avisa se < 50
ev.success_rate("pick_cube")    # rate + IC 95% (method="wilson" | "clopper_pearson")
ev.completion_time("pick_cube") # mean_s, std_s
ev.inference_latency()          # mean_ms, p95_ms
ev.report()                     # todas as métricas, por tarefa e agregadas ("all")
ev.save("results/run.json")     # config + trials brutos + versão/ambiente
ev = Statistical.load("results/run.json")

Se o tempo for medido por outro sistema, use ev.record_trial(task, success, duration_s, latencies_ms).

Várias famílias de métricas

Toda família herda de EvalVLA e pode compartilhar o mesmo registro de trials:

robust = Robustness.from_eval(ev)   # mesma config, mesmos trials

Adicionando uma nova família

  1. Criar src/pequi_eval/metrics/<nome>.py:

    from ..base import EvalVLA, metric
    
    class Robustness(EvalVLA):
        @metric
        def minha_metrica(self, task: str | None = None) -> dict:
            trials = self.log.filter(task)
            ...
    

    Não adicione parâmetros obrigatórios ao __init__; dados extras por trial vão em record_trial(..., **metadata) / start_trial(..., **metadata).

  2. Exportar em metrics/__init__.py e pequi_eval/__init__.py.

  3. Testes em tests/.

Métodos com @metric entram automaticamente em report(); se aceitarem task, são calculados por tarefa e agregados.

Metadata

Release files for eval_vla 0.1.0

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

Source distribution (sdist)

Source distribution for eval_vla 0.1.0
File Size Uploaded Provenance Actions
eval_vla-0.1.0.tar.gz 22.8 kB Without provenance Details for eval_vla-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eval_vla 0.1.0
File Interpreter ABI Platform Actions
eval_vla-0.1.0-py3-none-any.whl Python 3 none any Details for eval_vla-0.1.0-py3-none-any.whl

Total release size: 51.2 kB

Release files / eval_vla-0.1.0.tar.gz

Download URL eval_vla-0.1.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
97a0d1f5ebd8b5a7216da5c0f4f64dd51cb0ea0d2bb7e011cca1307a9ffe0256
BLAKE2b-256 checksum
How to use checksums
e187887c3777dd23dccc755690e624e9383aea5e6b11639c4aac3b260aefceb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / eval_vla-0.1.0-py3-none-any.whl

Download URL eval_vla-0.1.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
995d83c5f665fa0f6ba41bf57fd4ee2ce3f2d99318fb4520b4fd890b118194c5
BLAKE2b-256 checksum
How to use checksums
8e3b5550b848a9f2657912c80729da887b7280e75ce8da1bfbba8f3c105a81e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for eval_vla 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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