{"slug":"weights","domain":"research","title":"Open Qwen weights, edited by your own recipes and versioned","summary":"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.","help":"weights: open Qwen weights, edited by your own recipes, every version kept.\n\nUSAGE\n  weights init REPO --base qwen3.5-0.8b|qwen3.5-9b\n  weights apply REPO --recipe FILE.py [--input FILE ...] [--note TEXT]\n  weights wait JOB\n  weights infer REPO [--version N] [--text T | --image F]... [--next ...] [--options \" Yes, No\"] [--compare_base]\n  weights versions [REPO]\n  weights rollback REPO --to N\n  weights download REPO [--version N]\n\nWHAT A VERSION IS\n  The pinned base plus an ordered list of deltas. A delta is new neurons\n  beside chosen MLPs: D * (silu(G z + b) * (U z)) is added to the MLP's output,\n  where z is the MLP's input. The base's matrices never change, so a\n  rollback is exact. A rollback is itself a new version and can be undone.\n  Every version is kept in the account's own storage.\n\nA RECIPE\n  FILE.py defines program(m, inputs) and returns\n    {\"neurons\": {layer: (gate_rows [n,d], up_rows [n,d], down_cols [d,n][, gate_bias [n]])}, \"notes\": {...}}\n  It runs in a sandbox with no network and no secrets, on the repo's current\n  version. m reads the model with forward passes: m.read(messages, layers),\n  m.logits, m.generate, m.token, m.unembed, m.prose (ordinary text, to keep a\n  gate shut), m.model and m.proc. inputs maps each --input file's name to its\n  path. The delta is kept only if at least 99% of next-token guesses on\n  ordinary text stay as they were; otherwise nothing is kept or billed.\n\nEXAMPLE RECIPE\n  import json, torch\n  def program(m, inputs):\n      ex = json.load(open(inputs[\"examples.json\"]))      # [{\"text\", \"label\"}]\n      L = m.layers - 1\n      Z = torch.stack(m.read([e[\"text\"] for e in ex], [L])[L])\n      y = torch.tensor([1.0 if e[\"label\"] == \"Yes\" else -1.0 for e in ex])\n      Za = torch.cat([Z, torch.ones(len(Z), 1)], 1)\n      u = torch.linalg.solve(Za.T @ Za + torch.eye(Za.shape[1]), Za.T @ y)[:-1]\n      yes, no = m.unembed([m.token(\" Yes\"), m.token(\" No\")])\n      g = Z.mean(0) / Z.mean(0).norm() ** 2 * 4      # a gate open on these prompts\n      b = torch.tensor([-3.0])                       # shut where z is unlike them\n      return {\"neurons\": {L: (g[None], u[None], (yes - no)[:, None], b)}}\n\nPRICE\n  An apply whose delta is kept is one weight-edit run ($0.08); an account\n  that has never paid gets three free. init, infer, versions, rollback and\n  download are free. A 0.8B apply takes about a minute; 9B, a few.","example_command":"weights init cast --base qwen3.5-9b","example_output":"{\"repo\": \"cast\", \"base\": \"qwen3.5-9b\", \"version\": 0}","cost_class":"upstream-fetch","tier":"metered","billing_items":["weight_edit_run"],"price_per_1k_calls":80,"price_is_from":false,"status":"available","commands":["weights"],"default_enabled":false,"first_seen":"2026-11-18T07:35:47.881823Z","enabled":false}
