Search the archive

14,369 indexed articles, 13,297 of them summarised by us.

Articles
14,369
Research papers
91,965
Models priced
2,253
Providers
163

14 results for “CUTLASS”

Newest and most relevant first

Unlocking Tensor Core Performance for Machine Learning Interatomic Potentials

Teams running molecular simulations can now get 1.5-2.5x faster GEMM inference on NVIDIA GPUs without retraining models or accepting accuracy loss.

Scientists use neural networks, called machine learning interatomic potentials, to simulate molecules and materials faster than traditional quantum methods. NVIDIA showed that a math trick letting its chips do these calculations in lower precision keeps results just as accurate. Molecular simulation steps ran up to 1.7x faster on Blackwell GPUs with errors smaller than the model's own randomness.

NVIDIA reports that Tensor Core FP32 methods make AI-driven atomistic simulation significantly cheaper without sacrificing scientific accuracy. On Blackwell GPUs, large matrix operations in the Point Edge Transformer ran 2.2-2.5x faster; on Ampere A100s, TF32x3 gave a 1.5x full simulation-step speedup. Organizations running molecular dynamics or structural relaxation can cut GPU time and cost now, using existing cuBLAS and CUTLASS tooling.

BF16x9 on Blackwell decomposes each FP32 operand into three BF16 components via a cuBLAS environment variable, speeding PET's large GEMMs 2.2-2.5x (17,280 atoms) with error below model non-determinism. TF32x3 on Ampere via CUTLASS's OpMultiplyAddFastF32 omits the residual-residual product, keeping force error near FP32 and preserving NVE energy conservation. One-pass TF32, despite 2x speed, failed Cantor-alloy relaxation convergence. Combined gains with CUDA graphs were not measured.

NVIDIA Developer Blog →

Profiling in PyTorch (Part 3): Attention is all you profile

PyTorch engineers learn to read profiler traces to speed up attention, discovering that default one-liners can be slower than hand-written code and that in-place ops save kernels.

This is the third part of a Hugging Face tutorial series on profiling, a technique for seeing exactly how PyTorch code runs on a GPU. The authors break attention, the core calculation inside models like chatbots, into simple steps and watch how each one shows up in a profiler. They show that one small code change removes a wasteful data copy, and that the 'math' version of PyTorch's built-in attention function is actually 3.7 times slower than the naive version they wrote themselves. This affects anyone writing or speeding up PyTorch code.

Hugging Face's profiling tutorial demonstrates measurable GPU cost savings in PyTorch attention code: switching one call to an in-place operation removes a memory-copy kernel per forward pass, which compounds across every transformer layer. It also warns decision-makers' teams that the default 'math' backend of scaled_dot_product_attention is 3.7x slower because it avoids Tensor Cores. Engineers using FlashAttention or the efficient backend gain the most; those relying on defaults may be leaving performance on the table.

The post profiles naive attention, in-place masked_fill_, and F.scaled_dot_product_attention backends on an A100-SXM4-80GB. The math backend launches 20 kernels per forward (3.7x slower), upcasting bf16 to FP32 and rebuilding the causal mask via aten::ones/aten::tril each call. The efficient backend launches one fmha_cutlassF_bf16_aligned_64x64_rf_sm80 CUTLASS kernel; flash uses FlashAttention-2, avoiding materializing the [seq, seq] score matrix in HBM via online softmax. Flash shows only ~13% occupancy despite being fastest. Scripts are public.

Huggingface Blog →

We got local models to triage the OpenClaw repo for FREE!*

Shows that mid-sized local models on consumer-grade 128GB hardware can now match cloud models for classification triage, letting teams cut API spend and keep AI workflows running if a provider pulls a model.

Hugging Face engineers built 'localpager', a system that uses small AI models running on their own hardware to automatically sort hundreds of daily bug reports and code submissions in the OpenClaw project. Instead of paying for a cloud AI subscription like the $200/month ChatGPT plan, they used models like gemma-4-26b-a4b on an NVIDIA DGX Spark box, getting near-instant alerts for free. The models label each item by topic so only relevant ones ping them on Discord. Anyone maintaining open-source projects could copy this setup.

