mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-18 03:57:07 +08:00
Use persistent cache
This commit is contained in:
parent
707a5f6473
commit
f6637dba18
@ -57,14 +57,15 @@ class TPUWorker(LoraNotSupportedWorkerBase):
|
||||
vision_language_config=vision_language_config)
|
||||
self.tpu_cache = None
|
||||
|
||||
# jax.config.update("jax_compilation_cache_dir",
|
||||
# os.path.expanduser("~/.vllm/jax_cache"))
|
||||
|
||||
def init_device(self) -> None:
|
||||
# Set random seed.
|
||||
# TODO: Set random seed for JAX
|
||||
set_random_seed(self.model_config.seed)
|
||||
|
||||
# Use persistent cache to avoid recompilation.
|
||||
jax.config.update("jax_compilation_cache_dir",
|
||||
os.path.expanduser("~/.vllm/jax_cache"))
|
||||
|
||||
# DELETE
|
||||
from jax_smi import initialise_tracking
|
||||
initialise_tracking()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user