anyformer 0.4.9 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,14 +1,26 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.4.10 — 2026-10-24
4
4
 
5
- ### Added
6
- - `kohra`: `onProgress` is forwarded to kohra's `from_pretrained` as `progress_callback` (kohra v0.3.1+), so the
7
- 2.7 GB Nemotron download reports bytes. `stored()` and `remove()` list kohra's Cache Storage 'kohra-models'.
8
- Waits on the kohra v0.3.1 pin.
5
+ ### Changed
6
+ - kohra pinned to v0.3.1 (bf95d44): `from_pretrained` reports download progress, which anyformer's `onProgress`
7
+ receives (forwarded since npm 0.4.9), and caches the graph files in Cache Storage 'kohra-models', which `stored()`
8
+ lists and `remove()` deletes. A second load of Nemotron-Labs-Diffusion-3B reads them from there.
9
+
10
+ ### Verified
11
+ - npm test 90/90. kohra's own Chrome check on v0.3.1 (kohra session): the first Nemotron load cached all 3 files with
12
+ their content-length; a reload was ready in 7.4 s with no graph fetches; output unchanged. anyformer's own browser
13
+ check is owed (the GPU is with Quench), and the npm publish waits for it.
9
14
 
10
15
  ## 0.4.9 — 2026-10-24
11
16
 
17
+ npm 0.4.9 was published from main 69bed78, one commit after tag v0.4.9 (cce1e1a), so it also carries the change
18
+ below. With the kohra v0.3.0 pin that change does nothing yet: v0.3.0 ignores `progress_callback` and caches nothing.
19
+
20
+ ### Added (69bed78)
21
+ - `kohra`: `onProgress` is forwarded to kohra's `from_pretrained` as `progress_callback` (kohra v0.3.1+), so the
22
+ 2.7 GB Nemotron download reports bytes. `stored()` and `remove()` list kohra's Cache Storage 'kohra-models'.
23
+
12
24
  ### Added
13
25
  - Catalog flags: `diffusion: true` on the two kohra entries (Qwen3-0.6B MDLM, Nemotron-Labs-Diffusion-3B), and
14
26
  `experimental: true` on Nemotron-Labs-Diffusion-3B, so LocalMind can show it as opt-in, "experimental · diffusion",
package/README.md CHANGED
@@ -14,7 +14,7 @@ browser storage; no account, no server, no telemetry.
14
14
  | How | Command |
15
15
  |---|---|
16
16
  | npm | `npm install anyformer` |
17
- | CDN | `import { load } from 'https://cdn.jsdelivr.net/npm/anyformer@0.4.9/+esm';` |
17
+ | CDN | `import { load } from 'https://cdn.jsdelivr.net/npm/anyformer@0.4.10/+esm';` |
18
18
  | Copy | `index.js` and `src/`; nothing else is needed |
19
19
 
20
20
  ```js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anyformer",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "One call to run a model in a browser tab: anyformer reads the Hub repo, probes the browser, and picks the back end (transformers.js, LocalMind's WebGPU kernels, diskformer, kohra) that fits the model's format, architecture and your GPU budget.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/sources.js CHANGED
@@ -6,8 +6,9 @@
6
6
  export const PINS = {
7
7
  transformers: '4.3.1',
8
8
  wllama: '3.4.1', // LocalMind's pin; its stream-drain workaround (src/backends/wllama.js) is for this version
9
- // v0.3.0: seeded block-KV graphs (Nemotron-Labs-Diffusion-3B), chatFormat, split external data.
10
- kohra: '85e01f0193163b0f2e9696d4f6f5e12b68a277e9',
9
+ // v0.3.1: seeded block-KV graphs (Nemotron-Labs-Diffusion-3B), chatFormat, split external data; download progress
10
+ // (progress_callback) and the graph files cached in Cache Storage 'kohra-models'.
11
+ kohra: 'bf95d44c3e3cfc001201baa03fa121c2bf9c7d73',
11
12
  // v0.6.8: every engine (the disk-tier MoE engines, Ling 3.0 Flash, and LocalMind's whole-model engines LFM2.5,
12
13
  // Gemma 4 E2B/E4B and Ternary Bonsai 2) under engines/, and the llama.cpp path under ggml/, which loads split GGUFs
13
14
  // and drafters, and reads past 2 GiB (Nemotron 3.5 Bolt E4B needs v0.6.8 or later). The hand engines' ingest