Datasets:
text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
/////////////////////////
//Discord Bot für 1AHIF//
/////////////////////////
const Discord = require('discord.js');
const bot = new Discord.Client();
const prefix = '.';
bot.on('ready', () => {
console.log('AHIF-BOT ist jetzt online!');
bot.user.setActivity('1AHIF', { type: "WATCHING"}).catch(console.error... | 1AHIF-BOT | main.js | JavaScript | 71c4053871fb1914ac32ddfdbdab85a034140f6f44209f908b6b3f4b4e5ba588 | 0 | 452 |
{
"name": "1ahif-bot",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node main.js"
},
"author": "Julian Schmidt",
"license": "ISC",
"dependencies": {
"discord.js": "^12.3.1",
"webuntis": "^1.12.0"... | 1AHIF-BOT | package.json | JSON | 927bfac04090d59e1be821747d8f2d4af5e19e1b9d60e09eeb7bc0c27d2cef49 | 0 | 124 |
Worker: node main.js | 1AHIF-BOT | procfile | Procfile | bc442796387a3b85efab858c1e22784cff1c22826ce8de6148a4f384cbfb06f8 | 0 | 6 |
# Auto detect text files and perform LF normalization
* text=auto
| adapter-lab | .gitattributes | Git Attributes | 1a1dbe176bc233b499d35a57db7513f2941c99ab9759f177830c9149be99005b | 0 | 13 |
__pycache__/
*.py[cod]
.pytest_cache/
.ruff_cache/
.venv/
| adapter-lab | .gitignore | Git Ignore | 160d84bae49f571dbe2778651a39f0e633b464bd0a6587c9156127ba9b4c2368 | 0 | 17 |
<!-- GSD:project-start source:PROJECT.md -->
## Project
**adapter-lab**
`adapter-lab` is a single-tenant, self-contained, offline-capable enterprise lab for producing signed, auditable LoRA and QLoRA adapters from open-weight base models. It lets regulated organizations fine-tune LLMs on sensitive tenant-controlled ... | adapter-lab | AGENTS.md | Markdown | 3e7d6096df2de1c904221b5345e21f73f4541faec6cfdb6073b3852b11fec334 | 0 | 896 |
standardize on it.
- **PII:** Microsoft Presidio Analyzer/Anonymizer with YAML-loaded tenant recognizers and plugin entry points.
- **Evaluation:** `lm-evaluation-harness` as the default capability harness; separate plugins for BFCL, tau-bench, safety panels, and tenant custom suites.
- **Provenance/signing:** in-toto ... | adapter-lab | AGENTS.md | Markdown | 9af44c1c12ddfe7bfc9baf140b2518e478bbb53ad2453ac4a63eaccb3f99489d | 1 | 896 |
- Do not make DeepSpeed the only distributed backend; PyTorch FSDP is the more general default.
- Do not put tenant plugins in the corpus directory or load arbitrary code from input data paths.
- Do not store PII values, canary text, signing secrets, or HSM PINs in logs, manifests, or model cards.
- Do not produce prop... | adapter-lab | AGENTS.md | Markdown | e9cdf4d25c62323c4de2591b60c54f8b2505eb612ec66bc726880b31c8dda660 | 2 | 896 |
.md` first if it exists; otherwise read `.planning/graphs/GRAPH_REPORT.md`.
- If `graphify-out/wiki/index.md` exists, navigate it before reading raw files.
- For cross-module "how does X relate to Y" questions, prefer `node "$HOME/.codex/get-shit-done/bin/gsd-tools.cjs" graphify query "<term>"`, `graphify query "<quest... | adapter-lab | AGENTS.md | Markdown | fd26906abb79f60b5ebb93705701b5deeda451e17240c43736460efa3ae744cf | 3 | 244 |
[project]
name = "adapter-lab"
version = "0.1.0"
description = "Offline-capable enterprise lab for signed, auditable LoRA and QLoRA adapter production."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"pyarrow>=16,<23",
"pydantic>=2.12,<3",
"pyyaml>=6.0,<7",
"typer>=0.20,<1",
]
[projec... | adapter-lab | pyproject.toml | TOML | 670ca33fa8f2a200880a1820256736cf8bc359fb46f34cd14204a20a7ec56008 | 0 | 251 |
# adapter-lab
Offline-capable enterprise lab for producing signed, auditable LoRA and QLoRA adapters from local open-weight base models.
## Foundation CLI contract
`adapterlab` is a thin Typer CLI over importable SDK services. Durable behavior belongs in
`adapterlab.sdk`; CLI commands translate operator input, call ... | adapter-lab | README.md | Markdown | c8190ad93d81ebb7ed64dacc6589f22287eabb6061607d5989b36c9e8f732790 | 0 | 889 |
# Product Requirements Document — `adapter-lab`
**Version:** 0.9 (Draft for Implementation)
**Status:** Engineering reference, pre-implementation
**Audience:** AI agents, ML/MLOps engineers, security engineers, applied researchers
**Reference deployment:** Bundesrechenzentrum (BRZ) sovereign LLMaaS (illustrative, not ... | adapter-lab | vision.md | Markdown | 6e9bb80fc0fdb2b5a90886d1be9363a74b72584b032ea36a4b0ee6942361f752 | 0 | 896 |
─────────────────────────────────────┐
│ adapter-lab Control Plane │
│ (CLI, Python SDK, run-orchestrator) │
└─────────────────┬────────────────────────┘
│ manifests, run-state
┌─────────... | adapter-lab | vision.md | Markdown | 23e7dc27d48e47979922f10306a0298e94eae9ccda7bb0308d10622e57e76d17 | 1 | 896 |
the lab itself (code, base models, public benchmark data) is reproduced from a pinned, signed software bill of materials (SBOM).
- **Artifact boundary:** outputs are signed; downstream consumers (serving stack, regulator) verify signatures before loading.
---
## 3. Subsystem Specifications
### 3.1 Ingest
**Purpose:... | adapter-lab | vision.md | Markdown | c365e41b7ddc90fd129522ea018dc92e5bb94f23d9ff9b70f3de792b902a4331 | 2 | 896 |
`synth.yaml` selecting strategies, generators (which open-weight model to use as the "teacher"), sampling params, quality filters.
- Optional `seeds.jsonl` of human-written examples (for Self-Instruct bootstrap).
**Supported strategies:**
| Strategy | Origin | Mechanism | When to use |
|---|---|---|---|
| **Magpie** ... | adapter-lab | vision.md | Markdown | 08cff5062fdab5dfe2d99bed202ab31972d7ed655c06edea8ca323cb91d7b28b | 3 | 896 |
. model SHA and license, per-strategy counts, filter pass rates, seed/RNG state).
### 3.3 Train
**Purpose:** Produce a PEFT-compatible adapter from a frozen base model using the chosen training method.
**Inputs:**
- `sft.jsonl` and/or `pref.jsonl`.
- `train.yaml` (training method, hyperparameters, optimiser, FSDP/De... | adapter-lab | vision.md | Markdown | 6de98494a0f4142d146033a909d8cf1bc45fccef33c7d55e7c819493652d419f | 4 | 896 |
language adaptations available in the harness. | EleutherAI |
| **IFEval** | Instruction following via 541 prompts (25 instruction types) such as "write in more than 400 words" or "mention the keyword of AI at least 3 times". | Zhou et al. 2023, arXiv 2311.07911 |
| **BFCL (v3 / v4)** | Function-calling and agentic eva... | adapter-lab | vision.md | Markdown | 15a10369b4cca751aa9efbd095fd8215468f5e485e43042ec93d33b2474e6496 | 5 | 896 |
-style).
- **Metric:** AUC and **TPR at 1% FPR** (the standard low-FPR membership-inference figure used across the LLM MIA literature, e.g., He et al. USENIX Security 2025).
- **Pass criterion (default):** AUC ≤ 0.55 AND TPR@1%FPR ≤ 0.05. Tenants tighten or loosen via `verify.yaml`.
#### 3.5.2 Data extraction / canary... | adapter-lab | vision.md | Markdown | da8d32530e45e33c259616c5555257e356718e5f9119b33cde73684e2700984f | 6 | 896 |
run the OR-Bench-Hard-1K subset (1,000 prompts drawn from the 80,000-prompt full set) plus the 600 toxic anchor prompts; per Cui et al. (arXiv 2405.20947) "OR-Bench comprises 80,000 over-refusal prompts across 10 common rejection categories, a subset of around 1,000 hard prompts that are challenging even for state-of-t... | adapter-lab | vision.md | Markdown | a1563c753ecdf660542f3cce23d50a760d4ce3e1685d40e7e5c45aa50211c139 | 7 | 896 |
` with a YAML front matter. Per the HF Hub docs, "A model repo will render its README.md as a model card. The model card is a Markdown file, with a YAML section at the top that contains metadata about the model." The card follows the 9 canonical sections from Mitchell, Margaret et al., "Model Cards for Model Reporting,... | adapter-lab | vision.md | Markdown | 3fea459760578a1d0186bf89564ee0ba63d5b62e9720af52854699a59e269cfa | 8 | 896 |
---|
| LoRA | 16 (bf16) | AdamW / Adafactor | `r`, `alpha`, `dropout`, `target_modules`, `modules_to_save` | Baseline |
| QLoRA | 4 (NF4) | paged AdamW 8-bit | + `bnb_4bit_quant_type=nf4`, `bnb_4bit_use_double_quant=true`, `bnb_4bit_compute_dtype=bf16` | Default (Dettmers et al., NeurIPS 2023) |
| 8-bit LoRA | 8 | Adam... | adapter-lab | vision.md | Markdown | 7038004c237755479045c6e1ffeb08060d8f73102d00e8a27699fd2b51c6b159 | 9 | 896 |
}` triple, not by name alone.
- Datasets are content-addressed; any change to a dataset row changes the dataset hash.
- A `repro/` directory in the bundle contains the exact configs used.
- Deterministic mode is opt-in (slower); statistical reproducibility (within ±ε on eval metrics) is the default.
### 9.2 Provenance... | adapter-lab | vision.md | Markdown | 608734a2aee7a4a8d48604496572d9e4e9994c22b325605d4f00109edac4d02b | 10 | 896 |
-color`
- `--profile <name>` (named tenant profiles for multi-environment work)
- `--dry-run` (validate configs, do not execute)
- `--from-manifest <path>` (resume any subsystem from a prior manifest)
Exit codes: `0` success; `2` config error; `3` validation error; `4` gate failure; `5` signing failure; `1` everything... | adapter-lab | vision.md | Markdown | 740aa267d243afaac6ee34298906e7c9a91a5f53b31c05eea9edc38002b335fc | 11 | 896 |
- [ ] Implement reward-model–based preference generation for DPO (FsfairX-LLaMA3-RM-v0.1 default; tenant-pluggable).
- [ ] Implement filter pipeline; insert canaries deterministically given run seed.
- [ ] Tests: assert per-strategy schema conformance, language consistency, dedup behaviour.
### 12.4 Phase 3 — Train
- ... | adapter-lab | vision.md | Markdown | b3cc966bda8bfefa296a67bf4b2a72d0f11bc94383d59fdb79fbb0170e786a13 | 12 | 896 |
7B or Llama-3-8B), DE/EN only, LoRA + QLoRA only, lm-eval-harness + IFEval + one safety panel (XSTest). Acceptance: an operator can reproduce a signed adapter from raw documents with one CLI command.
2. **Stage 2 — Security gates (8 weeks).** Land Phase 5 in `report`/`warn` mode first; flip to `block` only after the ga... | adapter-lab | vision.md | Markdown | 54457c74777e43c5cf6b5a1d068af6b554b13e6a25ef06db14b0ef2d8ef4616d | 13 | 896 |
benchmarks are strongest in English. DE quality is good; PL/IT/HU quality varies. Tenants MUST sample-review multilingual synth outputs.
- **Reference deployment ≠ requirement.** BRZ is named throughout as the reference tenant. Nothing in this PRD requires BRZ-specific infrastructure (no Artifactory, no Fulcio, no Tekt... | adapter-lab | vision.md | Markdown | d176059459a85f12d9ab4ff1ee4f7cbc2102772486fbc5e324c3aa8e6cf4cea9 | 14 | 109 |
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "/Users/julianschmidt/miniconda3/bin/graphify hook-check"
}
]
}
]
}
}
| adapter-lab | .codex/hooks.json | JSON | 723a1b460a2345fcb5dfba362c45e5d09e9b92edf5fbef2e4c84baa4272e3034 | 0 | 59 |
{
"model_profile": "quality",
"commit_docs": true,
"parallelization": true,
"search_gitignored": false,
"brave_search": false,
"firecrawl": false,
"exa_search": false,
"phase_naming": "sequential",
"project_code": null,
"claude_md_path": "./CLAUDE.md",
"git": {
"branching_strategy": "none",
... | adapter-lab | .planning/config.json | JSON | 1869436fbd7510b02054eeff02adea4d39d71610a8d7ab9b164c963f4e76760c | 0 | 717 |
# Milestones
## v1.0 MVP (Shipped: 2026-05-29)
**Phases completed:** 8 phases, 37 plans, 102 tasks
**Key accomplishments:**
- Built the SDK-first runtime foundation: Typer CLI, Pydantic contracts, schema exports, content-addressed artifact store, run DAG contracts, plugin trust records, and safe initialization.
- A... | adapter-lab | .planning/MILESTONES.md | Markdown | b3b8ac0d2871e6e3f1c3c9fef754701be9ca0c2b3f5e9072f9a1fba9afa40da0 | 0 | 338 |
# adapter-lab
## What This Is
`adapter-lab` is a single-tenant, self-contained, offline-capable enterprise lab for producing signed, auditable LoRA and QLoRA adapters from open-weight base models. It lets regulated organizations fine-tune LLMs on sensitive tenant-controlled corpora without exporting data, model artif... | adapter-lab | .planning/PROJECT.md | Markdown | a931219546fca7f8f0c04fcd9820d04fe1a92a076f77502b85abb596d4614380 | 0 | 896 |
SBOMs, and build provenance - v1.0.
### Active
Next milestone requirements are intentionally empty. Define them with `$gsd-new-milestone`.
### Out of Scope
- SaaS hosting or multi-tenant cloud operation - the product is a deployable package with one tenant per instance.
- Serving, routing, or prompt orchestration a... | adapter-lab | .planning/PROJECT.md | Markdown | d9ca113160bb4b6311f0d5856dee6e9734686e23f2f5301f50ec3cdd6ef5c1d3 | 1 | 896 |
-Bench, and tenant custom suites where practical. Reports and review bundles must sanitize raw PII, canaries, and secrets.
Verification is a blocking security layer after evaluation and before signing. It must produce structured PASS/FAIL evidence for membership inference resistance, data extraction and canary recall,... | adapter-lab | .planning/PROJECT.md | Markdown | cdf659a23144c253738a44aac67bf46d4d2fd84cfa8efbdf3e9119bb60cbd2dd | 2 | 896 |
manifest-based artifact handoffs the central architecture | Enables resumability, replacement, audit, and independent verification | Accepted |
| Add a final `run.manifest.json` as the run-level evidence index | Stage manifests alone are not enough for end-to-end audit or resume | Accepted |
| Keep serving out of scope... | adapter-lab | .planning/PROJECT.md | Markdown | cd70e87fd9481fad825a00c10906bd889e4523105e445662820328f764151b69 | 3 | 503 |
# Retrospective
## Milestone: v1.0 - MVP
**Shipped:** 2026-05-29
**Phases:** 8
**Plans:** 37
**Requirements:** 100/100 audited complete
### What Was Built
- SDK-first package foundation with strict CLI JSON contracts, schema-exported Pydantic models, immutable artifact refs, run DAG validation, plugin trust evidenc... | adapter-lab | .planning/RETROSPECTIVE.md | Markdown | 40158b38e68f5392dbb54b4a23bb02d3383efb8424ba5d0d8e98df4747c8bf3d | 0 | 553 |
# Roadmap: adapter-lab
## Milestones
- [x] **v1.0 MVP** - Phases 1-8 shipped on 2026-05-29. Archives: `.planning/milestones/v1.0-ROADMAP.md`, `.planning/milestones/v1.0-REQUIREMENTS.md`, `.planning/milestones/v1.0-MILESTONE-AUDIT.md`.
## Phases
<details>
<summary>v1.0 MVP (Phases 1-8) - SHIPPED 2026-05-29</summary>... | adapter-lab | .planning/ROADMAP.md | Markdown | 057893b317b122b52a312fd1788bf8c98b8f48ef75a78ff52a3ad32a2f319974 | 0 | 640 |
---
gsd_state_version: 1.0
milestone: v1.0
milestone_name: milestone
status: Awaiting next milestone
last_updated: "2026-05-29T11:56:02.470Z"
last_activity: 2026-05-29 — Milestone v1.0 completed and archived
progress:
total_phases: 8
completed_phases: 8
total_plans: 37
completed_plans: 37
percent: 100
---
# ... | adapter-lab | .planning/STATE.md | Markdown | f44f385a4de56ec69cc9d332c5b8052e84a686038b418a9f33476a743bf32738 | 0 | 896 |
Phase 05: Training evidence is aggregate/ref-only; CLI JSON, manifests, metrics, experiments, and adapter metadata omit raw training and preference text.
- Phase 06: Evaluation planning is SDK-first, local-resource gated, manifest-centered, privacy-safe, and fixture-backed by default.
- Phase 06: Evaluation execution a... | adapter-lab | .planning/STATE.md | Markdown | a45c340536a9fc0fba13d41fb707d5506ee16cfe959872045f811a3f87c9210f | 1 | 516 |
# Graph Report - adapter-lab (2026-05-29)
## Corpus Check
- 279 files · ~61,488,291 words
- Verdict: corpus is large enough that graph structure adds value.
## Summary
- 1762 nodes · 3207 edges · 163 communities (133 shown, 30 thin omitted)
- Extraction: 61% EXTRACTED · 39% INFERRED · 0% AMBIGUOUS · INFERRED: 1240 e... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | a89e9ceb354b742426540568930395ef1bdd9ed236b6409dc9b798fc581e794c | 0 | 896 |
[[_COMMUNITY_Community 80|Community 80]]
- [[_COMMUNITY_Community 81|Community 81]]
- [[_COMMUNITY_Community 82|Community 82]]
- [[_COMMUNITY_Community 83|Community 83]]
- [[_COMMUNITY_Community 84|Community 84]]
- [[_COMMUNITY_Community 85|Community 85]]
- [[_COMMUNITY_Community 86|Community 86]]
- [[_COMMUNITY_Commun... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 883b353e4d7cd1686fdf20da5f12cd0b3578c25c0c55eb866841ef09b7e89642 | 1 | 896 |
ConfigError` - 30 edges
8. `ContractValidationError` - 30 edges
9. `BaseModelRef` - 29 edges
10. `run_training()` - 27 edges
## Surprising Connections (you probably didn't know these)
- `test_ingest_outputs_do_not_expose_sensitive_values()` --calls--> `run_ingest()` [INFERRED]
tests/privacy/test_enterprise_outputs.... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 22ae289164e9f13e48b819c97199ad4cd530a53707e6010d72fea38800ef6fa2 | 2 | 896 |
, Load a JSON or YAML contract document from disk., Return supported schema validation kinds., Load a JSON or YAML contract document from disk., Load a JSON or YAML contract document from disk. (+22 more)
### Community 9 - "Community 9"
Cohesion: 0.17
Nodes (14): PiiConfig, PII redaction configuration., load_records()... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | ef0ffa621f23089dcbe76539b472bf06fe5d3c0ccf3c895b52dd1fed97b34684 | 3 | 896 |
Community 35 - "Community 35"
Cohesion: 0.14
Nodes (13): Audit And Logs, Bundle Packing, code:bash (uv run pytest tests/training/test_peft_roundtrip.py -m train), code:text (ingest -> synthesize -> train -> evaluate -> verify -> sign ), Doctor, Identity And RBAC, Independent Bundle Verification, Metrics And Experiments... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 90ef0c3a422214915c21a32fcc40642b9e74061785487bcaab9fa02f53636684 | 4 | 896 |
Sign & Pack, 12.8 Phase 7 — End-to-End & Hardening (+1 more)
### Community 59 - "Community 59"
Cohesion: 0.13
Nodes (30): _emit_success(), evaluate_command(), _fail(), _fail_validation(), _json_enabled(), pack_command(), Typer CLI shell for adapter-lab foundation commands., Generate canonical SFT and preference datase... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 395168f87188b698801c107a53ebec648ad36e84fb6393a519aa9d8e2a03982f | 5 | 896 |
test_canary_evidence_has_no_cleartext_value_field(), test_preference_record_requires_chosen_rejected_and_judge(), test_sft_record_contains_training_and_provenance_fields() (+53 more)
### Community 71 - "Community 71"
Cohesion: 0.22
Nodes (9): Dry-run validate a run DAG without executing stages., Dry-run validate a run... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | a09d48bb20e0030321035e19d798359af53eb594bedad2b4ccf802de97a6d12a | 6 | 896 |
_quantization_for(), Deterministic fixture backend for PEFT-compatible adapter outputs., Write a minimal PEFT-compatible adapter layout through the artifact store., run_fixture_training(), get_method_runner(), Training method registry and shared evidence types., Privacy-safe method execution evidence., Return JSON-safe... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | f6cf7c421c5d37d4cebd891425e3e09620e7a7ac9964f917a97205c964e6d58d | 7 | 896 |
, Verification policy evaluation and signing block helpers., Return a stable SHA-256 hash for a gate policy., Evaluate one metric against one threshold., Return privacy-safe reason codes for failing scores., Evaluate all policy thresholds against a metric payload. (+2 more)
### Community 101 - "Community 101"
Cohesion... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 92da359df4fdc33526d4dfc27d29f72628b6ec946513c012905f11dae97e34b6 | 8 | 896 |
run-level evidence index from stage refs., Persist run.manifest.json through the local artifact store., write_run_manifest(), artifact_ref() (+2 more)
### Community 119 - "Community 119"
Cohesion: 0.24
Nodes (9): Local-first evaluation resource resolution., Resolved resource path plus original ref., Resolve one local ... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | cb025265e499daa57073b44838cec46f647cdf1b101e8082fef755119af32b55 | 9 | 896 |
redact_record(), RedactionResult, _write_sidecar()
### Community 133 - "Community 133"
Cohesion: 0.33
Nodes (4): End-to-end run orchestration service., CLI-safe run orchestration result., Return JSON-safe run status and refs., RunResult
### Community 134 - "Community 134"
Cohesion: 0.33
Nodes (4): generate_model_card... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 86ff1e4eca96e6e3545e09c0e06fd8aa509c4081ba78b4d133ae91364ede8111 | 10 | 896 |
161 - "Community 161"
Cohesion: 0.22
Nodes (8): BuildProvenance, Supply-chain evidence contracts., Reference to a generated SBOM artifact., Local build and dependency provenance metadata., Local wheelhouse and mirror readiness status., SBOMRef, WheelhouseReadiness, test_supply_chain_models_are_strict_enough()
## Knowl... | adapter-lab | .planning/graphs/GRAPH_REPORT.md | Markdown | 632de8c994e1a8fde491e3b33f9e3ac03ff539a9d5d11b9be0f9bc1c113964a8 | 11 | 781 |
---
milestone: v1.0
audited: 2026-05-29T11:54:00Z
status: passed
scores:
requirements: 100/100
phases: 8/8
integration: 8/8
flows: 7/7
gaps:
requirements: []
integration: []
flows: []
tech_debt:
- phase: 05-adapter-training
items:
- Real CUDA QLoRA, 8-bit LoRA, and multi-GPU FSDP execution req... | adapter-lab | .planning/milestones/v1.0-MILESTONE-AUDIT.md | Markdown | a67b5f5b38154302c4ad66e88285a9d58fee83c2338e357bb5c38da2f1f7f16c | 0 | 896 |
PEFT adapter outputs, training manifests, and no-network/privacy lanes. |
| Training -> evaluation | passed | Phase 06 verification covers adapter/base comparison reports, local suite resources, evaluator plugins, manifests, and sanitized report refs. |
| Evaluation -> verification | passed | Phase 07 verification cove... | adapter-lab | .planning/milestones/v1.0-MILESTONE-AUDIT.md | Markdown | 2e866604f0222c7e66a6b3eb2d36965f5f46e213bd4d9c5b3f5cca9d96faec4e | 1 | 697 |
# Requirements Archive: v1.0 MVP
**Archived:** 2026-05-29
**Status:** SHIPPED
For current requirements, see `.planning/REQUIREMENTS.md`.
---
# Requirements: adapter-lab
**Defined:** 2026-05-26
**Core Value:** Enterprise operators can produce, verify, sign, and independently audit sensitive-data LLM adapters entire... | adapter-lab | .planning/milestones/v1.0-REQUIREMENTS.md | Markdown | d5f84c52e33b5fb186754ab918b9ef6b54edef549b8689b35dd051f12ce3ed69 | 0 | 896 |
.
- [x] **ING-06**: Ingest loads predefined and tenant custom Presidio-compatible PII recognizers from configuration.
- [x] **ING-07**: PII redaction is destructive by default and records entity type, span, score, operator, and recognizer metadata without storing raw PII values.
- [x] **ING-08**: Optional reversible re... | adapter-lab | .planning/milestones/v1.0-REQUIREMENTS.md | Markdown | 632982fe5e25d30ac3fca7cd860ca0c2d916600233c40c66e0f55bf1bdba9aeb | 1 | 896 |
noise multiplier, and RDP accounting recorded in the manifest.
- [x] **TRN-05**: Training refuses to fetch base weights at training time in airgapped mode.
- [x] **TRN-06**: Base models are referenced by repository/name, revision, weight SHA-256, tokenizer SHA-256, and license, not by mutable name alone.
- [x] **TRN-07... | adapter-lab | .planning/milestones/v1.0-REQUIREMENTS.md | Markdown | 371874bf8678fb0b16a88bc2386d046108752aff6e28fc532b810f8bd23ab98c | 2 | 896 |
**: Verification reports MIA AUC and TPR at 1% FPR against configured thresholds.
- [x] **VER-04**: Verification tests canary exposure and verbatim recall without logging canary strings in cleartext.
- [x] **VER-05**: Verification runs prompt-injection resistance checks over configured benchmark families.
- [x] **VER-0... | adapter-lab | .planning/milestones/v1.0-REQUIREMENTS.md | Markdown | 2c693608866400980658b0d816b1441afcd27d07bf81e53888703c8f255647ba | 3 | 896 |
-02**: The package emits local metrics dumps and optionally exposes Prometheus-compatible or OpenTelemetry-compatible metrics where deployment mode permits.
- [x] **OPS-03**: The package records experiment metadata, hyperparameters, metrics, and artifact refs in a local MLflow-compatible or Aim-compatible backend.
- [x... | adapter-lab | .planning/milestones/v1.0-REQUIREMENTS.md | Markdown | 2dc6f149c9e74bd801588c2b15a390366aa44278dae63821c1bdd69b19099a8d | 4 | 896 |
Personal Codex Model Training Corpus
Overview
Personal Codex Model Training Corpus is a provenance-aware, repository-level dataset for causal language modeling, code completion, continued pretraining, and coding assistant adaptation. It is built from source files present in local Git repository checkouts at a defined collection point.
The dataset prioritizes broad, authentic software-engineering coverage while retaining enough metadata to audit every emitted chunk. It is not an instruction dataset, benchmark, or collection of verified solutions. Each record represents source text as it existed in a repository checkout, after filtering, chunking, secret screening, and global deduplication.
Dataset profile
| Metric | Value |
|---|---|
| Total examples | 18,361 |
| Training examples | 15,226 |
| Validation examples | 3,135 |
| Emitted lines | 1,305,187 |
| Nonblank emitted lines | 1,153,093 |
| Approximate lexical tokens | 12,472,126 |
| UTF-8 source text | 50.5 MiB |
| Source files with retained chunks | 7,913 |
| Repositories with retained rows | 58 |
Line, byte, and token totals measure emitted training chunks. The configured chunk overlap can repeat text at chunk boundaries. These figures describe training volume, not unique repository lines of code or model-tokenizer counts.
Language and format distribution
The language value is assigned from a controlled extension and exact-filename mapping. Markdown,
configuration, schema, and build-system files are retained because they are part of real software
engineering workflows and frequently contain executable examples or machine-consumed structure.
| Language or format | Examples | Share |
|---|---|---|
| Markdown | 6,559 | 35.7% |
| TypeScript | 6,170 | 33.6% |
| JSON | 2,828 | 15.4% |
| Python | 1,532 | 8.3% |
| XML Schema | 354 | 1.9% |
| JavaScript | 218 | 1.2% |
| CSS | 144 | 0.8% |
| YAML | 112 | 0.6% |
| MDX | 93 | 0.5% |
| SQL | 69 | 0.4% |
| Shell | 60 | 0.3% |
| HTML | 53 | 0.3% |
| Git Ignore | 44 | 0.2% |
| Text | 31 | 0.2% |
| Swift | 15 | 0.1% |
| TeX | 14 | 0.1% |
| Java | 13 | 0.1% |
| TOML | 9 | 0.0% |
| Dockerfile | 6 | 0.0% |
| Git Attributes | 4 | 0.0% |
| Web Manifest | 4 | 0.0% |
| Prettier Ignore | 4 | 0.0% |
| Prettier | 4 | 0.0% |
| Docker Ignore | 3 | 0.0% |
| XML | 3 | 0.0% |
| EditorConfig | 2 | 0.0% |
| INI | 2 | 0.0% |
| Handlebars | 2 | 0.0% |
| Batch | 2 | 0.0% |
| Procfile | 1 | 0.0% |
| JSON Lines | 1 | 0.0% |
| Runpod Ignore | 1 | 0.0% |
| Prisma | 1 | 0.0% |
| ESLint Ignore | 1 | 0.0% |
| Makefile | 1 | 0.0% |
| SCSS | 1 | 0.0% |
Intended uses
Appropriate uses include:
- continued pretraining or domain adaptation of causal language models
- code completion and repository-aware coding assistant experiments
- tokenizer, chunking, deduplication, and corpus composition research
- retrieval and provenance experiments using repository and path metadata
- controlled studies of personalization on repository-disjoint validation data
The dataset is not suitable as a correctness benchmark, a secure-code reference, a software license classifier, or evidence of authorship and repository ownership.
Load the dataset
Install a compatible version of datasets, then load the full corpus:
from datasets import load_dataset
dataset = load_dataset("JulianAT/personal-codex-model")
print(dataset)
print(dataset["train"].features)
Stream examples without downloading the complete dataset:
from datasets import load_dataset
stream = load_dataset("JulianAT/personal-codex-model", split="train", streaming=True)
first_example = next(iter(stream))
Schema
| Field | Type | Description |
|---|---|---|
text |
string | Source-code or repository-text chunk used as the modeling target. |
repo |
string | Source repository name at collection time. |
path |
string | Repository-relative source path. |
language |
string | Language or format inferred from the configured mapping. |
sha |
string | SHA-256 digest of the emitted text. |
chunk_index |
int32 | Zero-based chunk position within the source file. |
n_tokens |
int32 | Tokenizer-independent lexical token estimate. |
Dataset construction
The builder applies the following deterministic pipeline:
- Discover configured Git repository checkouts.
- Walk supported source, documentation, schema, configuration, and build files.
- Exclude ignored, sensitive, generated, vendored, binary, oversized, and unsupported content.
- Decode retained files as UTF-8 and reject unreadable or empty payloads.
- Reject complete files containing high-confidence credential signatures.
- Chunk source text to approximately 896 lexical tokens with an overlap of 64 lexical tokens.
- Remove exact duplicate chunks by SHA-256.
- Remove near-duplicate chunks with MinHash LSH.
- Assign repositories, rather than individual rows, to deterministic train and validation splits.
This repository-level split prevents a source repository from appearing in both splits. It reduces direct leakage from repeated project structure and repository-specific conventions.
Deduplication and quality controls
Near-duplicate detection uses datasketch.MinHashLSH with
128 permutations, token 5-grams, and a Jaccard
threshold of 0.85. The current build retained
18,361 chunks after dropping
1,470 exact duplicates and
1,027 near duplicates.
The file walk excludes Git metadata, ignored paths, dependency and environment directories, build outputs, vendored and generated directories, lockfiles, minified files, symlinks, binary or non-UTF-8 payloads, files above 1,048,576 bytes, and unsupported formats. Credential screening covers high-confidence private-key, platform-token, cloud-key, API-key, and JWT patterns.
These controls reduce common leakage and duplication risks. They do not constitute a formal proof that every row is safe, original, correct, or free of sensitive information.
Provenance, privacy, and licensing
Every record retains repository, path, language, chunk position, and content-hash metadata. This supports traceability inside the published corpus without publishing local checkout locations or builder credentials.
Some contributing repositories were private at collection time. Public publication was explicitly enabled by the dataset maintainer. Users should still treat repository names, paths, comments, and source text as potentially identifying information.
The packaged dataset is released under the MIT License. The included
LICENSE file contains the complete terms. This dataset-level license does not supersede separate
licenses, notices, or obligations that may apply to code from contributing repositories. Users are
responsible for source-specific compliance when redistributing code, releasing trained models, or
using generated output.
Limitations
- Source is collected from working-tree snapshots, not from deleted Git history.
- Repository contents can include incomplete, insecure, outdated, experimental, or generated-like code that survives the configured filters.
- Extension-based language labels do not perform parser-level language verification.
- Lexical token estimates are not equivalent to tokens from a production model tokenizer.
- MinHash is approximate and can retain related text or remove independently written similar text.
- Chunk overlap increases emitted volume and can repeat boundary lines.
- The dataset contains no correctness, security, quality, preference, or authorship labels.
- Repository-disjoint validation measures transfer across included repositories, not general coding ability across unrelated ecosystems.
Reproducibility and audit artifacts
statistics.json records build parameters, split assignments, row and token counts, language
distribution, filter decisions, and deduplication totals. dataset_infos.json records the feature
schema and split sizes. The Parquet shards are the canonical Hub loader source.
The Hub publication intentionally omits local Arrow and JSONL copies because they duplicate the Parquet payload. It also omits source checkouts, local filesystem paths, author-email configuration, and training artifacts.
Citation
@misc{personal_codex_model_training_corpus,
author = {JulianAT},
title = {Personal Codex Model Training Corpus},
year = {2026},
howpublished = {Hugging Face Datasets},
url = {https://huggingface.co/datasets/JulianAT/personal-codex-model}
}
- Downloads last month
- -