@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 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
- npm install
59
- npm run build:watch
60
- npm test
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
- - softmax, log_softmax, logsumpexp, one_hot
66
- - Start working on first neural network
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, maybe needs to be moved off-device
96
+ - [ ] Garbage collection for JIT programs
92
97
  - [ ] Memory scheduling, buffer allocation (can be tricky)
93
98
  - [ ] Demos: Navier-Stokes, neural networks, statistics
94
- - [ ] Features for neural networks
99
+ - [x] Features for neural networks
95
100
  - [ ] Convolution
96
- - [ ] Random and initializers
101
+ - [x] Random and initializers
97
102
  - [ ] Optimizers (optax package?)
98
103
  - [ ] Wasm backend (needs malloc)
99
104
  - [ ] SIMD support for Wasm backend