Browse Source

Clean up duplicate property

tags/0.11.0
SignalRT 1 year ago
parent
commit
8907adcd8e
2 changed files with 22 additions and 8 deletions
  1. +12
    -2
      LLama/Abstractions/ILLamaExecutor.cs
  2. +10
    -6
      LLama/LLamaExecutorBase.cs

+ 12
- 2
LLama/Abstractions/ILLamaExecutor.cs 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>


+ 10
- 6
LLama/LLamaExecutorBase.cs 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>


Loading…
Cancel
Save