release 0.1 — tiny CPU MNIST + alpha demo #24

Closed
opened 2026-11-21 13:00:41 +00:00 by dsh · 7 comments
Member

Goal: a small, installable CPU release that someone can run on a laptop to train/sample MNIST, with the transparent-background alpha demo as the eyecatcher.

Checklist:

  • MNIST RAT/hyper pipelines, 32+ tests, M1 finding
  • alpha rendering (wsample --alpha) + docs/scripts/mnist_to_alpha.py
  • alpha docs and generated/real samples committed
  • JS toy: level-1 RAT inference in the browser from exported weights (canvas alpha)
  • install/quickstart polish (one command, no mlflow extra required for alpha?)
  • release notes in CHANGELOG.md
  • tag v0.1.0 on green master (signed)
  • decide package publish (currently none; Forgejo/PyPI?)

Scope guard: no new training budget required; use the existing RAT-16 checkpoint. CIFAR and level 2 remain post-0.1.

Goal: a small, installable CPU release that someone can run on a laptop to train/sample MNIST, with the transparent-background alpha demo as the eyecatcher. Checklist: - [x] MNIST RAT/hyper pipelines, 32+ tests, M1 finding - [x] alpha rendering (`wsample --alpha`) + `docs/scripts/mnist_to_alpha.py` - [x] alpha docs and generated/real samples committed - [ ] JS toy: level-1 RAT inference in the browser from exported weights (canvas alpha) - [ ] install/quickstart polish (one command, no mlflow extra required for alpha?) - [ ] release notes in `CHANGELOG.md` - [ ] tag `v0.1.0` on green master (signed) - [ ] decide package publish (currently `none`; Forgejo/PyPI?) Scope guard: no new training budget required; use the existing RAT-16 checkpoint. CIFAR and level 2 remain post-0.1.
dsh self-assigned this 2026-11-21 13:00:41 +00:00
Author
Member

Promptable model is in: class-conditional RAT-32 with a one-hot digit channel, 10% class dropout and CFG at --guidance 5. 3k-step checkpoint: 261k params, 14.5 min CPU, samples obey the requested digit. Grid in docs/assets/mnist/prompted_digits_preview.png; report docs/experiments/2026-11-21-mnist-promptable.md.

Remaining 0.1: JS toy (level-1 RAT inference + prompt/guidance UI), quickstart polish, CHANGELOG, tag. The JS demo needs the one-hot plane and two forward passes per step for guidance; both are straightforward.

Promptable model is in: class-conditional RAT-32 with a one-hot digit channel, 10% class dropout and CFG at `--guidance 5`. 3k-step checkpoint: 261k params, 14.5 min CPU, samples obey the requested digit. Grid in `docs/assets/mnist/prompted_digits_preview.png`; report `docs/experiments/2026-11-21-mnist-promptable.md`. Remaining 0.1: JS toy (level-1 RAT inference + prompt/guidance UI), quickstart polish, `CHANGELOG`, tag. The JS demo needs the one-hot plane and two forward passes per step for guidance; both are straightforward.
Author
Member

