diff --git a/LLama/Native/LLamaKvCacheView.cs b/LLama/Native/LLamaKvCacheView.cs index 5dad1fc3..ea1c1172 100644 --- a/LLama/Native/LLamaKvCacheView.cs +++ b/LLama/Native/LLamaKvCacheView.cs @@ -67,7 +67,7 @@ public class LLamaKvCacheViewSafeHandle /// /// public LLamaKvCacheViewSafeHandle(SafeLLamaContextHandle ctx, LLamaKvCacheView view) - : base(IntPtr.MaxValue, true) + : base((IntPtr)1, true) { _ctx = ctx; _view = view;