Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
rev: v0.48.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]
Expand All @@ -33,7 +33,7 @@ repos:
exclude: docs/

- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
rev: v1.38.0
hooks:
- id: yamllint

Expand All @@ -48,21 +48,21 @@ repos:
- id: shellcheck

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
rev: v3.13.0-1
hooks:
- id: shfmt
args: [-w, -s, -i=4]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.15.9
hooks:
- id: ruff-check
args: [--fix, --line-length=100]
- id: ruff-format
args: [--line-length=100]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
rev: v22.1.2
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand Down
16 changes: 6 additions & 10 deletions autoware_ml/tests/models/test_ptv3_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ def test_serialized_attention_requires_supported_flash_configuration() -> None:

def test_serialized_attention_uses_flash_module_when_enabled() -> None:
flash_module = SimpleNamespace(
flash_attn_varlen_qkvpacked_func=lambda qkv,
cu_seqlens,
max_seqlen,
dropout_p,
softmax_scale: (qkv[:, 2])
flash_attn_varlen_qkvpacked_func=lambda qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale: (
qkv[:, 2]
)
)
point = Point(
{
Expand Down Expand Up @@ -83,11 +81,9 @@ def test_serialized_attention_uses_flash_module_when_enabled() -> None:

def test_build_export_module_disables_flash_attention_without_mutating_live_backbone() -> None:
flash_module = SimpleNamespace(
flash_attn_varlen_qkvpacked_func=lambda qkv,
cu_seqlens,
max_seqlen,
dropout_p,
softmax_scale: (qkv[:, 2])
flash_attn_varlen_qkvpacked_func=lambda qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale: (
qkv[:, 2]
)
)
with patch(
"autoware_ml.models.segmentation3d.backbones.ptv3.load_flash_attn_module",
Expand Down
Loading