After Anthropic removed its Claude Fable 5 model, the authors argue businesses should own their AI stack. Their localpager system replaces a $200/month ChatGPT Pro subscription with free local inference on a 128GB NVIDIA GB10, classifying OpenClaw issues and PRs in real time rather than in 2-hour batches. Benchmarks on 330 labeled items show Qwen3.6-35b-a3b has higher precision while Gemma-4-26b-a4b has higher recall; neither needed fine-tuning. Organizations doing high-volume classification gain an alternative to per-seat API pricing.

localpager normalizes GitHub items via openclaw/gitcrawl into SQLite, then a worker builds a context object and prompts localpager-agent (pi harness) running gemma-4-26b-a4b (vLLM, NVFP4, FP8 KV cache, CUTLASS MoE) or qwen3.6-35b-a3b. The agent uses reposhell, a read-only shell restricting ls/cat/grep, to prevent prompt injection, demonstrated when qwen3.6-35b-a3b corrected labels on PR #88275 by inspecting package.json. On a 330-row eval (labels adjudicated from 3x GPT-5.5 + 2x Opus 4.8), Gemma achieved higher recall and the 330-row run finished in ~7.5 minutes at concurrency 16, exceeding 700 aggregate tokens/second at concurrency 32. DeepSeek-V4-Flash was dropped for inconsistent labeling and only ~14 tokens/second.

Huggingface Blog →

Profiling in PyTorch (Part 2): From nn.Linear to a Fused MLP

PyTorch engineers learn that torch.compile adds nothing for a single linear layer because bias is already fused as a GEMM epilogue, changing where optimization effort is worth spending.

Hugging Face published the second part of a tutorial series on reading PyTorch profiler traces, using an NVIDIA A100 GPU. It shows that a basic building block of neural networks, the linear layer, already fuses its math into one GPU operation, so the popular speedup tool torch.compile adds nothing there. The article then stacks three such layers into a network called an MLP and shows how combining operations into one kernel saves memory traffic. It matters to anyone training or serving AI models who wants their code to run faster.

This Hugging Face tutorial teaches engineers to profile PyTorch code on an A100 GPU and find that the reflex of reaching for torch.compile is wasted on single linear layers, since bias addition is already fused into the cuBLAS matmul kernel. Real gains come from fusing operations across multi-layer blocks, as torch.compile does for an MLP, or from hand-tuned kernels. Teams paying for GPU time gain the most; there is no cost, product or timing news here.

Part 2 of Hugging Face's profiling series traces nn.Linear on an A100-SXM4-80GB, showing aten::t is a zero-cost stride-view (no GPU kernel), and that aten::addmm dispatches a cuBLAS GEMM with bias-add as an epilogue, so torch.compile only removes CPU dispatch overhead, not GPU work. Kernel names like cutlass_80_..._tn_align8 encode layout (tn), dtype and tile. A GeGLU MLP (768/3072 dims, batch 64, seq 128) runs five kernels per forward, each GEMM ~38.7 GFLOP, with down_proj ~10% faster due to different N-shape tiling. Scripts 02_linear.py and 03_simple_mlp.py are provided.

Huggingface Blog →

NVIDIA CUDA 13.3 Enhances GPU Development with Tile Programming in C++, Compiler Autotuning, and Python Updates

CUDA 13.3 ships today with C++ tile programming, a 15% compiler auto-tuning speedup on GEMM and attention kernels, and stable CUDA Python 1.0, developers can install it immediately.

NVIDIA released version 13.3 of CUDA, the software toolkit used to program its graphics chips for AI and other heavy computing. The big change is a 'tile programming' feature for C++ that handles the hard, low-level work of splitting tasks across a GPU automatically. It also marks version 1.0 of CUDA Python, meaning stable, predictable updates for people using Python. It affects the engineers who build the fast AI systems underneath popular apps.

NVIDIA's CUDA 13.3 release lowers the cost of squeezing performance from NVIDIA GPUs. Its new CompileIQ auto-tuner reports up to 15% speedups on GEMM and attention kernels, the code that dominates LLM inference, meaning cheaper inference on existing hardware. CUDA Python 1.0 brings stability commitments and features like process checkpointing for long-running jobs. Teams already on NVIDIA hardware gain; no competitor platforms are addressed.