10k CFG model + working web toy are in (PR #27).

  • 10k class-conditional RAT-32 (channel + class dropout + CFG): val 0.0435, 46 min CPU, 261k params; prompted 0-9 grid in docs/assets/mnist/prompted_digits_10k_preview.png.
  • web/: plain JS UI (digit buttons, guidance slider, canvas, download) + Flask /api/sample bridge; verified ~1.2 s per sample. web/README.md has the API contract and flango/web-frontend integration notes.
  • For 0.1 inference is server-side Flask; pure-JS level-1 RAT inference is the remaining step, plus packaging/changelog/tag.
  • 38 tests, CI green.
10k CFG model + working web toy are in (PR #27). - 10k class-conditional RAT-32 (channel + class dropout + CFG): val 0.0435, 46 min CPU, 261k params; prompted 0-9 grid in `docs/assets/mnist/prompted_digits_10k_preview.png`. - `web/`: plain JS UI (digit buttons, guidance slider, canvas, download) + Flask `/api/sample` bridge; verified ~1.2 s per sample. `web/README.md` has the API contract and flango/web-frontend integration notes. - For 0.1 inference is server-side Flask; pure-JS level-1 RAT inference is the remaining step, plus packaging/changelog/tag. - 38 tests, CI green.
Author
Member

Pure-JS toy is done (PR #28).

  • web/static/wink.js: level-1 complex RAT forward + DDIM + CFG, no dependencies.
  • Web Worker loads static/weights.json (5.2 MB) once; generation is off the main thread.
  • web/export_weights.py exports checkpoint -> JSON bundle.
  • Run python -m http.server 5001 -d web; no Flask/API needed.
  • Numerical check vs PyTorch: max abs ~0.003 forward, ~0.009 over 50 DDIM steps (float32).
  • web-Deeps can copy index.html + static/ into flango/web-frontend; no SQLAlchemy/auth changes.

Remaining 0.1: packaging/quickstart polish, CHANGELOG final, tag v0.1.0.

Pure-JS toy is done (PR #28). - `web/static/wink.js`: level-1 complex RAT forward + DDIM + CFG, no dependencies. - Web Worker loads `static/weights.json` (5.2 MB) once; generation is off the main thread. - `web/export_weights.py` exports checkpoint -> JSON bundle. - Run `python -m http.server 5001 -d web`; no Flask/API needed. - Numerical check vs PyTorch: max abs ~0.003 forward, ~0.009 over 50 DDIM steps (float32). - web-Deeps can copy `index.html` + `static/` into flango/web-frontend; no SQLAlchemy/auth changes. Remaining 0.1: packaging/quickstart polish, CHANGELOG final, tag `v0.1.0`.
Author
Member

CI/CD is ready (PR #32):

  • ci.yml: sync, compileall, imports, 38 tests, uv build + twine check; green on master.
  • publish.yml: tag-only Forgejo registry publish via OIDC Authorized Integration; uses the AUDIENCE Actions variable; idempotent.
  • publish-pypi.yml: PYPI_TOKEN secret; skipped when absent.
  • release.yml: CHANGELOG.md section -> Forgejo release + wheel/sdist.
  • CHANGELOG.md and package metadata are at 0.1.0.

No tag yet. The remaining step is the signed v0.1.0 tag once the site is ready:

git tag -s v0.1.0 -m 'WINK 0.1.0'
git push origin v0.1.0

That tag publishes immediately. Manual dry runs for publish.yml, publish-pypi.yml and release.yml are available from the Actions tab; they build/check but upload nothing.

CI/CD is ready (PR #32): - `ci.yml`: sync, compileall, imports, 38 tests, `uv build` + `twine check`; green on master. - `publish.yml`: tag-only Forgejo registry publish via OIDC Authorized Integration; uses the `AUDIENCE` Actions variable; idempotent. - `publish-pypi.yml`: `PYPI_TOKEN` secret; skipped when absent. - `release.yml`: `CHANGELOG.md` section -> Forgejo release + wheel/sdist. - `CHANGELOG.md` and package metadata are at 0.1.0. No tag yet. The remaining step is the signed `v0.1.0` tag once the site is ready: ```bash git tag -s v0.1.0 -m 'WINK 0.1.0' git push origin v0.1.0 ``` That tag publishes immediately. Manual dry runs for `publish.yml`, `publish-pypi.yml` and `release.yml` are available from the Actions tab; they build/check but upload nothing.
Author
Member

v0.1.0 is tagged and partly shipped:

  • signed tag v0.1.0 pushed at 0372945
  • Forgejo registry publish: success
  • Forgejo release page + wheel/sdist assets: success
  • PyPI publish: failed with 403 Invalid or non-existent authentication information — the PYPI_TOKEN secret is set but not a valid PyPI token. Tracked as #35 (needs-operator).

Local build: wink-0.1.0-py3-none-any.whl (38 KB) and wink-0.1.0.tar.gz (19.6 MB), both twine check clean. Once the PyPI secret is replaced, rerun the failed Publish to PyPI job on the tag; no code change should be needed.

v0.1.0 is tagged and partly shipped: - signed tag `v0.1.0` pushed at `0372945` - Forgejo registry publish: **success** - Forgejo release page + wheel/sdist assets: **success** - PyPI publish: **failed** with `403 Invalid or non-existent authentication information` — the `PYPI_TOKEN` secret is set but not a valid PyPI token. Tracked as #35 (needs-operator). Local build: `wink-0.1.0-py3-none-any.whl` (38 KB) and `wink-0.1.0.tar.gz` (19.6 MB), both `twine check` clean. Once the PyPI secret is replaced, rerun the failed `Publish to PyPI` job on the tag; no code change should be needed.
Author
Member

PyPI retry after the token fix: auth now passes, but PyPI rejects the name itself:

400 The name 'wink' isn't allowed.

So v0.1.0 is shipped on Forgejo (registry + release assets) but cannot be uploaded to PyPI under wink. See #35. Need an operator naming decision; wink-diffusion is the recommended alternate, import remains wink. No new tag should be cut until that is chosen.

PyPI retry after the token fix: auth now passes, but PyPI rejects the **name** itself: ```text 400 The name 'wink' isn't allowed. ``` So v0.1.0 is shipped on Forgejo (registry + release assets) but cannot be uploaded to PyPI under `wink`. See #35. Need an operator naming decision; `wink-diffusion` is the recommended alternate, import remains `wink`. No new tag should be cut until that is chosen.
Author
Member

v0.1.1 is fully shipped.

Closing the 0.1 release issue.

**v0.1.1 is fully shipped.** - PyPI: https://pypi.org/project/wink-diffusion/0.1.1/ — wheel + sdist live - Forgejo registry: `ml-lab/pypi/wink-diffusion` 0.1.1 live - Release: https://git.pvlb.dev/ml-lab/wink/releases/tag/v0.1.1 — assets attached - Tag: signed `v0.1.1` on `566c93e` - PyPI distribution is `wink-diffusion`; import/CLI remain `wink`, `wtrain`, `wsample`, `weval`. - All three tag workflows succeeded; master CI green. Closing the 0.1 release issue.
dsh closed this issue 2026-11-26 08:00:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ml-lab/wink#24
No description provided.