Clean up duplicate property

This commit is contained in:
SignalRT 2024-03-18 19:52:45 +01:00
parent 4c013aefd4
commit 8907adcd8e
2 changed files with 22 additions and 8 deletions

View File

@ -14,10 +14,20 @@ namespace LLama.Abstractions
public LLamaContext Context { get; }
// LLava Section
//
/// <summary>
/// Identify if it's a multi-modal model and there is a image to process.
/// </summary>
public bool IsMultiModal { get; }
public bool MultiModalProject { get; }
/// <summary>
/// Muti-Modal Projections / Clip Model weights
/// </summary>
public LLavaWeights? ClipModel { get; }
public string ImagePath { get; set; }
/// <summary>
/// Image filename and path (jpeg images).
/// </summary>
public string? ImagePath { get; set; }
/// <summary>

View File

@ -64,17 +64,22 @@ namespace LLama
/// </summary>
public LLamaContext Context { get; }
// LLava Section
// LLava Section
//
/// <inheritdoc />
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; }
/// <inheritdoc />
public LLavaWeights? ClipModel { get; }
/// <inheritdoc />
public string? ImagePath { get; set; }
/// <summary>
/// Current "mu" value for mirostat sampling
@ -103,7 +108,6 @@ namespace LLama
this( context, logger )
{
ClipModel = lLavaWeights;
MultiModalProject = true;
}
/// <summary>