CUDA 13.3 extends CUDA Tile to C++ (now including Compute Capability 9.0/Hopper), automating parallelism, memory movement and asynchrony. CompileIQ uses evolutionary algorithms to tune compiler configs, delivering up to 15% speedup on already-optimized Triton attention and CUTLASS GEMM kernels. CUDA Python 1.0 adds semantic versioning, green contexts for SM partitioning, Linux-only process checkpointing, and IPC for zero-copy VRAM sharing via cuda.core. Numba CUDA MLIR 0.3 claims ~1.4x faster warm JIT compilation and 2-3.5x lower launch latency; NVCC gains full C++23 support.

NVIDIA Developer Blog →

Achieve CUTLASS C++ Performance with Python APIs Using CuTe DSL

Kernel developers can now write GPU kernels matching CUTLASS C++ Tensor Core performance in Python with JIT compilation, cutting autotuning and build times by up to 100x.

NVIDIA's CUTLASS is a widely used code library for writing fast math kernels on Nvidia GPUs. Its new version, CUTLASS 4, adds CuTe DSL, a way to write these kernels in Python instead of complex C++ templates. The Python version delivers nearly identical Tensor Core speed across GPU generations from Ampere to Blackwell, while compiling up to 100 times faster. This mainly helps AI researchers and engineers who build custom GPU operations.

NVIDIA released a Python interface (CuTe DSL) for its CUTLASS kernel library in CUTLASS 4, currently in beta. Teams can now build high-performance GPU kernels without C++ template expertise, with compilation 30-100x faster than C++, which also speeds PyTorch Inductor autotuning. Performance is close to C++ on Blackwell hardware, though small-K GEMM cases run slower pending optimization. Organizations writing custom kernels gain faster development cycles; C++ specialists lose some exclusivity.

CUTLASS 4's CuTe DSL (beta) exposes CuTe's layout algebra and thread mappings in Python via JIT compilation, with the same programming model as CuTe C++ across Ampere, Hopper, and Blackwell. Benchmarks on DGX B200 show near-parity with CUTLASS 3 C++ for dense GEMM (FP16, FP8 e4m3, FP32 accumulation), grouped GEMM, and FMHA; small K=512 GEMMs lag due to synchronization overhead. Compilation on Blackwell is ~100x faster for GEMM and 30-50x for flash attention. DLPack support enables zero-copy tensor exchange with DL frameworks.

NVIDIA Developer Blog →

Benchmarking LLMs on AI-Generated CUDA Code with ComputeEval 2025.2

NVIDIA's harder CUDA benchmark shows current LLMs struggle with modern GPU code, signalling AI coding assistants remain weak for performance-critical GPU work.

NVIDIA runs ComputeEval, an open test that measures how well AI models can write CUDA, the programming language for NVIDIA graphics chips. Version 2025.2 grew from 128 to 232 problems and adds harder challenges using modern chip features. All leading models scored worse on the new version because the test is tougher, not because the models got worse.

NVIDIA expanded its ComputeEval CUDA benchmark to 232 problems, adding over 100 hard tasks involving Tensor Cores, shared memory, and CUDA Graphs. Every leading model's accuracy dropped on 2025.2, showing AI assistants still cannot reliably write high-performance GPU code. Teams betting on AI-generated CUDA for compute-heavy work should expect human expertise to remain essential; future coverage will add cuBLAS, CUTLASS, cuDNN, and RAPIDS.

ComputeEval 2025.2 expands the benchmark from 128 to 232 CUDA and CCCL problems, testing Tensor Cores, warp-level primitives, advanced shared memory patterns, and orchestration of CUDA Graphs, Streams, and Events in real-world contexts like dynamic simulations. Pass@1 declined for all evaluated leading LLMs versus 2025.1, attributed to task difficulty rather than model regression. The article does not name the specific models or print their scores. Roadmap includes cuBLAS, CUTLASS, cuDNN, and RAPIDS; code is on GitHub, data on Hugging Face.

NVIDIA Developer Blog →

Improving GEMM Kernel Auto-Tuning Efficiency on NVIDIA GPUs with Heuristics and CUTLASS 4.2

