Skip to content

LoraAdapter

Namespace: LLama.Abstractions

A LoRA adapter to apply to a model

public struct LoraAdapter

Inheritance ObjectValueTypeLoraAdapter
Implements IEquatable<LoraAdapter>

Properties

Path

Path to the LoRA file

public string Path { get; set; }

Property Value

String

Scale

Strength of this LoRA

public float Scale { get; set; }

Property Value

Single

Constructors

LoraAdapter(String, Single)

A LoRA adapter to apply to a model

LoraAdapter(string Path, float Scale)

Parameters

Path String
Path to the LoRA file

Scale Single
Strength of this LoRA

Methods

ToString()

string ToString()

Returns

String

GetHashCode()

int GetHashCode()

Returns

Int32

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(LoraAdapter)

bool Equals(LoraAdapter other)

Parameters

other LoraAdapter

Returns

Boolean

Deconstruct(String&, Single&)

void Deconstruct(String& Path, Single& Scale)

Parameters

Path String&

Scale Single&