Commit 7888000e authored by sbl1996@126.com's avatar sbl1996@126.com

Move jax cache in server

parent c0d2734e
......@@ -34,10 +34,7 @@ duel_states: Dict[str, PredictState] = {}
@asynccontextmanager
async def lifespan(app: FastAPI):
from jax.experimental.compilation_cache import compilation_cache as cc
cc.set_cache_dir(os.path.expanduser("~/.cache/jax"))
async def lifespan(app: FastAPI):
init_code_list(settings.code_list)
checkpoint = settings.checkpoint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment