Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

Blackfrost-AI/Ablagent

Machine Learning

Evidence-bound runtime and protocol for editing model weights to remove refusal directions, aimed at alignment researchers.

This project ships 3 agent skillsSkill list and install →
178
48
Python
Apache-2.0
4 days old

What it is

Ablagent is a research runtime and interchange protocol (DWMIP v0) for Domain Weight Modification: controlled edits to a model's weights along a declared direction. It grows out of abliteration and refusal-direction research, but reframes an edit as a set of explicit claims — which site, which coordinate space, which writer, which baseline — that can be replayed and verified afterwards research lineage.

The reference operation is a rank-one dense update, W′ = W − αd(dᵀW), applied to one declared out × in writer with a normalized direction. The value of the project is less the formula than the surrounding workflow: declare, propose, compile, verify, evaluate, with negative trials retained and gates that fail closed.

Target users are researchers formalizing experiments, engineers qualifying architecture adapters, and agent developers who want a narrow, protocol-defined integration boundary.

Quickstart

Requires Python 3.11+ on CPU; no GPU, API key, or model download for the synthetic path.

python3 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
.venv/bin/ablagent capabilities
.venv/bin/ablagent demo --run-dir .runs/reference
.venv/bin/ablagent verify .runs/reference/candidate.manifest.json
.venv/bin/ablagent gate .runs/reference/candidate.evidence.json \
  --bank examples/banks/synthetic-release-mock.bank.json

The demo produces a graph, baseline tensors, a bound direction, a plan, a compiled candidate, and an evidence bundle — not a modified language model. The gate command is expected to return blocked with exit status 2, because the demo deliberately omits required evidence; that is the fail-closed path, not an installation failure. Use a fresh run directory each time, and see the full quickstart for splitting planning from compilation.

Running on a real checkpoint

The optional real extra installs a CPU executor that accepts a Hugging Face URL:

.venv/bin/python -m pip install -e '.[real]'
.venv/bin/ablagent run --pack derisk --executor real \
  --model https://huggingface.co/HuggingFaceTB/SmolLM2-135M \
  --alpha 1.0

Intake pins the exact commit and hashes files; baseline generates greedy responses on the pack corpus; capture contrasts refusal-side and helpful-side prefill activations (labeled correlational, not causal); bake applies the rank-one update and exports a Hugging Face-loadable copy with exactly one tensor changed. Quantization, serving, behavior verification, capability floors, and the red-line holdout are all recorded as skipped, and the run ends not_eligible run on a real checkpoint.

Constraints

  • The executable envelope is dense safetensors checkpoints of llama/qwen/mistral/gemma style, CPU-only, with up to roughly 900 MiB of editable float32 surface (about a 200M-parameter model). Oversized shards are rejected before download.
  • Conv1D families (gpt2/gpt_neo/gptj) fail closed at intake, and MoE/SSM and other non-dense architectures are not qualified in v0; treats runs on them as unvalidated.
  • FP8/MXFP8, NVFP4, GGUF, and IQ2_XXS are documented research directions, not CLI-implemented editors; unsupported inputs fail closed format research matrix.
  • Eligibility is a policy gate over artifact consistency, not behavioral proof, safety certification, or release approval. There is no publish command.

The Apache-2.0 code license does not extend to third-party model weights, datasets, or serving stacks; the vendored worked example and recipe library carry their own per-file scopes and notices licensing detail.

Supporting material

The repository includes a hash-pinned prompt-only benchmark set (443 evaluation, smoke-50, cyber-10) with an offline scorer, a recipe library of finalized GPU-scale playbooks, and a byte-identical Inkling-2-Mini-Derisked worked example covering a loop-transformer with physical-vs-logical layer targeting. That example is material for the upstream GPU/torch pipeline, not something the synthetic v0 runtime executes.

HotRepo's take

On the Python new-project list for 2026-11-28, Ablagent recorded 12 new stars and 2 forks over a roughly 90-minute window, moving from 103 to 115 stars in the sampled curve. The repository has no recorded all-language daily rank, so there is no basis to characterize it as a trending project.

The more notable signal is scope discipline for an alpha build: the README states plainly that serving, quantization, and behavior verification are unimplemented and that real runs end not_eligible. Reference tooling for this research niche often presents only successful edits; here the failure path is a first-class CLI command and the real executor refuses inputs it cannot qualify. The trade-off is reach — a single dense CPU path with a tight size ceiling means most practitioners will use the protocol and documentation rather than run the executor on production checkpoints.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. elder-plinius/OBLITERATUSOpen-source toolkit for analyzing and removing refusal behavior from open-weight LLMs, aimed at alignment researchers and red-teamers.Python9,269