r/CUDA • • 19h ago

Compiling Python to SASS

Thumbnail a-r-r-o-w.github.io
11 Upvotes

r/CUDA • • 20h ago

Remote Async CUDA/GPU Kernel, Open-Source GitHub Maintainer & Algorithmic Coding Contracts ($50-$200/hr USD)

6 Upvotes

For GPU/CUDA kernel engineers, active GitHub open-source maintainers, and competitive programmers (Codeforces/Kaggle)

I started a side project that tracks remote work on 15+ platforms, and there's currently roles offering $50-$120/hr USD for CUDA/GPU kernel engineering, and $45-$120/hr USD for algorithmic problem setters and Kaggle medalists.

Basically if you send me a brief blurb with your country, degree, years of experience, tGitHub/CUDA/CP (i.e. technologies) background (no personal information please), I'll send you a custom Google doc with a list of referrals to roles that match your information. I also provide guides for each of the platforms to help with onboarding.


r/CUDA • • 2h ago

ink4060ti: Native CUDA C++20 engine for Inkling-2-Mini (26.4B MoE + Vision) on 16 GB RTX 4060 Ti — lossless NVFP4 Loop-Core, 1,956 tok/s prefill, 156K VRAM ctx + compiled Blackwell sm_120a NVFP4 MMA (seeking 5060 Ti testers!)

3 Upvotes

I built ink4060ti (Apache-2.0), a zero-config C++20/CUDA inference engine specifically engineered to deliver a major jump in BOTH speed and reasoning quality for Inkling-2-Mini-Unbound (26.4B MoE + native vision + DSpark Block-8 speculative decoding) on a single 16 GB RTX 4060 Ti on Windows.

Why both quality AND speed jump on 16 GB 4060 Ti

On a 16 GB card, Strata SQ-15 spills 189 experts over PCIe and OOMs past ~16K context, while Strata SQ-10 takes a noticeable quality hit (KLD 0.0720 / Top-1 92.35%) and doesn't persist prefix KV across requests/restarts.

Because Inkling-2-Mini executes its inner Loop-Core MoE layers (L6..17) 3× per token, ink4060ti uses asymmetric per-role quantization:

  • Loop-Core MoE (L6..17, 3×/token): kept 100% lossless native NVFP4 (SQNR = ∞ dB, cos = 1.000000)
  • Outer MoE (L0..5, L18..23, 1×/token): NF3_G32_E4M3 (3.25 bpw)
  • Dense Attention + Unembed: Q6_G32 (cos = 0.9997) · DSpark Drafter: Q8_G32 (cos = 0.99999)
  • Embed + Vision: 100% lossless BF16 (Vision loads lazily on demand = 0 MiB permanent VRAM, ~200 ms warm encode)

Measured on physical RTX 4060 Ti 16 GB (Windows 11 WDDM)

