[HiCache] Optimize L2 mem allocation when cache miss in L3 (#19320)
Co-authored-by: Zhiqiang Xie <xiezhq@stanford.edu>
This commit is contained in:
@@ -114,7 +114,6 @@ print(f"{tok-tik:.6f} s")
|
||||
operations = [
|
||||
PrefetchOperation(
|
||||
f"{i}",
|
||||
torch.tensor(list(range(i, i + op_size))),
|
||||
list(range(i, i + op_size)),
|
||||
f"{i}",
|
||||
)
|
||||
@@ -122,6 +121,7 @@ operations = [
|
||||
]
|
||||
|
||||
for operation in operations:
|
||||
operation.host_indices = torch.tensor(operation.token_ids)
|
||||
operation.hash_value = [
|
||||
f"{j}"
|
||||
for j in range(
|
||||
|
||||
Reference in New Issue
Block a user