GPU developers can now find near-optimal GEMM kernels in minutes instead of spending hours on exhaustive compile-and-tune searches, directly cutting JIT compilation time in frameworks like PyTorch.

NVIDIA released a tool called nvMatmulHeuristics that picks the best version of the math kernels (matrix multiplication routines) that power AI models. Normally computers must try thousands of versions to find the fastest one, which takes over 700 minutes; the tool predicts a few good candidates first, reaching 96-99% of the best speed in roughly 150 minutes or less. This matters for anyone training large AI models or building fast AI software.

NVIDIA's nvMatmulHeuristics, now in early access and integrated into CUTLASS 4.2, cuts GEMM kernel tuning from an hours-long exhaustive search into a quick heuristic-guided selection. On Llama 3 405B training it hit 96% of peak performance in ~150 minutes versus 700+; on DeepSeek-R1 671B on B200 it reached 99% with over 5x faster build and tuning, and 104% with static cluster sizes. Teams doing JIT compilation (PyTorch, Triton) and large-scale training gain the most.

nvMatmulHeuristics analyzes GEMM problem shape, data types, and auto-detected hardware (including MIG, green contexts) to emit a top-N list of CUTLASS configurations covering CTA/warp/instruction tiles, split-k, swizzling, and cluster dims; CUTLASS 4.2 then compiles only these candidates and profiles runtime parameters via cutlass_profiler with a generated CSV testlist. It supports Ampere, Ada, Hopper, and preliminary Blackwell across FP4 through INT8 precisions. Benchmarks: Llama 3 405B on H100 SXM, 96% of exhaustive baseline in ~150 min vs 700+; DeepSeek-R1 671B on B200, 99% with >5x speedup, 104% when static cluster sizes are exploited. Early access, with internal discovery-set loading for accuracy.

NVIDIA Developer Blog →

NVIDIA Hardware Innovations and Open Source Contributions Are Shaping AI

Developers can now run an entire AI workflow on free NVIDIA tools and models, but the real gains, 4x faster inference via Dynamo 0.4, only land on NVIDIA's own Blackwell hardware.

This is a NVIDIA blog post about the free tools and AI models the company gives away. Its Blackwell chips process some AI data in a 4-bit format called NVFP4, and its Dynamo 0.4 software serves answers from big open models up to 4x faster. NVIDIA also shares over 450 free models, including Nemotron for chatbots and Cosmos for robotics training. Anyone can download these today, but the fastest results require buying NVIDIA's newest GPUs.

NVIDIA is positioning free, openly licensed software and models as a reason to stay in its ecosystem, where the performance gains accrue. Dynamo 0.4 with TensorRT-LLM delivers up to 4x faster interactive responses for GPT-OSS 120B on B200 GPUs and 2.5x higher per-GPU throughput for DeepSeek-R1 on GB200 NVL72. For buyers, the open models reduce vendor lock-in on software, but the speedups depend on owning Blackwell hardware, so compute spending still flows to NVIDIA.

Blackwell pairs fifth-generation Tensor Cores with NVFP4, a 4-bit floating-point format, NVLink-72 interconnect, and second-generation Transformer Engines. Dynamo 0.4 plus TensorRT-LLM reports 4x faster interactivity for GPT-OSS 120B on B200 and 2.5x higher per-GPU throughput for DeepSeek-R1 671B on GB200 NVL72, using inference disaggregation and NIXL for data movement. The stack spans RAPIDS (data prep), NeMo (training), CUTLASS (GEMM kernels), and Dynamo serving. Benchmarks are NVIDIA-reported with no independent verification.

NVIDIA Developer Blog →

Delivering 1.5 M TPS Inference on NVIDIA GB200 NVL72, NVIDIA Accelerates OpenAI gpt-oss Models from Cloud to Edge 

Open-weight models that previously needed a GPU cluster can now serve tens of thousands of concurrent users from one rack, and the 20b variant runs locally on a single 16 GB consumer GPU.

NVIDIA optimized OpenAI's newly released open-weight AI models, gpt-oss-20b and gpt-oss-120b, to run very fast on NVIDIA hardware. A large rack of NVIDIA chips can now answer at 1.5 million tokens per second, roughly 50,000 simultaneous users. The smaller model runs on a regular gaming PC with at least 16 GB of graphics memory. Developers using NVIDIA tools get these optimizations immediately.

