Linear Algebra#
Overview#
The Linear Algebra module nvmath.
in nvmath-python leverages various NVIDIA
math libraries to support multiple linear algebra computations. As of the initial Beta
release, we offer the specialized matrix multiplication API based on the cuBLASLt library.
API Reference#
Generic Linear Algebra APIs (nvmath. linalg
)#
Generic APIs will be available in a later release.
Specialized Linear Algebra APIs (nvmath. linalg. advanced
)#
|
Perform the specified matrix multiplication computation \(F(\alpha a @ b + \beta c)\), where \(F\) is the epilog. |
NumPy dtype object that encapsulates the matrix qualifiers in linalg.advanced. |
|
|
An interface class to query algorithm capabilities and configure the algorithm. |
|
Create a stateful object encapsulating the specified matrix multiplication computation \(\alpha a @ b + \beta c\) and the required resources to perform the operation. |
alias of |
|
alias of |
|
|
See |
|
These flags can be combined with the | operator: OP_TYPE_FMA | OP_TYPE_TENSOR_HMMA ... |
alias of |
|
|
A data class for providing epilog options as part of |
|
A data class for providing options to the |
|
A data class for providing options to the |
|
A data class for providing quantization_scales to |
Helpers#
The Specialized Linear Algebra helpers module nvmath.
provides helper functions to facilitate working with some of the complex features of
nvmath.
module.
Matmul helpers (nvmath. linalg. advanced. helpers. matmul
)#
|
Create MXFP8 block scale with the same value for the whole tensor |
|
Compute a reciprocal of MXFP8 block scale. |
|
Apply MXFP8 block scale factors to tensor |
|
Computes the offset of MXFP8 scale used for element |