LlamaLib  v2.0.2
Cross-platform library for local LLMs
Loading...
Searching...
No Matches
LoraIdScale Struct Reference

Structure representing a LoRA adapter with ID and scale. More...

#include <LLM.h>

Public Member Functions

bool operator== (const LoraIdScale &other) const
 Equality comparison operator.
 

Public Attributes

int id
 Unique identifier for the LoRA adapter.
 
float scale
 Scale factor for the LoRA adapter (typically 0.0 to 1.0)
 

Detailed Description

Structure representing a LoRA adapter with ID and scale.

Used for configuring Low-Rank Adaptation layers in language models

Definition at line 19 of file LLM.h.

Member Function Documentation

◆ operator==()

bool LoraIdScale::operator== ( const LoraIdScale & other) const
inline

Equality comparison operator.

Parameters
otherThe other LoraIdScale to compare with
Returns
true if both id and scale are equal, false otherwise

Definition at line 27 of file LLM.h.

Member Data Documentation

◆ id

int LoraIdScale::id

Unique identifier for the LoRA adapter.

Definition at line 21 of file LLM.h.

◆ scale

float LoraIdScale::scale

Scale factor for the LoRA adapter (typically 0.0 to 1.0)

Definition at line 22 of file LLM.h.


The documentation for this struct was generated from the following file: