Set LoRA adapters on the context if they differ from the current adapters.
(
ctx: llama_context_p,
adapters: Optional[CtypesArray[llama_adapter_lora_p_ctypes]],
n_adapters: int,
scales: Optional[CtypesArray[ctypes.c_float]],
/,
)
| 2175 | ctypes.c_int32, |
| 2176 | ) |
| 2177 | def llama_set_adapters_lora( |
| 2178 | ctx: llama_context_p, |
| 2179 | adapters: Optional[CtypesArray[llama_adapter_lora_p_ctypes]], |
| 2180 | n_adapters: int, |
| 2181 | scales: Optional[CtypesArray[ctypes.c_float]], |
| 2182 | /, |
| 2183 | ) -> int: |
| 2184 | """Set LoRA adapters on the context if they differ from the current adapters.""" |
| 2185 | ... |
| 2186 | |
| 2187 | |
| 2188 | # Deprecated compatibility wrapper for the renamed llama_set_adapters_lora(). |
no outgoing calls
no test coverage detected
searching dependent graphs…