GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JohnScheuer - Overview

@JohnScheuer JohnScheuer Follow
More
  • Overview
  • Repositories
  • Projects
  • Packages
  • Stars
@JohnScheuer
JohnScheuer
Follow
View JohnScheuer's full-sized avatar

João Felipe De Souza JohnScheuer

Follow
12 followers · 4 following
  • in/joaofelipescheuer

Achievements

Achievement: Pull Shark

Achievements

Achievement: Pull Shark
More
  • Overview
  • Repositories
  • Projects
  • Packages
  • Stars
JohnScheuer/README.md

João Felipe De Souza

Senior AI Systems Engineer | LLM Inference Infrastructure, GPU/NPU Optimization & Heterogeneous Serving

LinkedIn Email WhatsApp WeChat GitHub

Building production-grade LLM inference runtimes in C++/CUDA/PTX and Huawei CANN/Ascend C. Focused on heterogeneous PD disaggregation and H200-class serving infrastructure.

Focused on high-performance LLM inference, GPU/NPU kernel optimization, and heterogeneous distributed runtime design across NVIDIA CUDA and Huawei Ascend CANN ecosystems.

Based in Curitiba, Brazil (GMT-3). Open to remote (US/EU) and on-site (China) engagements. Z-Visa-ready for China relocation.


Serving Runtime Stack

Production-oriented serving and inference runtime projects.

custom-llm-serving-engine

OpenAI-Compatible Serving Runtime

  • Continuous batching, SSE streaming, PagedAttention KV cache management.
  • Prometheus metrics, graceful shutdown, health checks.
  • 33/33 unit tests + 6/6 end-to-end scenarios passing.

paged-attention-runtime

PagedAttention + Scheduling Runtime (Single-GPU Study)

  • Custom CUDA implementation of block-based PagedAttention (logical to physical KV mapping).
  • 2.89M tok/s kernel microbenchmark (small-head configuration, RTX 2070).
  • 29x kernel optimization gain (v1 to v3): warp reduction + online softmax + shared memory tiling + half2 vectorization.
  • 205-397x vs naive PyTorch attention (non-Flash baseline, attention-layer only).
  • 66.7% memory reduction via block-based KV allocation.
  • Includes continuous batching, swap-first preemption, and cost-based victim policy.

distributed-inference-engine

Distributed LLM Runtime

  • Multi-process runtime implementing Megatron-style Tensor Parallelism and Pipeline Parallelism.
  • GPipe-style fill-drain micro-batching.
  • KV cache sharding across processes.
  • Bit-identical validation on Qwen2-0.5B weights (controlled setup).

quantization-runtime

Model Compression Research Implementation

  • From-scratch AWQ and GPTQ implementations.
  • Validated on Qwen2-0.5B with 26.05 perplexity at 4-bit.
  • Explores Hessian-based compensation vs activation-aware weighting.

Flagship Infrastructure Projects

hybrid-inference-runtime (2026)

Heterogeneous PD Serving: NVIDIA Blackwell x Huawei Ascend 910B2

  • Disaggregated Prefill-Decode serving engine connecting NVIDIA RTX 5060 (Blackwell CC 12.0) and Huawei Ascend 910B2 (DaVinci V300 / CANN 8.6) across a live intercontinental WAN bridge.
  • 32 empirical JSON artifacts and 39 high-resolution microarchitectural figures from physical silicon characterization via the OpenI / Peng Cheng CloudBrain 3 research platform.
  • Validated end-to-end between Curitiba (Brazil) and Peng Cheng CloudBrain 3 (China): TTFT 35.43 ms, TPOT 0.65 ms/token.
  • Empirical characterization of the DaVinci V300 microarchitecture: Fractal-16 flat-latency law, L1 buffer spill at 1024 KB, 32 AI Core scaling at 3.23M tok/s, HBM2e stride collapse (-99.1% at s=256).
  • Proved Ascend 910B2 achieves 83.5% silicon efficiency (317.16 / 380 TFLOPS) — the ~60% gap vs NVIDIA H100 is fabrication node (SMIC 7nm DUV vs TSMC 4N EUV), not architecture.
  • Advanced algorithm benchmarks: DeepSeek MLA (93% VRAM cut), DeepSeekMoE E=64/K=8 (2.85x), PagedAttention B=16 sweet spot, Zero-Copy CoW Forking (286x), FlashAttention Online Softmax (17 MB at 64k tokens), INT4 quantization (4.00x).
  • High-level architecture and telemetry artifacts are open-source; production kernels are maintained separately for enterprise deployment.
  • Repository: github.com/JohnScheuer/hybrid-inference-runtime

cross-arch-kernel-porting (2026)

