refactor(hicache): Introduce generic HiCacheStorageConfig for improved configuration management (#9555)
Co-authored-by: Teng Ma <805522925@qq.com>
This commit is contained in:
@@ -57,9 +57,7 @@ def test():
|
||||
)
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"Failed to dump config to {config_path}: {str(e)}")
|
||||
|
||||
rank = 0
|
||||
hicache_hf3fs = HiCacheHF3FS.from_env_config(bytes_per_page, dtype, rank)
|
||||
hicache_hf3fs = HiCacheHF3FS.from_env_config(bytes_per_page, dtype)
|
||||
|
||||
numel = 2 * tokens_per_page * layer_num * head_num * head_dim
|
||||
assert numel * dtype.itemsize == bytes_per_page
|
||||
|
||||
Reference in New Issue
Block a user