From 20b53636016b804a0e033229a3543fe04439e040 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Sat, 2 Sep 2023 12:56:02 +0800 Subject: [PATCH] fix: remove the history commit of embedding length property. --- LLama/LLamaContext.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/LLama/LLamaContext.cs b/LLama/LLamaContext.cs index 3567feca..0cb77f60 100644 --- a/LLama/LLamaContext.cs +++ b/LLama/LLamaContext.cs @@ -55,20 +55,6 @@ namespace LLama /// The encoding set for this model to deal with text input. /// public Encoding Encoding => _encoding; - /// - /// The embedding length of the model, also known as `n_embed` - /// - public int EmbeddingLength - { - get - { - if(_ctx is null) - { - throw new NullReferenceException("The native context has not been created in this model."); - } - return NativeApi.llama_n_embd(_ctx); - } - } /// ///