LayerNorm Kernel: CUDA C++ vs Hand-Written PTX vs Ascend C

  • Implemented the same memory-bound LayerNorm kernel across three abstraction layers: CUDA C++ (SM-120), hand-written PTX (SM-120), and Ascend C (CANN 8.x).
  • Key finding: Hand-written PTX with ld.global.nc was 4.3% slower than nvcc -O3 auto-vectorized code. Root cause: .nc bypasses L1 cache, which hurts multi-pass kernels (LayerNorm reads data 3 times). This demonstrates the importance of knowing when not to hand-tune.
  • Demonstrated the architectural differences between NVIDIA's warp-synchronous model and Huawei's explicit triple-pipe (MTE/Vector/Cube) architecture.
  • Repository: github.com/JohnScheuer/cross-arch-kernel-porting

wddm-paging-simulator (2026)

Empirical Proof of WDDM Paging Collapse (up to 1013x)

  • Quantified the catastrophic throughput collapse when a GPU's physical VRAM is oversubscribed on Windows. Forced WDDM to page memory to system RAM (and eventually to the SSD) over PCIe Gen4.
  • Measured on RTX 5060 (8 GB):
    • Run 1 (RAM available): 68.4× collapse (P99: 3.01 ms → 169.49 ms, TFLOPS: 9.13 → 0.13).
    • Run 2 (RAM under pressure): 1013.1× collapse (P99: 2.41 ms → 2797.32 ms, TFLOPS: 9.17 → 0.01).
  • Proved that the penalty is not just the PCIe vs GDDR7 bandwidth ratio (14×). It depends on the entire OS memory hierarchy: when VRAM overflows and RAM is tight, the OS pages to the SSD, turning a memory-bound kernel into a disk-bound kernel.
  • Justifies strict physical-VRAM Admission Control in LLM runtimes (vLLM, TGI) before OS-level paging destroys tail latency.
  • Repository: github.com/JohnScheuer/wddm-paging-simulator

freetoken-throttle-benchmarks (2026)

Edge-Native Inference & Statistical Cost Benchmarking

  • Benchmarked FreeToken (edge-native MoE engine from UC Berkeley/MIT) on consumer hardware (RTX 5060 8GB) using Throttle (statistical measurement tool).
  • Dense Baseline: Achieved $0.81/M tokens (38% cost reduction via concurrency tuning).
  • MoE Stress Test: Served a 21B-parameter MoE (gpt-oss-20b) on an 8GB GPU, rigorously measuring the $19.17/M token cost caused by CPU-GPU offloading bottlenecks.
  • Validated that while consumer GPUs can serve dense models cost-effectively, frontier MoE models require ≥16GB VRAM for viable production economics.
  • Repository: github.com/JohnScheuer/freetoken-throttle-benchmarks

mini-llm-inference-engine

Full C++/CUDA Runtime

  • Transformer inference engine in pure C++/CUDA (no PyTorch execution path).
  • 32.4k tok/s peak, achieving 87% of INT8 Tensor Core ceiling on RTX 2070.
  • Custom Flash Attention, cuBLASLt INT8, CUDA Graphs, Megatron-style TP.
  • Runs TinyStories 110M and TinyLlama 1.1B end-to-end.

sm75-tensorcore-microkernel

PTX-Level GEMM Engineering

  • Manual PTX instruction emission for Tensor Core GEMM.
  • Outperforms cuBLAS on specific 2048x2048x2048 configuration (SM75 tuned).
  • Achieves 60-65% of cuBLAS performance at 8192^3.
  • Auto-tuning over WARPS / STAGE_K / ILP_DEPTH configuration space.

fused-int4-gemm-sm75

INT4 CUDA Kernel + LLM Integration

  • Bit-accurate INT4 weight-only quantization kernel using raw PTX assembly.
  • 1.000 cosine similarity vs FP16 baseline (layer-level validation).
  • End-to-end Qwen2-0.5B integration: -14.7% VRAM usage with coherent outputs.
  • Documents SM75 structural limits (no cp.async, no native INT4 MMA operands).

llm-fusion-compiler

Compiler MVP with CUDA Codegen

  • Full pipeline: IR to CUDA codegen to nvcc to GPU execution.
  • 9 Transformer fusion patterns (GEMM+Bias+GeLU, LayerNorm fusion, etc.).
  • 10.5 TFLOPS peak on RTX 2070 (37% of SM75 theoretical peak).
  • Templated CUDA generation with type/shape specialization.

Selected R&D Systems

  • flash-attention-sm75-register-fused — Register-fused FlashAttention (5.0 TFLOPS peak, roofline-validated).
  • flash-attention-sm75 — FlashAttention v1 forward pass in CUDA (SM75).
  • fused-backward-kernels-sm75 — Fused GEMM+Bias+GeLU backward kernels (3.1x vs autograd at M=1024).
  • speculative-decoding-runtime — 1.41x speedup via draft-model verification.
  • npu-performance-model — Cycle-approximate DaVinci V300 microarchitectural emulator (Ascend 910B2).
  • vllm-multinode-diagnostics — Multi-node telemetry harness with coordinated-omission-safe latency reporting.

Technical Stack

