NVIDIA / NVIDIA/CUDALibrarySamples

cuSPARSELt FP4 Issue on RTX 5090

Open
#253 6 comments 0 reactions 1 assignee View on GitHub

@j4yan is already working on this.

Since Jun 11, 2025.

cuSPARSELt
Dominant language
Cuda
Stars
2.5k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

I'm trying to achieve "3352 Effective AI TOPS / TFLOPS using the Sparsity Feature" on 5090.

My code (matmul_fp4.cpp.txt) is based on the cuSPARSELt example 1, it works good on FP16, INT8 and FP8, but not FP4.

with m=n=k=32, cusparseLtMatmul failed with internal error (7) matmul_fp4-5.log

with m=n=k>=64, cusparseLtMatmulSearch failed with internal error (7) matmul_fp4-6.log

and it is interesting that compressed_size is actually bigger than A_size.

Where am I wrong?

P.S. nvidia-smi.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.