Skip to content
View unixyo's full-sized avatar

Block or report unixyo

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
unixyo/README.md

Hi, I'm unixyo

I build zero-spill Wave32 Direct HIP C++/GPU kernels (training & inference), custom PyTorch autograd/runtime extensions, and end-to-end model optimizations across MoE LLMs, diffusion/video, 3DGS, and neural audio on Linux ROCm (gfx1030, single AMD Radeon RX 6900 XT 16 GB + 64 GB RAM). Every claim is backed by paired ABBA measurements, strict numeric and perceptual gates, and documented negative results.

RX 6900 XT (gfx1030) 한 장으로 학습·추론용 Wave32 Direct HIP 커널과 로컬 AI 모델 최적화를 직접 구현하고, 실측치와 한계를 기록합니다.

Custom GPU Kernel Suites (Training & Inference)

Repository What I built & verified (RX 6900 XT, gfx1030)
torch-rdna2 Unified MIT Direct HIP Wave32 PyTorch suite (v0.3.0, 2,901 zero-spill code objects across gfx1030/1031/1032): Single host-g++ abi3 + HIP binary pair passing 85/85 tests (0 skips) on both PyTorch 2.11+rocm10.0 and 2.12+rocm10.2. Reversible SDPBackend.OVERRIDEABLE FlashAttention Fwd+Bwd (D=64 6.23× / −8.05 GiB VRAM, D=128 3.62× / −8.09 GiB VRAM), 12-layer Transformer + LoRA training step (4.15×, 309.53 → 74.67 ms, ExactFP64AdamW), 68.1–68.4 TOPS 0-ULP INT8 GEMM, direct packed GGUF W4A8 (Q4_0/Q4_K/Q5_K/Q8_0, 24.43–36.80 effective TOPS + patch-free ComfyUI LoRA bridge), Sage v3.5 (36.33 TF/s, H3 640×640×124f sampler 207.78 → 141.33 s, 1.470×), D=256 forward (19.99 TF/s), packed varlen Fwd/F+B (1.41×/1.52×), causal sliding_window(128, 0) (60.43× vs dense masked MATH), and fused head_rmsnorm_rope (8.18× eager, 38.21 dB / SSIM 0.99221 on Anima 1024²).
applio-rdna2-direct-hip RVC 40k HiFi-GAN training & voice conversion suite (v6.2–v10, 213 zero-spill kernels/target): Direct Wave32 Conv1d dW (0-ULP LDS XOR swizzle), F(4,5) MPD Winograd, arbitrary-length F(4,3) Coset 1D Winograd (0-diff overlapping input window reuse), whole-ResBlock C++ autograd fusion, and zero-sync FP64-accumulator AdamW (0-bit FP64 parity). Cuts 40k HiFi-GAN training from 22.1 s/ep (stock Linux ROCm 10) and 11.546 s/ep (v1) to 7.112 s/ep in v6.2 (full 200-epoch model trained in 22.81 min vs 210.21 min historical Windows ZLUDA on the same card, blind human listening passed, logMel_cos = 0.9916) and 5.861 s/ep (1.970×) in v9; v10 cuts 273.9 s full-recording conversion from 10.034 → 5.619 s (-44.00%, 48.7× realtime, 52.37 dB SNR).
seplab-rdna2-direct-hip Music source separation & MIR inference suite (v2.1, 60 zero-spill kernels across gfx1030/1031/1032, ≤ 32 KiB LDS): PyTorch C++ shim + ABI-free ctypes (ABI v201) drop-in hooks for MSST & python-audio-separator. Native asymmetric PolarFormer (PoPE D_qk=128, D_v=64) & RoPE FlashAttention with aligned 128-bit XOR-swizzled LDS vector loads, fused QKV+RoPE/PoPE, strided axial RMSNorm, and zero-atomic Mel-Band CSR gather-average (4.40×, 150.44 dB SNR). Accelerates 226.40 s full-song separation (0.0 repeat diff) to 14.8615 s on PoPE (62.34 s SDPA, 4.19×, 70.58 dB SNR), 14.9960 s on BS-Roformer deeffect (51.70 s SDPA, 3.45×, 68.71 dB SNR), and 31.4058 s on karaoke_fb (87.80 s SDPA, 2.80×, 72.50 dB SNR), while cutting 6-stem D=384 peak allocation by 40.14% (4,297.6 → 2,572.5 MiB) and 314.5 s hybrid MIR analysis by 29.18% (41.8544 → 29.6397 s).
rdna2-diffusion-sage-hip Diffusion & 3DGS inference suite (v4.0, 330 zero-spill HIP kernels + AOT C++ shim): D=128/D=64 Flash & Sage Attention, zero-copy strided P2 views, 0-ULP exact INT8 v_dot4c GEMM (256×256 tile & LDS-only barrier, ~67.7 TOPS), MOSS SITU prologue fusion, 0-ULP CpuHalfPrefixCache (2.69 → 1.34 GB), and Qwen unit-temporal Conv3d → Conv2d VAE lowering (716 ops, 2.6463 → 0.9135 s, 2.896×, 75.08 dB RGB PSNR). Brings warmed Qwen-Image-2.1 (960×640, 8 steps) to 10.1168 s (-18.52% vs 12.4164 s control; 19.88 s v2.0 baseline), MOSS-Image (768×1152, 4 steps) to 3.67 s (9.86 s v2.0 baseline), and Idol 3DGS (50 steps, 262k-point PLY) to 98.8262 s in v3 Sage + condition cache (down from 261 s v2.0 Triton baseline; P2 0.983 s/pass).

