--- license: other license_name: mixed license_link: code/LICENSE pretty_name: "lorapop: population genetics of public fine-tunes" viewer: false tags: - lora - peft - interpretability - model-populations - statistical-genetics --- # lorapop: population genetics of public fine-tunes This dataset holds the data and results of a study that treats the public LoRA adapters of one base model as a genetic population. The weights give the genotypes, measured behaviours give the phenotypes, and relatedness is inferred from the weights. Association estimates of the effect of weight directions on behaviour are then checked against interventions: transplants, knockouts, dosing, randomized crosses and spike-ins. The primary population is the public LoRA adapters of Qwen2.5-0.5B-Instruct: - 955 adapter records, 907 genotyped, and 884 in the scans; - 53 primary behavioural traits; - 5,191 loci. Genotypes for TinyLlama-1.1B-Chat and Qwen2.5-1.5B-Instruct are included for replication. **Status: interim.** Scans, E1 (pedigrees and the similarity law), E6 architecture, E7 fitted predictors and the H6 forecast on targeted fine-tunes are done. Interventions are partial (30 of 525 directions). Crosses, spike-ins and the audit are pending. Every number in `code/RESULTS.md` names its source file in this repository. ## Layout | path | content | |---|---| | `code/` | the full code, documents, paper and job logs (same as the GitHub repository) | | `data/processed//` | `adapters.json` (records), `basecov.pt` (base-model input covariances per module), `grams_raw.npy` and `grams_exp.npy` (per-module Gram matrices in raw and expressed coordinates), `K.npz` (descent and function kernels), `loci.pt` (loci and genotypes), `modules.json` | | `data/processed/qwen05_{k128,k256,vf80,vf95}/` | genotype variants for the sensitivity analyses (cap on k, variance kept by loci) | | `data/raw/hf_index/` | Hugging Face enumeration of adapters, fine-tunes and merges per base model (public repository metadata) | | `data/raw/refcorpus/` | reference corpus for the base covariances (no_robots, UltraChat and wikitext samples) | | `data/raw/train_data/` | training sets and run lists for the adapters we trained | | `data/raw/battery/` | sources of the behavioural battery, except the HarmBench behaviour list | | `data/raw/concord_q05/`, `data/raw/sciq/` | cross-hardware concordance inputs; SciQ items | | `results/phenotypes/` | per-adapter phenotypes (one JSON and one per-item NPZ per adapter) for every population and trained set | | `results/scans/` | association scans (primary `qwen05_rt`, raw-coordinate and sensitivity variants, replicated nulls) | | `results/interventions/` | intervention plan and per-direction transplant, knockout and dosing measurements | | `results/crosses/`, `results/e1/`, `results/e6/`, `results/e7/`, `results/probe/` | crosses, pedigrees, architecture and forecasts, prediction, feasibility probe | The adapters we trained ourselves are in the model repository [bryan7264/lorapop-adapters](https://huggingface.co/bryan7264/lorapop-adapters). They are seed siblings, opposite and trait-targeted fine-tunes. ## Not included - **The third-party public adapters and reduced full fine-tunes.** Their repository ids are in `data/raw/hf_index/` and `data/processed/*/adapters.json`. The download code is in `code/src/data/`. - **The HarmBench behaviour list.** Download it from the HarmBench release. Refusal is scored from first-token log-odds, so no harmful text was generated or stored. - **Gradient files of the trained sets.** They are intermediate inputs to the forecast competitors; their outputs are in `results/e6/`. - **Weight-space directions.** No direction that lowers refusal is released. ## Licenses - **Code and project outputs** (genotypes, kernels, phenotypes, scans, interventions and analyses): MIT License, Bryan Cheng, 2026. - **Third-party material** keeps its original license: - the reference-corpus samples (no_robots, UltraChat, wikitext); - the battery sources (MMLU, IFEval, TruthfulQA, XSTest, model-written evaluations, emergent-misalignment questions, AlpacaEval); - SciQ; - the sibling training sets, drawn from no_robots; - the Hugging Face metadata. ## Reproduce See `code/README.md`. Every compute job and every deviation from the pre-registered plan are logged in `code/TRAINING_LOG.md` and `code/DECISIONS.md`.