|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- # LoraAdapter
-
- Namespace: LLama.Abstractions
-
- A LoRA adapter to apply to a model
-
- ```csharp
- public struct LoraAdapter
- ```
-
- Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [LoraAdapter](./llama.abstractions.loraadapter.md)<br>
- Implements [IEquatable<LoraAdapter>](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1)
-
- ## Properties
-
- ### **Path**
-
- Path to the LoRA file
-
- ```csharp
- public string Path { get; set; }
- ```
-
- #### Property Value
-
- [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- ### **Scale**
-
- Strength of this LoRA
-
- ```csharp
- public float Scale { get; set; }
- ```
-
- #### Property Value
-
- [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>
-
- ## Constructors
-
- ### **LoraAdapter(String, Single)**
-
- A LoRA adapter to apply to a model
-
- ```csharp
- LoraAdapter(string Path, float Scale)
- ```
-
- #### Parameters
-
- `Path` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
- Path to the LoRA file
-
- `Scale` [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>
- Strength of this LoRA
-
- ## Methods
-
- ### **ToString()**
-
- ```csharp
- string ToString()
- ```
-
- #### Returns
-
- [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
-
- ### **GetHashCode()**
-
- ```csharp
- int GetHashCode()
- ```
-
- #### Returns
-
- [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
-
- ### **Equals(Object)**
-
- ```csharp
- bool Equals(object obj)
- ```
-
- #### Parameters
-
- `obj` [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)<br>
-
- #### Returns
-
- [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
-
- ### **Equals(LoraAdapter)**
-
- ```csharp
- bool Equals(LoraAdapter other)
- ```
-
- #### Parameters
-
- `other` [LoraAdapter](./llama.abstractions.loraadapter.md)<br>
-
- #### Returns
-
- [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
-
- ### **Deconstruct(String&, Single&)**
-
- ```csharp
- void Deconstruct(String& Path, Single& Scale)
- ```
-
- #### Parameters
-
- `Path` [String&](https://docs.microsoft.com/en-us/dotnet/api/system.string&)<br>
-
- `Scale` [Single&](https://docs.microsoft.com/en-us/dotnet/api/system.single&)<br>
|