Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

accelrod

A library for benchmarking the tflops of accelerators

Published12 Feb 2025
Direct dependencies5
Transitive dependenciesNot calculated

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.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
matplotlib
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
matplotlib>=3.10.0runtime
pandas
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pandas>=2.2.3runtime
plotly
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
plotly>=6.0.0runtime
torch
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
torch>=2.5.1runtime
torchvision
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
torchvision>=0.20.1runtime

Distribution files

2 collected
accelrod-0.1.0-py3-none-any.whl

bdist_wheel · 9.32 KB · Python py3

Source file
accelrod-0.1.0.tar.gz

sdist · 8.83 KB · Python source

Source file

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_version:f705f7d0ae1d251f9cbb29dc2338be7149ac2881591c596c4badadd69322b6fc

Other collected versions

View all collected versions →