diff --git a/LLama/Native/SafeLlamaModelHandle.cs b/LLama/Native/SafeLlamaModelHandle.cs index acaee849a..5f2a5ae8a 100644 --- a/LLama/Native/SafeLlamaModelHandle.cs +++ b/LLama/Native/SafeLlamaModelHandle.cs @@ -74,6 +74,13 @@ public string Description /// public int MetadataCount => llama_model_meta_count(this); + /// + public new void Dispose() + { + ReleaseHandle(); + base.Dispose(); + } + /// protected override bool ReleaseHandle() {