Spaces:
Running
Running
NakliTechie commited on
Commit ·
d9e4ace
1
Parent(s): 0a456a0
Sync from GitHub 2026-10-24T12:51:02Z
Browse files8022 unmodified lines8023802480258026802780288029138 unmodified lines816881698170817181728173817415920 unmodified lines240952409624097240982409924100241018378 unmodified lines324803248132482324833248432485324868022 unmodified lines// The model loads through anyformer (convergence plan, 2026-10-22): anyformer resolves the repo to diskformer's copy// of the engine (Gemma4Mobile) and, with ple, builds the OPFS per-layer-embedding table itself. The worker then drives// session.engine exactly as it drove its own engine. Pinned to the same anyformer as anyformer_models.js.const ANYFORMER_URL = 'https://cdn.jsdelivr.net/gh/NakliTechie/anyformer.js@v0.4.11/index.js';let anyformerLoad = null;let session = null;138 unmodified lines// rolled-in module URLs (moduleUrl()).// The model loads through anyformer (convergence plan, 2026-10-22): anyformer resolves the repo to diskformer's copy of// the engine (TernaryBonsai2); the worker drives session.engine as before and attaches DFlash / MTP itself.const ANYFORMER_URL = 'https://cdn.jsdelivr.net/gh/NakliTechie/anyformer.js@v0.4.11/index.js';const DFLASH_URL = '__TERNARY_BONSAI2_DFLASH_URL__';const MTP_URL = '__TERNARY_BONSAI2_MTP_URL__';// MTP speculative decoding (Settings → Models, default OFF; posted as `mtp` + `mtpDepth` on the15920 unmodified lines*/const THINK_CLOSE = -2;export const ANYFORMER_URL = 'https://cdn.jsdelivr.net/gh/NakliTechie/anyformer.js@v0.4.11/index.js';// anyformer's progress events → the engine events the SSD worker posts. The llama.cpp path reports 'download' (bytes// into OPFS) and 'load' / 'plan'; a hand engine (diskformer back end) reports its own engine events, 'weights' with8378 unmodified lines// The model loads through anyformer (convergence plan, 2026-10-22): anyformer resolves the repo to diskformer's copy of// the LFM2.5 engine (Lfm2Mobile) and returns a session with the same generate / reset / dispose. Pinned to an exact// version; LocalMind's anyformer_models.js pins the same one.const ANYFORMER_URL = 'https://cdn.jsdelivr.net/gh/NakliTechie/anyformer.js@v0.4.11/index.js';let anyformerLoad = null;let model = null;8022 unmodified lines8023802480258026802780288029138 unmodified lines816881698170817181728173817415920 unmodified lines240952409624097240982409924100241018378 unmodified lines324803248132482324833248432485324868022 unmodified lines// The model loads through anyformer (convergence plan, 2026-10-22): anyformer resolves the repo to diskformer's copy// of the engine (Gemma4Mobile) and, with ple, builds the OPFS per-layer-embedding table itself. The worker then drives// session.engine exactly as it drove its own engine. Pinned to the same anyformer as anyformer_models.js.const ANYFORMER_URL = 'https://cdn.jsdelivr.net/npm/anyformer@0.4.11/index.js';let anyformerLoad = null;let session = null;138 unmodified lines// rolled-in module URLs (moduleUrl()).// The model loads through anyformer (convergence plan, 2026-10-22): anyformer resolves the repo to diskformer's copy of// the engine (TernaryBonsai2); the worker drives session.engine as before and attaches DFlash / MTP itself.const ANYFORMER_URL = 'https://cdn.jsdelivr.net/npm/anyformer@0.4.11/index.js';const DFLASH_URL = '__TERNARY_BONSAI2_DFLASH_URL__';const MTP_URL = '__TERNARY_BONSAI2_MTP_URL__';// MTP speculative decoding (Settings → Models, default OFF; posted as `mtp` + `mtpDepth` on the15920 unmodified lines*/const THINK_CLOSE = -2;export const ANYFORMER_URL = 'https://cdn.jsdelivr.net/npm/anyformer@0.4.11/index.js';// anyformer's progress events → the engine events the SSD worker posts. The llama.cpp path reports 'download' (bytes// into OPFS) and 'load' / 'plan'; a hand engine (diskformer back end) reports its own engine events, 'weights' with8378 unmodified lines// The model loads through anyformer (convergence plan, 2026-10-22): anyformer resolves the repo to diskformer's copy of// the LFM2.5 engine (Lfm2Mobile) and returns a session with the same generate / reset / dispose. Pinned to an exact// version; LocalMind's anyformer_models.js pins the same one.const ANYFORMER_URL = 'https://cdn.jsdelivr.net/npm/anyformer@0.4.11/index.js';let anyformerLoad = null;let model = null;
index.html+4-4