vllm.model_executor.model_loader.weight_cache.artifact_store
¶
Storage backends for daemon warmup-cache artifacts (disk and shared stores).
Classes:
-
ArtifactStore–One warmup-cache artifact store: bytes in and out, keyed by artifact_key.
-
DiskArtifactStore–The local disk store: one directory tree per warmup-cache kind.
-
MooncakeArtifactStore–MooncakeDistributedStore wrapper via MOONCAKE_CONFIG_PATH.
Functions:
-
artifact_key–Canonical key for one warmup-cache artifact, valid in every store.
ArtifactStore
¶
Bases: Protocol
One warmup-cache artifact store: bytes in and out, keyed by artifact_key.
Methods:
Source code in vllm/model_executor/model_loader/weight_cache/artifact_store.py
get(key)
¶
DiskArtifactStore
¶
Bases: ArtifactStore
The local disk store: one directory tree per warmup-cache kind.
Source code in vllm/model_executor/model_loader/weight_cache/artifact_store.py
MooncakeArtifactStore
¶
Bases: ArtifactStore
MooncakeDistributedStore wrapper via MOONCAKE_CONFIG_PATH.
Methods:
-
get–Fetch the artifact; a miss or a native error reads as empty.
-
put–Publish the artifact; first writer wins, so publishers are idempotent.
Source code in vllm/model_executor/model_loader/weight_cache/artifact_store.py
get(key)
¶
put(key, data)
¶
Publish the artifact; first writer wins, so publishers are idempotent.
Source code in vllm/model_executor/model_loader/weight_cache/artifact_store.py
artifact_key(kind, config_hash, filename)
¶
Canonical key for one warmup-cache artifact, valid in every store.