Clean up duplicate property
This commit is contained in:
parent
4c013aefd4
commit
8907adcd8e
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue