Skip to content
Merged
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
25 changes: 25 additions & 0 deletions python/sgl_jax/srt/kernels/gdn/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Gated DeltaNet (GDN) reference kernels.

Public entry points:

* :func:`ragged_gated_delta_rule_ref` — token-by-token ``lax.scan`` over a
packed ragged batch (extend / chunked-prefill).
* :func:`decode_gated_delta_rule_ref` — parallel single-step recurrence
across the batch (decode fast path).
* :func:`jax_causal_conv1d_prefill` / :func:`jax_causal_conv1d_update` —
depthwise causal conv1d helpers (ragged prefill + single-token decode).
"""

from sgl_jax.srt.kernels.gdn.gated_delta import (
decode_gated_delta_rule_ref,
jax_causal_conv1d_prefill,
jax_causal_conv1d_update,
ragged_gated_delta_rule_ref,
)

__all__ = [
"decode_gated_delta_rule_ref",
"jax_causal_conv1d_prefill",
"jax_causal_conv1d_update",
"ragged_gated_delta_rule_ref",
]
522 changes: 522 additions & 0 deletions python/sgl_jax/srt/kernels/gdn/gated_delta.py

Large diffs are not rendered by default.

Loading
Loading