@seanhogg/builderforce-memory-engine 2026.6.18 → 2026.6.19
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/README.md +16 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @seanhogg/builderforce-memory-engine
|
|
2
2
|
|
|
3
|
-
> WebGPU-accelerated Mamba-1/2/3 and Hybrid SSM
|
|
3
|
+
> BuilderForce Agent Memory — **engine layer**. WebGPU-accelerated Mamba-1/2/3 and Hybrid SSM kernels, written in **TypeScript**, compiled for use in any JavaScript application. *(Formerly published as `@seanhogg/mambacode.js`.)*
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@seanhogg/builderforce-memory-engine)
|
|
6
6
|
[](./LICENSE)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
> 📖 **New to MambaCode.js?** Start with the [Getting Started Guide](./docs/getting-started.md).
|
|
8
|
+
`@seanhogg/builderforce-memory-engine` is a **TypeScript-first** library that brings the Mamba family of State Space Models to the browser via WebGPU. It ships **Mamba-2** (SSD), **Mamba-3** (complex-valued MIMO + ET discretisation), and **hybrid attention** layers, while remaining fully backward-compatible with Mamba-1 checkpoints. It is the zero-runtime-dep engine consumed by [`@seanhogg/builderforce-memory`](../memory) (the runtime layer).
|
|
11
9
|
|
|
12
10
|
---
|
|
13
11
|
|
|
@@ -44,7 +42,7 @@ MambaCode.js is a **TypeScript-first** library that brings the Mamba family of S
|
|
|
44
42
|
## Installation
|
|
45
43
|
|
|
46
44
|
```bash
|
|
47
|
-
npm install
|
|
45
|
+
npm install @seanhogg/builderforce-memory-engine
|
|
48
46
|
```
|
|
49
47
|
|
|
50
48
|
Build from source:
|
|
@@ -60,7 +58,7 @@ npm run build # compiles TypeScript → dist/
|
|
|
60
58
|
### Mamba-1 (backward-compatible, unchanged)
|
|
61
59
|
|
|
62
60
|
```ts
|
|
63
|
-
import { MambaModel, MambaTrainer, BPETokenizer, initWebGPU } from '
|
|
61
|
+
import { MambaModel, MambaTrainer, BPETokenizer, initWebGPU } from '@seanhogg/builderforce-memory-engine';
|
|
64
62
|
|
|
65
63
|
const { device } = await initWebGPU();
|
|
66
64
|
const tokenizer = new BPETokenizer();
|
|
@@ -80,7 +78,7 @@ console.log(tokenizer.decode(ids));
|
|
|
80
78
|
### Mamba-2 (SSD)
|
|
81
79
|
|
|
82
80
|
```ts
|
|
83
|
-
import { HybridMambaModel } from '
|
|
81
|
+
import { HybridMambaModel } from '@seanhogg/builderforce-memory-engine';
|
|
84
82
|
|
|
85
83
|
const model = new HybridMambaModel(device, {
|
|
86
84
|
vocabSize : tokenizer.vocabSize,
|
|
@@ -228,7 +226,7 @@ docs/
|
|
|
228
226
|
|
|
229
227
|
## Tools
|
|
230
228
|
|
|
231
|
-
The `tools/` directory contains model-building and checkpoint utilities that operate at the
|
|
229
|
+
The `tools/` directory contains model-building and checkpoint utilities that operate at the engine level. These are **not part of the public API** — they are for authors who want to build, pretrain, or convert model weights.
|
|
232
230
|
|
|
233
231
|
### `tools/generate-bin.js` — Generate a blank MBJS checkpoint
|
|
234
232
|
|
|
@@ -320,7 +318,7 @@ const model = new MambaModel(device, config);
|
|
|
320
318
|
const model = new HybridMambaModel(device, { ...config, layers: Array(8).fill({ type: 'mamba2' }) });
|
|
321
319
|
|
|
322
320
|
// v2.x — MambaBlock is a deprecated alias for Mamba1Block; both still work
|
|
323
|
-
import { MambaBlock, Mamba1Block } from '
|
|
321
|
+
import { MambaBlock, Mamba1Block } from '@seanhogg/builderforce-memory-engine';
|
|
324
322
|
```
|
|
325
323
|
|
|
326
324
|
---
|
|
@@ -357,23 +355,23 @@ npm run lint # ESLint
|
|
|
357
355
|
|
|
358
356
|
## Professional Platform
|
|
359
357
|
|
|
360
|
-
**Want managed infrastructure for your
|
|
358
|
+
**Want managed infrastructure for your SSM models?**
|
|
361
359
|
|
|
362
|
-
[**Builderforce.ai**](https://builderforce.ai) is the professional enterprise platform built on
|
|
360
|
+
[**Builderforce.ai**](https://builderforce.ai) is the professional enterprise platform built on this engine. It provides:
|
|
363
361
|
|
|
364
|
-
- **In-browser LoRA training** — fine-tune up to 2B-parameter models on instruction datasets using the
|
|
365
|
-
- **Hybrid Local Brain** — the Mamba State Engine runs a selective scan alongside Transformers.js inference for persistent agent memory, powered by
|
|
362
|
+
- **In-browser LoRA training** — fine-tune up to 2B-parameter models on instruction datasets using the engine's WebGPU kernels, entirely client-side
|
|
363
|
+
- **Hybrid Local Brain** — the Mamba State Engine runs a selective scan alongside Transformers.js inference for persistent agent memory, powered by these WGSL kernels
|
|
366
364
|
- **Dataset generation** — LLM-assisted JSONL instruction dataset creation with streaming progress
|
|
367
365
|
- **Workforce Registry** — publish trained models as specialist AI agents; discoverable and hirable by the community
|
|
368
366
|
- **Agent portability** — `AgentPackage` bundles the LoRA adapter, `MambaStateSnapshot`, and agent profile into a single portable JSON artifact
|
|
369
367
|
- **BuilderForce Agents mesh** — trained agents deploy as self-hosted coding agents via [BuilderForce Agents](https://builderforce.ai), orchestrated from Builderforce
|
|
370
368
|
|
|
371
|
-
Use
|
|
369
|
+
Use this engine to build and experiment locally. Use Builderforce.ai to deploy, manage, and share at scale.
|
|
372
370
|
|
|
373
371
|
```
|
|
374
|
-
|
|
372
|
+
@seanhogg/builderforce-memory-engine (WebGPU kernels)
|
|
375
373
|
↓
|
|
376
|
-
|
|
374
|
+
@seanhogg/builderforce-memory (session API + runtime + memory)
|
|
377
375
|
↓
|
|
378
376
|
Builderforce.ai (enterprise IDE + training + registry)
|
|
379
377
|
↓
|
|
@@ -382,12 +380,6 @@ MambaCode.js (WebGPU kernels)
|
|
|
382
380
|
|
|
383
381
|
---
|
|
384
382
|
|
|
385
|
-
## Consolidated Gap Register
|
|
386
|
-
|
|
387
|
-
- **Release publish blocked by NPM_TOKEN permissions** (`.github/workflows/release.yml`): the `2026.5.31` tag failed `npm publish` with a 404 PUT. The package exists on npm (maintainer `seanhogg`) and `npm whoami` passes, so the `NPM_TOKEN` secret authenticates but lacks read-write on `@seanhogg/mambacode.js` (read-only token, wrong account, or a granular token whose allowlist omits the package). The workflow now fails fast with this diagnosis, but the actual fix is registry-side and manual: rotate `NPM_TOKEN` to an Automation/granular token with publish rights, then re-push the tag. Unblocks every downstream consumer pinned to a published `@seanhogg/mambacode.js` version.
|
|
388
|
-
|
|
389
|
-
---
|
|
390
|
-
|
|
391
383
|
## License
|
|
392
384
|
|
|
393
385
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanhogg/builderforce-memory-engine",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.19",
|
|
4
4
|
"description": "BuilderForce Agent Memory — engine layer. TypeScript/WGSL Mamba SSM kernels, model blocks, autograd, training, and BPE tokenizer (zero runtime deps, WebGPU-native).",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|