Enum Class WeightGemmBackend
- All Implemented Interfaces:
Serializable, Comparable<WeightGemmBackend>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]computeCapability(Device device) Returns{major, minor}fordevice, or{0,0}on CPU.booleanReturns whether this backend is the Ampere/Ada INT4 failover.booleanReturns whether this is a primary native low-precision path.static WeightGemmBackendselect(Device device, QuantFormat format) Selects the weight GEMM backend.static WeightGemmBackendReturns the enum constant of this class with the specified name.static WeightGemmBackend[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DENSE
Dense BF16/FP16 GEMM. -
FP8
Native FP8 weight GEMM (Hopper+). -
NVFP4
Native NVFP4 weight GEMM (Blackwell+). -
MARLIN
Marlin INT4 failover (Ampere/Ada).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
select
Selects the weight GEMM backend.- Parameters:
device- CUDA (or CPU) device that will run inference.format- checkpoint quantization format.- Returns:
- the backend to use.
- Throws:
IllegalStateException- on unsupported format/GPU combinations.
-
computeCapability
Returns{major, minor}fordevice, or{0,0}on CPU.- Parameters:
device- compute device.- Returns:
- CUDA compute capability major/minor.
-
isFailover
public boolean isFailover()Returns whether this backend is the Ampere/Ada INT4 failover.- Returns:
truewhen this backend is the Ampere/Ada INT4 failover.
-
isPrimary
public boolean isPrimary()Returns whether this is a primary native low-precision path.- Returns:
truewhen this is a primary native low-precision path.
-