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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a76f5904b300ab52518c51ae50c7e5a49221be2c6e9c7ace5a504f0f0bdbd63
|
|
| MD5 |
12a6582857db036a24fd03eb25ed3cd0
|
|
| BLAKE2b-256 |
6c0da9fcb678978eacad94791c0368c04e7a6c7c2fa72350458a5d2b6e1627c9
|
Provenance
The following attestation bundles were made for accelrod-0.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on CoralLeiCN/accelrod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
accelrod-0.1.0.tar.gz -
Subject digest:
0a76f5904b300ab52518c51ae50c7e5a49221be2c6e9c7ace5a504f0f0bdbd63 - Sigstore transparency entry: 170786128
- Sigstore integration time:
-
Permalink:
CoralLeiCN/accelrod@3d30968fea3750442e1e81cf0e81a18f1a4085a7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CoralLeiCN
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@3d30968fea3750442e1e81cf0e81a18f1a4085a7 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33b1615db65a8b8ec349b8a86a92de448b81c9d5e5fbd9873023c74d9b3022fb
|
|
| MD5 |
ef2cb2d0a5eab17b00c8ad75b3761b9d
|
|
| BLAKE2b-256 |
47b4bc9ecdd55459cf8d597f50611ff7275984ead488147536d6c531cc8befef
|
Provenance
The following attestation bundles were made for accelrod-0.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on CoralLeiCN/accelrod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
accelrod-0.1.0-py3-none-any.whl -
Subject digest:
33b1615db65a8b8ec349b8a86a92de448b81c9d5e5fbd9873023c74d9b3022fb - Sigstore transparency entry: 170786131
- Sigstore integration time:
-
Permalink:
CoralLeiCN/accelrod@3d30968fea3750442e1e81cf0e81a18f1a4085a7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/CoralLeiCN
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@3d30968fea3750442e1e81cf0e81a18f1a4085a7 -
Trigger Event:
push
-
Statement type: