@openfluke/welvet 0.3.0 → 0.74.0
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/LICENSE +200 -200
- package/README.md +56 -357
- package/dist/benchmark_tiling.html +244 -0
- package/dist/benchmark_training.html +249 -0
- package/dist/benchmark_training_comparison.html +230 -0
- package/dist/cabi_verify.html +360 -0
- package/dist/dna_evo_benchmark.html +420 -0
- package/dist/index.d.ts +101 -35
- package/dist/index.js +135 -64
- package/dist/loader.browser.d.ts +2 -2
- package/dist/loader.browser.js +7 -8
- package/dist/loader.d.ts +2 -2
- package/dist/loader.js +12 -25
- package/dist/main.wasm +0 -0
- package/dist/src/index.d.ts +135 -0
- package/dist/src/index.js +181 -0
- package/dist/src/loader.browser.d.ts +5 -0
- package/dist/src/loader.browser.js +24 -0
- package/dist/src/loader.d.ts +5 -0
- package/dist/src/loader.js +26 -0
- package/dist/src/types.d.ts +299 -0
- package/dist/src/types.js +65 -0
- package/dist/tests/benchmark.d.ts +5 -0
- package/dist/tests/benchmark.js +139 -0
- package/dist/tests/benchmark.ts +148 -0
- package/dist/tests/cabi_verify.d.ts +5 -0
- package/dist/tests/cabi_verify.js +181 -0
- package/dist/tests/cabi_verify.ts +192 -0
- package/dist/types.d.ts +269 -171
- package/dist/types.js +63 -2
- package/dist/wasm_exec.js +575 -575
- package/package.json +58 -89
- package/dist/index.browser.d.ts +0 -32
- package/dist/index.browser.js +0 -39
package/package.json
CHANGED
|
@@ -1,89 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@openfluke/welvet",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist",
|
|
11
|
-
"LICENSE",
|
|
12
|
-
"README.md"
|
|
13
|
-
],
|
|
14
|
-
"keywords": [
|
|
15
|
-
"loom",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"bpe"
|
|
60
|
-
],
|
|
61
|
-
"license": "Apache-2.0",
|
|
62
|
-
"repository": {
|
|
63
|
-
"type": "git",
|
|
64
|
-
"url": "https://github.com/openfluke/loom.git",
|
|
65
|
-
"directory": "typescript"
|
|
66
|
-
},
|
|
67
|
-
"bugs": {
|
|
68
|
-
"url": "https://github.com/openfluke/loom/issues"
|
|
69
|
-
},
|
|
70
|
-
"homepage": "https://github.com/openfluke/loom/tree/main/typescript#readme",
|
|
71
|
-
"engines": {
|
|
72
|
-
"node": ">=18.0.0"
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
},
|
|
77
|
-
"scripts": {
|
|
78
|
-
"clean": "rm -rf dist",
|
|
79
|
-
"build": "tsc -p tsconfig.json",
|
|
80
|
-
"postbuild": "cp -r assets/* dist/",
|
|
81
|
-
"prepare": "bun run build",
|
|
82
|
-
"serve": "python3 serve.py",
|
|
83
|
-
"dev": "bun run build && bun run serve"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@types/node": "^22.7.5",
|
|
87
|
-
"typescript": "^5.6.3"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@openfluke/welvet",
|
|
3
|
+
"version": "0.74.0",
|
|
4
|
+
"description": "M-POLY-VTD AI Engine (Loom v0.74.0) — 21 Numerical Types, WebGPU, DNA Evolution, NEAT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"loom", "welvet", "neural-network", "machine-learning", "deep-learning",
|
|
16
|
+
"webassembly", "wasm", "webgpu", "gpu", "typescript", "javascript",
|
|
17
|
+
"transformer", "safetensors", "polymorphic", "quantization",
|
|
18
|
+
"fp4", "int4", "binary", "ternary", "multi-precision",
|
|
19
|
+
"systolic", "target-propagation", "gradient-free",
|
|
20
|
+
"swiglu", "moe", "embedding", "rnn", "lstm", "cnn",
|
|
21
|
+
"llm", "tokenizer", "bpe", "inference", "training",
|
|
22
|
+
"browser", "nodejs", "isomorphic"
|
|
23
|
+
],
|
|
24
|
+
"license": "Apache-2.0",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/openfluke/loom.git",
|
|
28
|
+
"directory": "welvet/typescript"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/openfluke/loom/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/openfluke/loom/tree/main/welvet/typescript#readme",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18.0.0"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"clean": "rimraf dist",
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
|
+
"postbuild": "shx cp -r assets/* dist/ && shx mkdir -p dist/tests && shx cp -r tests/* dist/tests/",
|
|
44
|
+
"prepare": "npm run build",
|
|
45
|
+
"serve": "python3 serve.py",
|
|
46
|
+
"dev": "npm run build && npm run serve",
|
|
47
|
+
"test": "tsx tests/cabi_verify.ts && tsx tests/benchmark.ts",
|
|
48
|
+
"test:cabi": "tsx tests/cabi_verify.ts",
|
|
49
|
+
"test:bench": "tsx tests/benchmark.ts"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^22.7.5",
|
|
53
|
+
"typescript": "^5.6.3",
|
|
54
|
+
"tsx": "^4.19.1",
|
|
55
|
+
"rimraf": "^6.0.1",
|
|
56
|
+
"shx": "^0.3.4"
|
|
57
|
+
}
|
|
58
|
+
}
|
package/dist/index.browser.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @openfluke/welvet - Browser Entry Point
|
|
3
|
-
*
|
|
4
|
-
* Browser-only build without Node.js dependencies
|
|
5
|
-
* Isomorphic wrapper that mirrors main.go WASM exports
|
|
6
|
-
*/
|
|
7
|
-
import { Network } from "./types.js";
|
|
8
|
-
import { loadLoomWASMBrowser } from "./loader.browser.js";
|
|
9
|
-
export * from "./types.js";
|
|
10
|
-
export { loadLoomWASMBrowser };
|
|
11
|
-
/**
|
|
12
|
-
* Initialize WASM for Browser environment
|
|
13
|
-
*/
|
|
14
|
-
export declare function initBrowser(): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Initialize - alias for initBrowser in browser context
|
|
17
|
-
*/
|
|
18
|
-
export declare function init(): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Create a network from JSON config
|
|
21
|
-
* Wrapper around the global createLoomNetwork function exposed by WASM
|
|
22
|
-
*/
|
|
23
|
-
export declare function createNetwork(config: object | string): Network;
|
|
24
|
-
/**
|
|
25
|
-
* Default export with all functions
|
|
26
|
-
*/
|
|
27
|
-
declare const _default: {
|
|
28
|
-
init: typeof init;
|
|
29
|
-
initBrowser: typeof initBrowser;
|
|
30
|
-
createNetwork: typeof createNetwork;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
package/dist/index.browser.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @openfluke/welvet - Browser Entry Point
|
|
3
|
-
*
|
|
4
|
-
* Browser-only build without Node.js dependencies
|
|
5
|
-
* Isomorphic wrapper that mirrors main.go WASM exports
|
|
6
|
-
*/
|
|
7
|
-
import { loadLoomWASMBrowser } from "./loader.browser.js";
|
|
8
|
-
export * from "./types.js";
|
|
9
|
-
export { loadLoomWASMBrowser };
|
|
10
|
-
/**
|
|
11
|
-
* Initialize WASM for Browser environment
|
|
12
|
-
*/
|
|
13
|
-
export async function initBrowser() {
|
|
14
|
-
await loadLoomWASMBrowser();
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Initialize - alias for initBrowser in browser context
|
|
18
|
-
*/
|
|
19
|
-
export async function init() {
|
|
20
|
-
return initBrowser();
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Create a network from JSON config
|
|
24
|
-
* Wrapper around the global createLoomNetwork function exposed by WASM
|
|
25
|
-
*/
|
|
26
|
-
export function createNetwork(config) {
|
|
27
|
-
const jsonConfig = typeof config === "string"
|
|
28
|
-
? config
|
|
29
|
-
: JSON.stringify(config);
|
|
30
|
-
return createLoomNetwork(jsonConfig);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Default export with all functions
|
|
34
|
-
*/
|
|
35
|
-
export default {
|
|
36
|
-
init,
|
|
37
|
-
initBrowser,
|
|
38
|
-
createNetwork
|
|
39
|
-
};
|