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
Construct programs
- 4
Compile an exact program
Follow a counting rule into transformer weights.
- 5
Generate another network’s weights
Train a small generator and inspect the weights it produces.
- 6
Change weights with LoRA
Apply a low-rank update to a base weight matrix.
- 7
Generate an adapter from text
Use a task description as the input to a weight generator.
- 8
Compile a fuzzy function
Turn an email policy into a reusable PAW function.
- 9
Save and reuse a function
Run new inputs through the same compiled program.
- 10
Compile by training
Construct a neural function with task-specific optimization.
Use and inspect programs
- 11
Prompting versus compilation
Compare the steps for a repeated email-classification task.
- 12
Read weights
Calculate a norm map and test a weight symmetry.
- 13
Write weights with an LLM
Follow a general-purpose LLM from task information to numerical weights.
- 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.
python -m pip install weightspaceprogramming==0.1.0.dev1
weightspaceprogramming lesson list
weightspaceprogramming lesson loraKeep 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.