Initialize v_cache to avoid NaNs (#12)
This commit is contained in:
parent
2fda8fe812
commit
072f267cc3
|
@ -53,8 +53,9 @@ class CacheManager:
|
|||
dtype=dtype,
|
||||
device=device,
|
||||
),
|
||||
torch.empty(
|
||||
torch.full(
|
||||
(num_blocks, num_heads, head_size, self.block_size),
|
||||
self.v_cache_initial_value,
|
||||
dtype=dtype,
|
||||
device=device,
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue