Skip to content

Commit 2faf90c

Browse files
committed
Fix release
stack-info: PR: #51, branch: drisspg/stack/12
1 parent e1cea49 commit 2faf90c

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# pyproject.toml
22

33
[build-system]
4-
requires = ["hatchling"]
4+
requires = ["hatchling", "hatch-vcs"]
55
build-backend = "hatchling.build"
66

77
[project]
88
name = "transformer_nuggets"
9-
version = "0.0.1"
9+
dynamic = ["version"]
1010
authors = [{ name = "Driss Guessous", email = "drisspguessous@gmail.com" }]
1111
description = "A place to store reusable transformer components found around the interwebs"
1212
readme = "README.md"
@@ -49,6 +49,8 @@ llama = [
4949
]
5050

5151
# ---------- TOOL CONFIGURATIONS ------------
52+
[tool.hatch.version]
53+
source = "vcs"
5254

5355
# ---------- RUFF ------------
5456
[tool.ruff]

test/test_flash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import importlib.util
12
import pytest
23
import torch
34

5+
if importlib.util.find_spec("triton") is None:
6+
pytest.skip("Triton is not available", allow_module_level=True)
7+
48
from transformer_nuggets.flash import (
59
attention,
610
BiasMode,

transformer_nuggets/utils/benchmark.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from torch.cuda._memory_viz import profile_plot
1313
from torch.profiler import profile, ProfilerActivity, record_function, schedule
14-
from triton.testing import do_bench
1514

1615
logger = logging.getLogger(__name__)
1716
logger.addHandler(logging.NullHandler())

0 commit comments

Comments
 (0)