This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/core/lora/declare.h
T
baKon ba406ace1b core: runtime LoRA declare, startup adapters, model routing and a per-adapter prefix key
--lora NAME=PATH, --max-loras, --max-lora-rank, --lora-target-modules. Off unless
named: no site, no pool, no op, and every prefix hash is what it was.
2026-10-16 20:52:09 -05:00

29 lines
1.0 KiB
C++

/* lora/declare.h -- the runtime-LoRA half of declare: after the architecture plugin has declared
* its program, build the sites (lora.h), declare the adapter pools and the two ops each targeted
* GEMM is followed by, and record what the issue path needs (Program::lora_sites).
*
* Runs inside rad_tools_declare, after rad_arch_declare and before the sampler, on the real
* declare AND on every sizing declare -- identically, because a sizing declare must produce the
* same op list (rad_builder.cpp checks it op by op). */
#pragma once
#include "lora/config.h"
#include "lora/lora.h"
#include <vector>
namespace rad {
class Builder;
struct LoraDeclare {
const LoraConfig* cfg = nullptr;
lora::TargetSet targets;
/* The real declare's sites, for the adapter loader; null on a sizing declare. */
std::vector<lora::Site>* sites_out = nullptr;
};
/* RAD_OK, or a negative code after RAD_ERR lines naming every refusal. */
int lora_declare(Builder& b, const LoraDeclare& d);
} /* namespace rad */