/** * The value of the `weightAdapter` gene. `null` (or absent) === BASE: the cheap * tier runs with no LoRA adapter — the pre-gene default, byte-identical key. * A string is an adapter id (e.g. "glm5.2-sft", "glm5.2-sft-dpo"). */ export type WeightAdapterGene = string | null; /** The canonical "no adapter" sentinel. Absent gene === BASE === this. */ export declare const BASE_ADAPTER: WeightAdapterGene; /** * The adapter variants Darwin evolution may choose among. BASE is always first * (the control). The tuned variants reference adapters the runner produced: * SFT-only and SFT+DPO are the two recipes; a ratio variant blends adapter * strength. ALL are inert until an actual adapter is trained (GPU job) — the * gene only NAMES an adapter; it does not create one. */ export declare const WEIGHT_ADAPTERS: WeightAdapterGene[]; /** * Normalize a raw gene value. Absent / '' / 'base' / 'none' all coerce to BASE * so an unset gene is indistinguishable from an explicit base choice — that's * what keeps pre-gene genomes byte-identical. */ export declare function normalizeWeightAdapter(v: unknown): WeightAdapterGene; /** * Stable key fragment for a genome's adapter choice. Empty string for BASE so * the gene contributes NOTHING to a genome key unless an adapter is selected — * the backward-compatibility invariant (a base-adapter genome keys identically * to a pre-gene genome). */ export declare function weightAdapterSuffix(gene: WeightAdapterGene): string; /** * Map an adapter gene to the CLI flag the cheap-tier solver forwards. BASE * emits NO flag (runs the stock model). A tuned adapter emits `--lora-adapter * ` (the solver loads the adapter onto the cheap base before solving). */ export declare function weightAdapterFlags(gene: WeightAdapterGene): string[]; /** True iff the gene selects a real adapter (not base). */ export declare function usesAdapter(gene: WeightAdapterGene): boolean; //# sourceMappingURL=genome.d.ts.map