Skip to content

LoraAdapter

Namespace: LLama.Abstractions

A LoRA adapter to apply to a model

1
public struct LoraAdapter

Inheritance ObjectValueTypeLoraAdapter
Implements IEquatable<LoraAdapter>

Properties

Path

Path to the LoRA file

1
public string Path { get; set; }

Property Value

String

Scale

Strength of this LoRA

1
public float Scale { get; set; }

Property Value

Single

Constructors

LoraAdapter(String, Single)

A LoRA adapter to apply to a model

1
LoraAdapter(string Path, float Scale)

Parameters

Path String
Path to the LoRA file

Scale Single
Strength of this LoRA

Methods

ToString()

1
string ToString()

Returns

String

GetHashCode()

1
int GetHashCode()

Returns

Int32

Equals(Object)

1
bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(LoraAdapter)

1
bool Equals(LoraAdapter other)

Parameters

other LoraAdapter

Returns

Boolean

Deconstruct(String&, Single&)

1
void Deconstruct(String& Path, Single& Scale)

Parameters

Path String&

Scale Single&