Measured System Recipes & Benchmarks

Repository What it covers
rdna2-gfx1030-ai-handbook Operator-by-operator empirical optimization catalog & methodology on gfx1030: operator microbenchmarks, full-model ABBA gates, perceptual sign-off, root-cause ROCm/MIOpen/rocBLAS/KFD diagnostics (e.g., spawn DataLoader KFD queue contention 22 → 15 s/epoch, broken MIOpen solvers, TunableOp split-K atomic nondeterminism), and preserved negative results.
strata-rdna2-gfx1030-recipe Qwen3.8-Flash-Next (256K context, vision on) MoE engine optimization patches (0001..0007) on Strata with one RX 6900 XT + 64 GB RAM: 1,200–1,300 tok/s prefill (up from 382–414 tok/s), RDNA2 HIP + Zen 4 AVX-512 exact kernels (EXACT_V3 56.8–68.3 tok/s, 69.19 tok/s peak), DFlash2 speculative decoding 86.17 → 91.16 tok/s (101.2 tok/s on coding, +155 expert slots), -55.5% 16K direct SSD reads (STRATA_LM_I8=1), 16K MoE combine -57.85%, and Prefill::Stager DMA fault-recovery hardening (47/47 fault-injection scenarios).
rdna2-gfx1030-imagegen-recipes Reproducible ComfyUI API setups, custom nodes (2.28× bit-identical MOSS fused INT8 GEMM layout, bit-identical Qwen attention scale fold), and patches for Qwen-Image-2.1 (48.03 s 8-step Turbo, 80.05 s 25-step edit at 12.41 GiB), MOSS-Image (24.02 s 4-step 768×1152), and MiniMax H3 (124-frame GGUF T2V/I2V) on 16 GB VRAM.

Verification & Upstream

  • Zero-spill build gates: Shipped Wave32 HIP fat binaries enforce automated 0 VGPR spill, 0 SGPR spill, 0 scratch-byte, and 0 compiler-warning checks across gfx1030;gfx1031;gfx1032.
  • Strict evaluation: Exact paths require bitwise/0-ULP or FP64-reference parity; approximate paths remain explicit opt-ins gated by numeric bounds (SNR, PSNR/SSIM, NRMSE) and human listening/visual inspection, with unmet stretch targets and rejected kernels documented alongside wins.
  • Upstream benchmark report: Strata #4680 — single RX 6900 XT (gfx1030) benchmark report.

Direct HIP (Wave32) · C++ · PyTorch Custom Ops & Autograd · Quantization (GGUF W4A8 / INT8) · AVX-512 · ROCm · Linux

Pinned Loading

  1. rdna2-gfx1030-imagegen-recipes rdna2-gfx1030-imagegen-recipes Public

    ComfyUI recipes for Qwen-Image 2.1, MOSS-Image and MiniMax H3 on one RX 6900 XT (RDNA2, gfx1030) + 64 GB RAM

    Python

  2. strata-rdna2-gfx1030-recipe strata-rdna2-gfx1030-recipe Public

    Strata (Qwen3.8-Flash-Next) on one RX 6900 XT (RDNA2, gfx1030) + 64 GB RAM: settings, patches, measurements

    Python 1