NVIDIA and OpenAI coordinated a day-one launch: NVIDIA hardware and software can serve gpt-oss-120b at 1.5 million tokens per second on one GB200 NVL72 rack, reducing serving cost per token for inference providers. Enterprises can deploy the models via NVIDIA NIM microservices with security and privacy guarantees, or run them locally on RTX workstations for data privacy. Competing accelerator and inference-stack vendors lose the default position here; NVIDIA's platform becomes the optimized choice.

Both gpt-oss models use mixture-of-experts with SwiGLU activations and RoPE attention (128k context, alternating full and 128-token sliding windows), released in FP4 (MXFP4) precision natively supported by Blackwell. NVIDIA added CUTLASS MoE and XQA kernels, FlashInfer support, and TensorRT-LLM Gen for prefill, decode, and low-latency MoE. NVIDIA Dynamo's disaggregated serving yields 4x interactivity improvement at 32k input sequence length on Blackwell. The 20b model trained in about 210,000 H100 hours versus 2.1 million for 120b.

NVIDIA Developer Blog →

CUTLASS 3.x: Orthogonal, Reusable, and Composable Abstractions for GEMM Kernel Design

GPU programmers can now assemble Hopper and Blackwell GEMM kernels from composable building blocks instead of writing architecture-specific code, and FlashAttention-3 already reuses the same abstractions.

NVIDIA is updating CUTLASS, its free toolkit for writing fast matrix-multiplication code on NVIDIA GPUs, the calculations behind AI models. Version 3.x organizes the code into five layers of reusable parts, so developers can mix and match pieces rather than rewrite everything for each new chip. Anyone building GPU software, especially for AI, benefits. No pricing is involved; the software is downloadable from GitHub.

NVIDIA's CUTLASS 3.x redesigns its GPU matrix-multiplication library around five composable layers spanning Atom through Device, maximizing implementation coverage across Hopper and Blackwell chips. The tool is open source on GitHub with no licensing cost; the real cost is engineering time to learn its templates. Teams hand-writing GEMM kernels for AI inference or training may reduce that work, and FlashAttention-3 already uses these abstractions. No benchmark figures are given in the post.

CUTLASS 3.x defines a five-layer hierarchy, Atom, Tiled MMA/Copy, Collective, Kernel, Device, where the Collective layer uses dispatch policies like MainloopSm90TmaGmmaWarpSpecialized to specialize mainloops for Hopper TMA warp-specialized execution. The CollectiveBuilder deduces TiledMma, TiledCopy, and SMEM layouts from architecture, operand types, tile shapes, and scheduling criteria, with Auto defaults for stage count and kernel schedule. Kernel-layer GemmUniversal composes collective mainloop and epilogue (with Epilogue Visitor Trees for fusion) into a stateless device kernel wrapped by GemmUniversalAdapter. Examples 49 (Hopper) and 71 (Blackwell Stream-K) illustrate usage; no benchmark numbers are provided.

NVIDIA Developer Blog →

CUTLASS: Principled Abstractions for Handling Multidimensional Data Through Tensors and Spatial Microkernels

CUDA developers writing custom high-performance GPU kernels can now access CUTLASS 3.x's abstractions directly from Python via CUTLASS 4.0, which is downloadable today.

NVIDIA has released version 4.0 of CUTLASS, a free toolkit for building fast code that runs on the company's graphics chips. Writing efficient graphics-chip code is hard because programmers must manually match hundreds of threads to pieces of data. This toolkit handles that mapping automatically using a math-like system, cutting down error-prone manual bookkeeping while keeping full speed. It mainly benefits machine-learning and scientific-computing engineers who need custom operations beyond standard libraries.

CUTLASS 4.0 is now available on GitHub, exposing the CUTLASS 3.x core library (CuTe) through a new Python interface. For teams training or serving large models, this shortens development of custom GPU operations that off-the-shelf libraries and compilers cannot express efficiently, potentially recovering the last few percent of GPU performance competitors may leave on the table. The main cost is learning the new abstraction; no pricing or adoption figures are given.