Metricink4060ti (12g-tight + k4v4)Strata SQ-10 (0.1.67)Strata SQ-15 (0.1.67)
GPU Weights + Drafter12,553 MiB (0 spill)13,322 MiBSpills 189 experts (942 MB PCIe)
Max Full-VRAM Context156,576 tok (auto, 0 spill)100K (manual)16K (OOM beyond)
Quality vs Lossless (sq15-lossless)KLD 0.0216 / Top-1 96.90% (k8v4: 0.0138 / 97.38%)KLD 0.0720 / Top-1 92.35%KLD 0.0107 / Top-1 96.68%
Prefill (2K / 16K / 64K / 100K / 150K)1,956 / 1,810 / 1,497 / 1,316 / 1,136 tok/s1,563 / 1,378 / 970 / 790 / —962 / OOM
Decode (DSpark ON)53–62 short · 46–55 (16K–64K) · 28.6 (150K)79–95 short · 56.8 (64K)39.5–42.0 tok/s
Prefix Reuse & SSD Restart99%+ reuse · 4.9s (64K) / 9.2s (150K)Unsupported (reused=0)Unsupported
Vision (Screenshots / 4K)0 MiB permanent VRAM (~200 ms warm)Permanent VRAMSupported
  • Huge dual gain: 3.3× lower KLD than Strata SQ-10 (0.0216 vs 0.0720, 150K needle recall EXACT PASS) + +25% to +67% faster prefill (2× faster than SQ-15) + 156K zero-spill context + 200 GiB SSD 3-tier cache (VRAM ↔ 25% RAM ↔ SSD). (Honest trade-off: raw short-prompt decode still trails SQ-10's 79–95 tok/s.)
  • Zero-config portable Windows ZIP (5.6 MiB): No CUDA Toolkit, Python, or VC++ redist needed — extract and double-click start.bat (auto-picks HuggingFace vs hf-mirror.com + SHA-256 verify, opens Web UI at 127.0.0.1:18088).
  • Coding Agent Ready: Native Anthropic /v1/messages + count_tokens + thinking + tools + vision (drop-in for Claude Code) & OpenAI /v1/chat/completions (Cursor / Cline / Roo Code).

Looking for RTX 5060 Ti 16 GB (sm_120a) testers!

The portable binary includes a compiled Blackwell sm_120a native NVFP4 MMA path verified against NVIDIA CUTLASS SM120_16x8x64_TN_VS specs and full model scale bounds, but I don't own a physical 5060 Ti — so 5060 Ti support is theoretical/untested (Experimental). If you have a 5060 Ti 16 GB on Windows and want to test it (INK4060_DISABLE_SM120_FP4=1 falls back to BF16 Tensor Core), feedback and benchmark issues are very welcome!


r/CUDA • • 4h ago

[Open Source] Virtualizing a 16 TB FP16 cuFFT into 450 MB VRAM (71.1x speedup, 1.03 ms/batch) + Tensor-Core Beam-CVP on a 4 GB RTX 3050 Laptop

2 Upvotes

I built an open-source CUDA benchmark suite (MIT License) exploring extreme memory virtualization and mixed-precision GPU computing on a **4 GB VRAM RTX 3050 Laptop** (`sm_86`, 15 GB RAM), applied to the 256-bit ECDSA Hidden Number Problem (Bleichenbacher Fourier + Albrecht–Heninger lattice CVP, synthetic test vectors only).

**GitHub Repo:** https://github.com/jcube2024/secp256k1-gpu-audit

### Key CUDA / Systems Optimizations

  1. **`v4 FP16 cuFFT` (`71.1×` speedup over v1 FP32, `1.03–1.16 ms` per `2^22` batch):**

    - Virtualizes a **`2^40`-point (`16 TB`)** DFT into **`~450 MB` VRAM** via CSR binning (`4 B/pair`: 18-bit high index + 14-bit quantized phase).

    - `K = 8` register-level complex phase recurrence (eliminates redundant `__sincosf` calls).

    - Mixed-precision accumulation in FP32 registers + `1/32` pre-scaling into `CUDA_C_16F` (`__half2`) avoids FP16 overflow while preserving exact FP32 SNR (`8.99`).

  2. **GPU `CUB DeviceRadixSort` + Merge Wagner (`30.0×` vs 16-core CPU):**

    - `32M`-element Wagner merge round drops from `1.354 s` (`__gnu_parallel::sort`) to **`0.045 s`** on RTX 3050 (100% bit-exact).

  3. **5-Bucket NVMe Streaming Merge (`< 5 GB` RAM):**

    - Processes `600M` virtual pairs on a 15 GB RAM laptop with monotonically shrinking SSD footprint (`19.2 GB → 9.6 GB → 0 GB`).

  4. **cuBLAS TF32 Tensor-Core `Beam-Sieve-CVP` + GPU 256-bit Predicate:**

    - Solves batched nearest-neighbor search over `G6K` lattice sieve databases (`R @ U^T`) + FP64 GPU Babai-lifting in `0.21 s`.

Includes 8 standalone `.cu` engines (`make -j4 all`), a patched CUDA 12 `G6K-GPU-Tensor`, and a 4-part technical writeup. Happy to discuss any of the CUDA kernel details!