Catalog PyPI
PACKAGE EXPLORERView in registry

accelrod

PyPI

A library for benchmarking the tflops of accelerators

Versions collected1
Direct dependencies5From release 0.1.0
Last observed20 Oct, 17:55 UTC

README

Version 0.1.0 documentation

Accelrod

Installation

pip install -U accelrod

[all] includes nbformat to visualize the result in notebook

pip install -U accelrod[all]

Example

import torch

from accelrod.benchmark import benchrun, plot_result

# without max_dimension, the matrix size will be determined based on available VRAM
result = benchrun(
    algorithm="GEMM",
    device="auto",
    as_dataframe="pandas",
    params={
        # "max_dimension": 2048,
        "dtype": [torch.float32, torch.float16, torch.bfloat16],
    },
)

# plot in notebook
import plotly.offline as pyo

pyo.init_notebook_mode()
plot_result(result)

Developer guide

Setup working env / dependencies

Sync the project's dependencies with the environment.

uv sync

lock dependencies declared in a pyproject.toml

uv pip compile pyproject.toml -o requirements.txt

Add dev dependencies

uv add --dev ruff pytest

Editable Installs

uv pip install -e .[all,dev]

Test package with local build

uv pip install dist/accelrod-0.1.0-py3-none-any.whl uv run --with accelrod --no-project --refresh-package accelrod -- python -c "import accelrod"

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.012 Feb 20255

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:55 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1a2fdaf52c9c089481ab7765e6e62aa36a7246c20cc5bd699e5ee4e16235f9c1