diff --git a/LLama/Abstractions/ILLamaExecutor.cs b/LLama/Abstractions/ILLamaExecutor.cs index 64ca0a0b..51e613c3 100644 --- a/LLama/Abstractions/ILLamaExecutor.cs +++ b/LLama/Abstractions/ILLamaExecutor.cs @@ -14,10 +14,20 @@ namespace LLama.Abstractions public LLamaContext Context { get; } // LLava Section + // + /// + /// Identify if it's a multi-modal model and there is a image to process. + /// public bool IsMultiModal { get; } - public bool MultiModalProject { get; } + /// + /// Muti-Modal Projections / Clip Model weights + /// public LLavaWeights? ClipModel { get; } - public string ImagePath { get; set; } + + /// + /// Image filename and path (jpeg images). + /// + public string? ImagePath { get; set; } /// diff --git a/LLama/LLamaExecutorBase.cs b/LLama/LLamaExecutorBase.cs index ba3fcd64..b31d087a 100644 --- a/LLama/LLamaExecutorBase.cs +++ b/LLama/LLamaExecutorBase.cs @@ -64,17 +64,22 @@ namespace LLama /// public LLamaContext Context { get; } - // LLava Section + // LLava Section + // + /// public bool IsMultiModal { get { - return ClipModel != null && !string.IsNullOrEmpty(ImagePath); + return ClipModel != null && ImagePath != null; } } - public bool MultiModalProject { get; } - public LLavaWeights? ClipModel { get; } - public string ImagePath { get; set; } + + /// + public LLavaWeights? ClipModel { get; } + + /// + public string? ImagePath { get; set; } /// /// Current "mu" value for mirostat sampling @@ -103,7 +108,6 @@ namespace LLama this( context, logger ) { ClipModel = lLavaWeights; - MultiModalProject = true; } ///