Skip to main content

A library for benchmarking the tflops of accelerators

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accelrod-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

accelrod-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file accelrod-0.1.0.tar.gz.

File metadata

  • Download URL: accelrod-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for accelrod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a76f5904b300ab52518c51ae50c7e5a49221be2c6e9c7ace5a504f0f0bdbd63
MD5 12a6582857db036a24fd03eb25ed3cd0
BLAKE2b-256 6c0da9fcb678978eacad94791c0368c04e7a6c7c2fa72350458a5d2b6e1627c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for accelrod-0.1.0.tar.gz:

Publisher: publish-to-pypi.yml on CoralLeiCN/accelrod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file accelrod-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: accelrod-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for accelrod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33b1615db65a8b8ec349b8a86a92de448b81c9d5e5fbd9873023c74d9b3022fb
MD5 ef2cb2d0a5eab17b00c8ad75b3761b9d
BLAKE2b-256 47b4bc9ecdd55459cf8d597f50611ff7275984ead488147536d6c531cc8befef

See more details on using hashes here.

Provenance

The following attestation bundles were made for accelrod-0.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on CoralLeiCN/accelrod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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