CUTLASS 3.x centres on CuTe, whose hierarchical Layout<Shape,Stride> type uniformly represents tensors of both threads and data, with a layout algebra for functional composition and partitioning, replacing hand-coded thread-to-data indexing. MMA atoms pair PTX instructions with thread-value layouts, and Tiled MMA/Tiled Copy layers scale atoms to thread blocks with one partitioning API. Compile-time static asserts enforce correctness, and Hopper WGMMA, TMA, and Blackwell UMMA features are supported. CUTLASS 4.0 adds a Python interface; temporal pipelining decisions remain at the CUTLASS level.

NVIDIA Developer Blog →

Advanced NVIDIA CUDA Kernel Optimization Techniques: Handwritten PTX

Very little changes for most developers: NVIDIA's own guidance is that hand-written PTX is a last resort, and the 7-14% gains shown apply only to a specific fused GEMM kernel on Hopper GPUs.

NVIDIA published a tutorial on PTX, which is the assembly language, the most low-level code, that runs on its GPUs. Using an example from its CUTLASS library that handles a common step in mixture-of-experts AI models, NVIDIA shows that writing PTX by hand instead of its usual C++ code speeds things up by 7-14% on a GH200 server GPU. The company stresses almost nobody should do this: the code is harder to write and debug, and may not work on other GPU models.

This is an advanced engineering tutorial, not a product launch, so there is nothing to buy or adopt. The message for decision-makers is that NVIDIA's optimised libraries (CUBLAS, CUTLASS) already contain hand-tuned GPU assembly where it pays off, and most teams gain nothing by going lower. The 7-14% throughput gain was measured only on the Hopper architecture (GH200), so hand-written low-level code risks not porting to future GPUs, an argument for building on NVIDIA's libraries rather than duplicating them.

NVIDIA benchmarks CUTLASS example 61 (fused GEMM with top_k=2 and softmax, the MoE routing pattern) on a GH200, toggling inline PTX in sm90_visitor_topk_softmax.hpp against CUDA C++ fallbacks. PTX versions of top_2/top_4 reduce and fast_masked_softmax deliver 7-14% higher GFlop/s across m=1,024 to 16,384 tokens (n=8, k=4096), with the PTX run reaching 5,704 GFlop/s at m=1024. Embedding options are inline PTX asm and the cuda::ptx namespace in libcu++; Hopper features require building with -DCUTLASS_NVCC_ARCHS=90a. Gains are kernel-specific and may not transfer across GPU architectures.

NVIDIA Developer Blog →

NVIDIA Blackwell and NVIDIA CUDA 12.9 Introduce Family-Specific Architecture Features

CUDA 12.9's new 'f' suffix lets Blackwell tensor-core code run across CC 10.x GPUs, but only developers writing PTX or using header libraries like CUTLASS must change builds.

NVIDIA's CUDA toolkit has long let programs written for older GPUs run on newer ones automatically. CUDA 12.9, tied to the Blackwell GPU generation, adds a new 'family-specific' compile option: code built this way runs on any GPU in the same family (like all 10.x models) rather than just one exact chip. It only matters to programmers using specialized instructions for the GPUs' math accelerator hardware.

Most CUDA developers need do nothing: existing builds keep working, and prebuilt binary libraries handle compatibility internally. The change affects teams writing PTX directly or shipping header libraries like CUTLASS, who must now add 'f'-suffix targets (e.g. compute_100f) and fallback code paths for older GPUs. The cost is build complexity; the benefit is tensor-core performance on Blackwell with guaranteed portability across future 10.x GPUs. No pricing or performance numbers are given.

CUDA compatibility works via PTX virtual ISA plus driver JIT compilation: cubins run on same-major, higher-minor compute capabilities; PTX runs forward. Hopper (CC 9.0) introduced architecture-specific features via the 'a' suffix (e.g. sm_90a) with no forward compatibility. CUDA 12.9/Blackwell adds family-specific 'f' suffix targets (e.g. sm_100f, currently CC 10.0 and 10.3) guaranteed across same-major, higher-minor GPUs. Guard code with __CUDA_ARCH_SPECIFIC__ or __CUDA_ARCH_FAMILY_SPECIFIC__; sm_100 and sm_100f are aliases.

NVIDIA Developer Blog →