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>
public Nullable<uint> ContextSize { get; set; }
public int MainGpu { get; set; }
public GPUSplitMode SplitMode { get; set; }
public int GpuLayerCount { get; set; }
public uint Seed { get; set; }
public bool UseMemorymap { get; set; }
public bool UseMemoryLock { get; set; }
public string ModelPath { get; set; }
public AdapterCollection LoraAdapters { get; set; }
public string LoraBase { get; set; }
public Nullable<uint> Threads { get; set; }
public Nullable<uint> BatchThreads { get; set; }
public uint BatchSize { get; set; }
public bool EmbeddingMode { get; set; }
public TensorSplitsCollection TensorSplits { get; set; }
public List<MetadataOverride> MetadataOverrides { get; set; }
public Nullable<float> RopeFrequencyBase { get; set; }
public Nullable<float> RopeFrequencyScale { get; set; }
public Nullable<float> YarnExtrapolationFactor { get; set; }
public Nullable<float> YarnAttentionFactor { get; set; }
public Nullable<float> YarnBetaFast { get; set; }
public Nullable<float> YarnBetaSlow { get; set; }
public Nullable<uint> YarnOriginalContext { get; set; }
public Nullable<RopeScalingType> YarnScalingType { get; set; }
public Nullable<GGMLType> TypeK { get; set; }
public Nullable<GGMLType> TypeV { get; set; }
public bool NoKqvOffload { get; set; }
public float DefragThreshold { get; set; }
public bool DoPooling { get; set; }
public bool VocabOnly { get; set; }
public Encoding Encoding { get; set; }
public ModelParams(string modelPath)
modelPath String
The model path.
public string ToString()
protected bool PrintMembers(StringBuilder builder)
builder StringBuilder
public int GetHashCode()
public bool Equals(object obj)
obj Object
public bool Equals(ModelParams other)
other ModelParams
public ModelParams <Clone>$()