Add files using upload-large-folder tool
Browse files- README.md +82 -0
- code/.gitignore +23 -0
- results/scans/sens_pc20/ife.list.npz +3 -0
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed
|
| 4 |
+
license_link: https://huggingface.co/datasets/bryan7264/lorapop/blob/main/code/LICENSE
|
| 5 |
+
pretty_name: "lorapop: population genetics of public fine-tunes"
|
| 6 |
+
viewer: false
|
| 7 |
+
tags:
|
| 8 |
+
- lora
|
| 9 |
+
- peft
|
| 10 |
+
- interpretability
|
| 11 |
+
- model-populations
|
| 12 |
+
- statistical-genetics
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- MIT License, Bryan Cheng, 2026. Hugging Face dataset card (D-050). -->
|
| 16 |
+
|
| 17 |
+
# lorapop: population genetics of public fine-tunes
|
| 18 |
+
|
| 19 |
+
This dataset holds the data and results of a study that treats the public LoRA adapters of one base model as a genetic
|
| 20 |
+
population. The weights give the genotypes, measured behaviours give the phenotypes, and relatedness is inferred from
|
| 21 |
+
the weights. Association estimates of the effect of weight directions on behaviour are then checked against
|
| 22 |
+
interventions: transplants, knockouts, dosing, randomized crosses and spike-ins.
|
| 23 |
+
|
| 24 |
+
The primary population is the public LoRA adapters of Qwen2.5-0.5B-Instruct:
|
| 25 |
+
|
| 26 |
+
- 955 adapter records, 907 genotyped, and 884 in the scans;
|
| 27 |
+
- 53 primary behavioural traits;
|
| 28 |
+
- 5,191 loci.
|
| 29 |
+
|
| 30 |
+
Genotypes for TinyLlama-1.1B-Chat and Qwen2.5-1.5B-Instruct are included for replication.
|
| 31 |
+
|
| 32 |
+
**Status: interim.** Scans, E1 (pedigrees and the similarity law), E6 architecture, E7 fitted predictors and the H6
|
| 33 |
+
forecast on targeted fine-tunes are done. Interventions are partial (30 of 525 directions). Crosses, spike-ins and the
|
| 34 |
+
audit are pending. Every number in `code/RESULTS.md` names its source file in this repository.
|
| 35 |
+
|
| 36 |
+
## Layout
|
| 37 |
+
|
| 38 |
+
| path | content |
|
| 39 |
+
|---|---|
|
| 40 |
+
| `code/` | the full code, documents, paper and job logs (same as the GitHub repository) |
|
| 41 |
+
| `data/processed/<population>/` | `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` |
|
| 42 |
+
| `data/processed/qwen05_{k128,k256,vf80,vf95}/` | genotype variants for the sensitivity analyses (cap on k, variance kept by loci) |
|
| 43 |
+
| `data/raw/hf_index/` | Hugging Face enumeration of adapters, fine-tunes and merges per base model (public repository metadata) |
|
| 44 |
+
| `data/raw/refcorpus/` | reference corpus for the base covariances (no_robots, UltraChat and wikitext samples) |
|
| 45 |
+
| `data/raw/train_data/` | training sets and run lists for the adapters we trained |
|
| 46 |
+
| `data/raw/battery/` | sources of the behavioural battery, except the HarmBench behaviour list |
|
| 47 |
+
| `data/raw/concord_q05/`, `data/raw/sciq/` | cross-hardware concordance inputs; SciQ items |
|
| 48 |
+
| `results/phenotypes/` | per-adapter phenotypes (one JSON and one per-item NPZ per adapter) for every population and trained set |
|
| 49 |
+
| `results/scans/` | association scans (primary `qwen05_rt`, raw-coordinate and sensitivity variants, replicated nulls) |
|
| 50 |
+
| `results/interventions/` | intervention plan and per-direction transplant, knockout and dosing measurements |
|
| 51 |
+
| `results/crosses/`, `results/e1/`, `results/e6/`, `results/e7/`, `results/probe/` | crosses, pedigrees, architecture and forecasts, prediction, feasibility probe |
|
| 52 |
+
|
| 53 |
+
The adapters we trained ourselves are in the model repository
|
| 54 |
+
[bryan7264/lorapop-adapters](https://huggingface.co/bryan7264/lorapop-adapters). They are seed siblings, opposite and
|
| 55 |
+
trait-targeted fine-tunes.
|
| 56 |
+
|
| 57 |
+
## Not included
|
| 58 |
+
|
| 59 |
+
- **The third-party public adapters and reduced full fine-tunes.** Their repository ids are in `data/raw/hf_index/` and
|
| 60 |
+
`data/processed/*/adapters.json`. The download code is in `code/src/data/`.
|
| 61 |
+
- **The HarmBench behaviour list.** Download it from the HarmBench release. Refusal is scored from first-token log-odds,
|
| 62 |
+
so no harmful text was generated or stored.
|
| 63 |
+
- **Gradient files of the trained sets.** They are intermediate inputs to the forecast competitors; their outputs are in
|
| 64 |
+
`results/e6/`.
|
| 65 |
+
- **Weight-space directions.** No direction that lowers refusal is released.
|
| 66 |
+
|
| 67 |
+
## Licenses
|
| 68 |
+
|
| 69 |
+
- **Code and project outputs** (genotypes, kernels, phenotypes, scans, interventions and analyses): MIT License,
|
| 70 |
+
Bryan Cheng, 2026.
|
| 71 |
+
- **Third-party material** keeps its original license:
|
| 72 |
+
- the reference-corpus samples (no_robots, UltraChat, wikitext);
|
| 73 |
+
- the battery sources (MMLU, IFEval, TruthfulQA, XSTest, model-written evaluations, emergent-misalignment questions,
|
| 74 |
+
AlpacaEval);
|
| 75 |
+
- SciQ;
|
| 76 |
+
- the sibling training sets, drawn from no_robots;
|
| 77 |
+
- the Hugging Face metadata.
|
| 78 |
+
|
| 79 |
+
## Reproduce
|
| 80 |
+
|
| 81 |
+
See `code/README.md`. Every compute job and every deviation from the pre-registered plan are logged in
|
| 82 |
+
`code/TRAINING_LOG.md` and `code/DECISIONS.md`.
|
code/.gitignore
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MIT License, Bryan Cheng, 2026. Code, documents, paper and logs go to GitHub; data, results and weights go to the
|
| 2 |
+
# Hugging Face dataset bryan7264/lorapop and the model repo bryan7264/lorapop-adapters (see README.md).
|
| 3 |
+
data/
|
| 4 |
+
results/
|
| 5 |
+
figures/*.npz
|
| 6 |
+
__pycache__/
|
| 7 |
+
.pytest_cache/
|
| 8 |
+
*.pyc
|
| 9 |
+
*.pt
|
| 10 |
+
*.npz
|
| 11 |
+
*.npy
|
| 12 |
+
*.safetensors
|
| 13 |
+
*.bin
|
| 14 |
+
*.memmap
|
| 15 |
+
work/smoke/
|
| 16 |
+
paper/*.aux
|
| 17 |
+
paper/*.log
|
| 18 |
+
paper/*.out
|
| 19 |
+
paper/*.blg
|
| 20 |
+
paper/*.toc
|
| 21 |
+
paper/*.synctex.gz
|
| 22 |
+
.env
|
| 23 |
+
*.token
|
results/scans/sens_pc20/ife.list.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59aeab52cf5a2f0fdf08595ed9d6f1bdc6b5c9e6bc3af53378029f0ee44c5463
|
| 3 |
+
size 2616996
|