update config and entrypoints

This commit is contained in:
hsliu committed 2025-09-11 16:15:48 +08:00
1 parent 8e075d4917
commit dcb8868477
7 files changed
+38 -103

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
from dataclasses import dataclass
@dataclass
class DiTCacheTensor:
"""
A class for specifying how the workers should initialize the DiT cache.
"""
size: int # the size of the cache tensor in bytes
@dataclass
class DiTCacheConfig:
"""
The DiT cache configuration of a model.
"""
"""How should model runner initialize the KV cache tensors for each layer"""
dit_cache_tensors: list[DiTCacheTensor]
"""
The DiT cache groups of the model.
For models with only one type of DiT, there is only one group that
contains all layers.
"""
kv_cache_groups: list[DiTCacheTensor]