Skip to content
#

sdpa

Here are 18 public repositories matching this topic...

A 66M parameter decoder-only transformer language model implemented from scratch in PyTorch. Features a custom SentencePiece tokenizer, RoPE positional embeddings, SwiGLU feed-forward network, per-layer KV cache for efficient autoregressive inference, and a Svelte-based streaming chat interface.

  • Updated May 13, 2026
  • Python

Attention backend benchmark on Turing GPUs comparing Vanilla, SDPA Math, SDPA Efficient, and a custom Triton FlashAttention implementation. SDPA efficient achieves 130× memory reduction and 10× speedup; Triton FA achieves O(n) memory but is 64× slower than SDPA efficient on RTX 2070.

  • Updated Jul 15, 2026
  • Python

Signed attention for transformers — sinh/cosh attention giving weights in [-1,1] instead of softmax's positive-only, made FlashAttention/SDPA-compatible by channel doubling. Includes a from-scratch softmax-vs-SBA comparison and a documented negative result.

  • Updated Jul 28, 2026
  • Python

Reproducible Mage-Flow-Turbo inference on Kaggle Tesla T4×2 using upstream PyTorch, BF16 dtype/materialization and SDPA. Includes canonical dual-GPU qualification, explicit transformer/VAE placement, fail-closed routing and provenance checks, sustained 12-image 512/768/1024 showcase, timing, GPU memory metrics, SHA-256 evidence, and bilingual docs.

  • Updated Sep 21, 2026
  • Python

Add this topic to your repo

To associate your repository with the sdpa topic, visit your repo's landing page and select "manage topics."

Learn more