Class FlashInferArtifacts
java.lang.Object
smile.llm.attention.FlashInferArtifacts
Resolves FlashInfer AOT / jit-cache directory for hybrid packaging:
explicit dir → env / bundled default → cache-dir → optional download.
Download-only (no nvcc). Artifacts are flashinfer-jit-cache wheels,
not flashinfer-cubin.
-
Field Details
-
BUNDLED_AOT_DIR
Default install path inside the GPU Docker image.- See Also:
-
DEFAULT_JIT_CACHE_VERSION
Pinned jit-cache release used whensmile.chat.flashinfer-download=true.- See Also:
-
-
Method Details
-
resolveAndInstall
public static Optional<Path> resolveAndInstall(String aotDir, String cacheDir, boolean allowDownload, String cudaTag) Resolves and installs the AOT directory into the native library.- Parameters:
aotDir- explicit config path (may be blank).cacheDir- download / extract cache (may be blank).allowDownload- when true, fetch jit-cache intocacheDirif missing.cudaTag- wheel CUDA tag such ascu130(FlashInfer jit-cache max for 0.6.6; LibTorch may still be cu132).- Returns:
- resolved directory, or empty when none available.
-