@jax-js/jax 0.0.1 → 0.0.2
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 +14 -9
- package/dist/backend-1eVbAoaV.js +1890 -0
- package/dist/backend-BK21PBVP.cjs +2130 -0
- package/dist/chunk-Cl8Af3a2.js +11 -0
- package/dist/index.cjs +4076 -6059
- package/dist/index.d.cts +892 -650
- package/dist/index.d.ts +889 -650
- package/dist/index.js +3992 -3473
- package/dist/webgpu-JVpVad6g.js +591 -0
- package/dist/webgpu-c5Fe8nx8.cjs +591 -0
- package/package.json +29 -24
- package/dist/chunk-B2GFURUN.js +0 -1978
- package/dist/webgpu-QNXDOQZP.js +0 -559
package/README.md
CHANGED
|
@@ -55,18 +55,23 @@ const y = np.dot(x.ref, x); // JIT-compiled into a matrix multiplication kernel
|
|
|
55
55
|
Under construction.
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
pnpm install
|
|
59
|
+
pnpm run build:watch
|
|
60
|
+
|
|
61
|
+
# Run tests
|
|
62
|
+
pnpm exec playwright install
|
|
63
|
+
pnpm test
|
|
61
64
|
```
|
|
62
65
|
|
|
63
66
|
## Next on Eric's mind
|
|
64
67
|
|
|
65
|
-
-
|
|
66
|
-
-
|
|
68
|
+
- Fix jit-of-grad returning very incorrect result
|
|
69
|
+
- Probably add static_argnums to jit() so that clip and some nn functions have jit added
|
|
70
|
+
- Improve perf of MNIST neural network
|
|
71
|
+
- Adding fused reductions to JIT
|
|
72
|
+
- Reduce kernel overhead of constants / inline expressions
|
|
67
73
|
- Investigate why jax-js Matmul is 2x slower on Safari TP than unroll kernel
|
|
68
74
|
- How many threads to create per workgroup, depends on hardware
|
|
69
|
-
- Need to break up kernel dispatches if workgroup count exceeds 65536
|
|
70
75
|
- Think about two-stage `cumsum()`
|
|
71
76
|
- Frontend transformations need to match backend type for pureArray() and zeros() calls
|
|
72
77
|
|
|
@@ -88,12 +93,12 @@ npm test
|
|
|
88
93
|
- [x] `jit()` support via Jaxprs and kernel fusion
|
|
89
94
|
- [x] We figure out the `dispose()` / refcount / linear types stuff
|
|
90
95
|
- [ ] `dispose()` for saved "const" tracers in Jaxprs
|
|
91
|
-
- [ ] Garbage collection for JIT programs
|
|
96
|
+
- [ ] Garbage collection for JIT programs
|
|
92
97
|
- [ ] Memory scheduling, buffer allocation (can be tricky)
|
|
93
98
|
- [ ] Demos: Navier-Stokes, neural networks, statistics
|
|
94
|
-
- [
|
|
99
|
+
- [x] Features for neural networks
|
|
95
100
|
- [ ] Convolution
|
|
96
|
-
- [
|
|
101
|
+
- [x] Random and initializers
|
|
97
102
|
- [ ] Optimizers (optax package?)
|
|
98
103
|
- [ ] Wasm backend (needs malloc)
|
|
99
104
|
- [ ] SIMD support for Wasm backend
|