flash-attention-triton
Cross-platform FlashAttention-2 Triton implementation for Turing+ GPUs with custom configuration mode
- 33
- Python
- MIT
- 11 mo ago
Cross-platform FlashAttention-2 Triton implementation for Turing+ GPUs with custom configuration mode
GPT-2-style LLM built from scratch in C/CUDA with hand-written backprop, BPE tokenizer, FlashAttention, pretraining, and SFT.
Experimental MLX custom Metal kernels for Apple Silicon — fast attention, decode, KV-cache, and future Mac GPU inference primitives.
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.
LLM pretraining from scratch on FineWeb dataset (architecture and all components explained), plus optimal use of GPU on SLURM cluster
Research harness for evaluating query-time bounded elimination of reconstructable KV-cache witnesses in long-context transformer inference workloads. Related provisional filing: IN 202641062451.
ASR Pipeline (GLM-ASR) optimized using custom Triton kernels (achieving a 72.2% improvement in speed)
Step-by-step implementation of next-generation LLM components. Deep dive into Quantization, TTT layers, Differentiable Logic, FlashAttention tiling, and context extension, culminating in an end-to-end hardware-friendly Mini-LLM.
ViT-L/16 inference optimization - 4-bit NF4 quantization, FlashAttention-2 vs SDPA benchmarking, 40.5% latency reduction