ModelParams
Namespace: LLama.Common
The parameters for initializing a LLama model.
public class ModelParams : LLama.Abstractions.ILLamaParams, LLama.Abstractions.IModelParams, LLama.Abstractions.IContextParams, System.IEquatable`1[[LLama.Common.ModelParams, LLamaSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → ModelParams
Implements ILLamaParams, IModelParams, IContextParams, IEquatable<ModelParams>
Properties
ContextSize
public Nullable<uint> ContextSize { get; set; }
Property Value
MainGpu
public int MainGpu { get; set; }
Property Value
SplitMode
public GPUSplitMode SplitMode { get; set; }
Property Value
GpuLayerCount
public int GpuLayerCount { get; set; }
Property Value
Seed
public uint Seed { get; set; }
Property Value
UseMemorymap
public bool UseMemorymap { get; set; }
Property Value
UseMemoryLock
public bool UseMemoryLock { get; set; }
Property Value
ModelPath
public string ModelPath { get; set; }
Property Value
LoraAdapters
public AdapterCollection LoraAdapters { get; set; }
Property Value
LoraBase
public string LoraBase { get; set; }
Property Value
Threads
public Nullable<uint> Threads { get; set; }
Property Value
BatchThreads
public Nullable<uint> BatchThreads { get; set; }
Property Value
BatchSize
public uint BatchSize { get; set; }
Property Value
EmbeddingMode
public bool EmbeddingMode { get; set; }
Property Value
TensorSplits
public TensorSplitsCollection TensorSplits { get; set; }
Property Value
MetadataOverrides
public List<MetadataOverride> MetadataOverrides { get; set; }
Property Value
RopeFrequencyBase
public Nullable<float> RopeFrequencyBase { get; set; }
Property Value
RopeFrequencyScale
public Nullable<float> RopeFrequencyScale { get; set; }
Property Value
YarnExtrapolationFactor
public Nullable<float> YarnExtrapolationFactor { get; set; }
Property Value
YarnAttentionFactor
public Nullable<float> YarnAttentionFactor { get; set; }
Property Value
YarnBetaFast
public Nullable<float> YarnBetaFast { get; set; }
Property Value
YarnBetaSlow
public Nullable<float> YarnBetaSlow { get; set; }
Property Value
YarnOriginalContext
public Nullable<uint> YarnOriginalContext { get; set; }
Property Value
YarnScalingType
public Nullable<RopeScalingType> YarnScalingType { get; set; }
Property Value
TypeK
public Nullable<GGMLType> TypeK { get; set; }
Property Value
TypeV
public Nullable<GGMLType> TypeV { get; set; }
Property Value
NoKqvOffload
public bool NoKqvOffload { get; set; }
Property Value
DefragThreshold
public float DefragThreshold { get; set; }
Property Value
DoPooling
public bool DoPooling { get; set; }
Property Value
VocabOnly
public bool VocabOnly { get; set; }
Property Value
Encoding
public Encoding Encoding { get; set; }
Property Value
Constructors
ModelParams(String)
public ModelParams(string modelPath)
Parameters
modelPath
String
The model path.
Methods
ToString()
public string ToString()
Returns
PrintMembers(StringBuilder)
protected bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
GetHashCode()
public int GetHashCode()
Returns
Equals(Object)
public bool Equals(object obj)
Parameters
obj
Object
Returns
Equals(ModelParams)
public bool Equals(ModelParams other)
Parameters
other
ModelParams
Returns
<Clone>$()
public ModelParams <Clone>$()