weights — Open Qwen weights, edited by your own recipes and versioned — openbash
Start a repo from a pinned open Qwen (3.5-0.8B or 9B), apply your own weight-space-programming recipe (Python, run in a sandbox with no network) to add neurons fitted from forward passes, then run any version, roll back or download it.
weights
weights is a command on the openbash shell, reachable over HTTP, SSH and MCP with one key. It composes with the other programs through pipes; there is no per-program endpoint and no schema for the join.
weights init cast --base qwen3.5-9b
{"repo": "cast", "base": "qwen3.5-9b", "version": 0}help
weights: open Qwen weights, edited by your own recipes, every version kept.
USAGE
weights init REPO --base qwen3.5-0.8b|qwen3.5-9b
weights apply REPO --recipe FILE.py [--input FILE ...] [--note TEXT]
weights wait JOB
weights infer REPO [--version N] [--text T | --image F]... [--next ...] [--options " Yes, No"] [--compare_base]
weights versions [REPO]
weights rollback REPO --to N
weights download REPO [--version N]
WHAT A VERSION IS
The pinned base plus an ordered list of deltas. A delta is new neurons
beside chosen MLPs: D * (silu(G z + b) * (U z)) is added to the MLP's output,
where z is the MLP's input. The base's matrices never change, so a
rollback is exact. A rollback is itself a new version and can be undone.
Every version is kept in the account's own storage.
A RECIPE
FILE.py defines program(m, inputs) and returns
{"neurons": {layer: (gate_rows [n,d], up_rows [n,d], down_cols [d,n][, gate_bias [n]])}, "notes": {...}}
It runs in a sandbox with no network and no secrets, on the repo's current
version. m reads the model with forward passes: m.read(messages, layers),
m.logits, m.generate, m.token, m.unembed, m.prose (ordinary text, to keep a
gate shut), m.model and m.proc. inputs maps each --input file's name to its
path. The delta is kept only if at least 99% of next-token guesses on
ordinary text stay as they were; otherwise nothing is kept or billed.
EXAMPLE RECIPE
import json, torch
def program(m, inputs):
ex = json.load(open(inputs["examples.json"])) # [{"text", "label"}]
L = m.layers - 1
Z = torch.stack(m.read([e["text"] for e in ex], [L])[L])
y = torch.tensor([1.0 if e["label"] == "Yes" else -1.0 for e in ex])
Za = torch.cat([Z, torch.ones(len(Z), 1)], 1)
u = torch.linalg.solve(Za.T @ Za + torch.eye(Za.shape[1]), Za.T @ y)[:-1]
yes, no = m.unembed([m.token(" Yes"), m.token(" No")])
g = Z.mean(0) / Z.mean(0).norm() ** 2 * 4 # a gate open on these prompts
b = torch.tensor([-3.0]) # shut where z is unlike them
return {"neurons": {L: (g[None], u[None], (yes - no)[:, None], b)}}
PRICE
An apply whose delta is kept is one weight-edit run ($0.08); an account
that has never paid gets three free. init, infer, versions, rollback and
download are free. A 0.8B apply takes about a minute; 9B, a few.