feat(kernels): generalize persistent CuTe JIT cache (#33911)

This commit is contained in:
James Liu
2026-09-02 19:59:04 -07:00
committed by GitHub
parent 28262c20df
commit 4229088a48
6 changed files with 487 additions and 308 deletions
+4
View File
@@ -1086,6 +1086,10 @@ class Envs:
# Cache directories
# ===================================================================
SGLANG_CACHE_DIR = EnvStr(os.path.expanduser("~/.cache/sglang"))
# Persistent CuTe DSL AOT objects. Resolved lazily so it tracks
# SGLANG_CACHE_DIR; set to an empty string to keep compilation
# process-local. Must be trusted: cached objects are loaded into the process.
SGLANG_CUTE_AOT_CACHE_DIR = EnvStr(lambda: _default_cache_subdir("cute_aot"))
# JIT kernel build cache. None = unset, resolving to ~/.cache/sglang/jit;
# point it at a persistent mount to share builds across CI jobs.
SGLANG_JIT_CACHE_DIR = EnvStr(None)