Layer Technologies
GPU & Low-Level (NVIDIA) CUDA C++, PTX, Tensor Cores (WMMA), CUDA Graphs, Nsight Compute
NPU & Low-Level (Huawei) Ascend C (C++ VLIW), CANN 8.6, DaVinci V300 (Cube/Vector/MTE), HCCL, torch_npu
Compilers IR design, CUDA codegen, MLIR/LLVM concepts, Ascend Tiling Engine
AI Frameworks PyTorch, PyTorch-NPU, HuggingFace, PEFT, ONNX, vLLM, SGLang
Distributed NCCL, HCCL, torch.distributed, Tensor Parallelism, Pipeline Parallelism, PD Disaggregation
Serving FastAPI, Continuous Batching, PagedAttention, KV Management, Chunked Prefill
Backend Redis, PostgreSQL, Prometheus
DevOps Docker, GitHub Actions
Orchestration Kubernetes (multi-tenant GPU clusters, custom operators in Go, NVIDIA Device Plugin, MIG, Volcano, Kueue, Ray on K8s)
Languages C, C++17/20, CUDA, PTX, Python, Rust

Selected Quantitative Results

Achievement Project / Platform
1013× throughput collapse (WDDM paging to SSD) RTX 5060 (wddm-paging-simulator)
83.5% silicon efficiency (317 / 380 TFLOPS) Ascend 910B2 physical characterization
1189.25 GB/s HBM2e saturation Ascend 910B2 memory subsystem
1378.62 GB/s HBM2e write peak Ascend 910B2 R/W asymmetry
3.23M tok/s (32 AI Core saturation) Ascend 910B2 multi-core scaling
0.65 ms/token TPOT (intercontinental) hybrid-inference-runtime
286x Zero-Copy CoW Forking speedup Ascend 910B2 PagedAttention
93% VRAM reduction (DeepSeek MLA) Ascend 910B2 serving algorithms
314.18 GB/s GDDR7 saturation NVIDIA RTX 5060 Blackwell
32.4k tok/s peak mini-llm-inference-engine
87% INT8 Tensor Core ceiling mini-llm-inference-engine
2.89M tok/s kernel microbenchmark paged-attention-runtime
29x kernel optimization gain paged-attention-runtime
10.5 TFLOPS compiler-generated llm-fusion-compiler
1.41x speedup speculative decoding speculative-decoding-runtime
26.05 PPL at 4-bit (AWQ) quantization-runtime

Experience

AI Infrastructure Engineer (Contract) — Confidential Leading Chinese LLM Company (Under NDA) | Sep 2025 – Mar 2026

  • Engineered production LLM inference infrastructure with Rust/Tokio async pipelines and backpressure-safe concurrency.
  • Worked across driver ↔ runtime ↔ framework boundaries to debug cross-layer performance issues (memory, latency, throughput).
  • Collaborated with distributed teams on GPU memory profiling and long-context KV cache allocation.

Software Architecture Lead — ZBrasil | Apr 2025 – Aug 2025

  • Led backend architecture for high-concurrency, cross-border data processing systems in C++/Python.
  • Reduced redundant compute overhead by ~25% via batch coalescing, kernel fusion, and memory restructuring.
  • Coordinated distributed teams across UTC-3 / UTC+8 timezones.

Open Source

Contributed to LLM Inference Handbook (llm-inference-at-scale) — module on observability signal coverage for LLM serving.


Contact

LinkedIn: linkedin.com/in/joaofelipescheuer Email: [email protected] WeChat: JohnScheuer7 Location: Curitiba, Brazil — Open to remote (US/EU) and on-site (China)

Pinned Loading

  1. mini-llm-inference-engine mini-llm-inference-engine Public

    High-performance Transformer inference engine in C++/CUDA — 32k tok/s peak, 87% INT8 Tensor Core ceiling, roofline-validated on RTX 2070

    C++ 9 1

  2. sm75-tensorcore-microkernel sm75-tensorcore-microkernel Public

    Instruction-level Tensor Core micro-kernel engineering on SM75 (RTX 2070), including PTX manual emission, shared-memory staging, and hardware-aware auto-tuning.

    Cuda

  3. llm-fusion-compiler llm-fusion-compiler Public

    Compiler MVP that detects Transformer fusion patterns, generates optimized CUDA kernels with WMMA Tensor Cores, and executes them on real GPU hardware — 10.5 TFLOPs on RTX 2070, correctness validat…

    Python 4

  4. custom-llm-serving-engine custom-llm-serving-engine Public

    Production-oriented LLM inference server with OpenAI-compatible API (/v1/completions, /v1/chat/completions). Continuous batching, SSE streaming, KV cache management, Prometheus metrics, and gracefu…

    Python 1

  5. fused-int4-gemm-sm75 fused-int4-gemm-sm75 Public

    Custom PTX INT4 GEMM kernel with Tensor Cores (WMMA) and end-to-end Qwen2 integration on NVIDIA Turing (SM75). Register-level dequantization, mma.sync.aligned intrinsics, and automatic M-padding wr…

    Python

  6. paged-attention-runtime paged-attention-runtime Public

    Custom CUDA implementation of block-based PagedAttention with prefix sharing, copy-on-write, concurrent batching, and end-to-end Qwen2 integration.

    Python 1

Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.