Class QuantPolicy
java.lang.Object
smile.llm.quant.QuantPolicy
Resolves checkpoint
QuantFormat and WeightGemmBackend for load.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResolved quant policy for a checkpoint load. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuantPolicy.ResolvedDetects format and selects backend (autoor explicit override).
-
Method Details
-
resolve
public static QuantPolicy.Resolved resolve(Path checkpointDir, Device device, String backendOverride) throws IOException Detects format and selects backend (autoor explicit override).- Parameters:
checkpointDir- model directory.device- target device.backendOverride-auto/dense/fp8/nvfp4/marlin, ornullto useQuantBackendOverride/auto.- Returns:
- resolved format and backend.
- Throws:
IOException- if checkpoint IO fails.
-