OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Alphaedit

Alphaedit is a Python research implementation of a null-space-constrained method for editing knowledge in language models. It includes scripts for sequential editing and evaluation, with a quick-start example for Llama 3 8B Instruct.

Independent OpenViST project profile, based on linked sources.

Alphaedit — Experiments matching the README’s Llama 3 8B Instruct and MCF setup
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Alphaedit when you want to study sequential model edits and their effects on preserved knowledge or downstream capabilities using its documented research workflow.

Who it is for

  • Researchers investigating sequential knowledge editing in language models.
  • Practitioners evaluating counterfactual edits and downstream capabilities in the documented Llama 3 workflow.

Documented uses

  • Apply batches of knowledge edits to Llama 3 8B Instruct using the documented MCF dataset configuration.
  • Check downstream capabilities periodically during an editing run.
  • Review result files and summarize results from multiple runs.
Before you choose

Requirements & limits

The public repository lists an MIT license.

  • The documented setup requires at least one A40 48G GPU.
  • The README supplies the Llama 3 8B Instruct covariance matrix and specifies that it be decompressed into ./data/stats.
  • The documented quick start uses pinned Python dependency versions and model-specific hyperparameters.
  • Applying the method to another model architecture or size may require modifications.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run and summarize the documented Llama 3 editing experiment

Apply sequential AlphaEdit edits to Llama 3 8B Instruct on the MCF counterfactual dataset, then summarize selected runs.

Before you start

  • Python environment with the README-listed dependencies: torch 2.6.0, einops 0.8.1, higher 0.2.1, hydra-core 1.3.2, transformers 4.51.3, datasets 2.21.0, matplotlib 3.10.3, spacy 3.4.1, scipy 1.15.2, scikit-learn 1.6.1, and nltk 3.9.1.
  • At least one A40 48G GPU.
  • The Llama 3 8B Instruct covariance matrix, decompressed and saved in ./data/stats.
  • The documented model, hyperparameter file, and MCF dataset settings.

Steps

  1. Run the README’s the command below command with --alg_name=AlphaEdit, --model_name=meta-llama/Meta-Llama-3-8B-Instruct, --hparams_fname=Llama3-8B.json, --ds_name=mcf, --dataset_size_limit=2000, --num_edits=100, and --downstream_eval_steps=5.

    Documented command
    python3 -m experiments.evaluate
  2. Review the run output under results/AlphaEdit/run_.

  3. Summarize selected runs with the command below.

    Documented command
    python summarize.py --dir_name=AlphaEdit --runs=run_,run_

Expected outcome

Run-specific edit and evaluation result files, followed by a summary for the selected runs.

Guide limitations

  • The README’s example is for Llama 3 8B Instruct and the MCF dataset; other architectures or sizes may need code and hyperparameter changes.
  • This guide describes the repository instructions and is not a report of an executed experiment.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 November 2026
Original website title
jianghoucheng/AlphaEdit · Official homepage title · retained in its source language