Search the guide

Start with a guide

Learn by doing

Weight Space Programming Guide — Interactive Python Course

Change a weight. Run a small network. Compile a program. Follow fourteen short lessons with Python examples you can edit and run.

Start lesson 1 →

Basics

  1. 1

    What a weight does

    Change a weight and see the output change.

  2. 2

    Put a rule in weights

    Write weights that implement a logical rule.

  3. 3

    Construct once, run repeatedly

    Separate making the weights from using them.

Construct programs

  1. 4

    Compile an exact program

    Follow a counting rule into transformer weights.

  2. 5

    Generate another network’s weights

    Train a small generator and inspect the weights it produces.

  3. 6

    Change weights with LoRA

    Apply a low-rank update to a base weight matrix.

  4. 7

    Generate an adapter from text

    Use a task description as the input to a weight generator.

  5. 8

    Compile a fuzzy function

    Turn an email policy into a reusable PAW function.

  6. 9

    Save and reuse a function

    Run new inputs through the same compiled program.

  7. 10

    Compile by training

    Construct a neural function with task-specific optimization.

Use and inspect programs

  1. 11

    Prompting versus compilation

    Compare the steps for a repeated email-classification task.

  2. 12

    Read weights

    Calculate a norm map and test a weight symmetry.

  3. 13

    Write weights with an LLM

    Follow a general-purpose LLM from task information to numerical weights.

  4. 14

    Choose a construction method

    Match the task to the program you want to run.

Run the lessons locally

Install the same Python package used by the browser examples. The seven lessons run on your CPU.

bash
python -m pip install weightspaceprogramming==0.1.0.dev1
weightspaceprogramming lesson list
weightspaceprogramming lesson lora

Python package · Source code

Keep exploring

Use these longer guides alongside the lessons.

How Neural Networks Represent ProgramsFollow an exact counting operation and a fuzzy email classifier from specification to network execution.How Weight Space Programming Methods DifferCompare inputs, construction, saved programs, execution and preparation across neural compilers and direct weight programming.Prompting versus Compilation for Repeated TasksRun the same email-urgency policy through a prompted model and a saved neural function.Reading Paths through Weight Space ProgrammingFollow the current experiments, understand the research foundations, build a function or design an evaluation.
Course contents