Commit 442513c
[JAX] Add tutorial for integrating TE/JAX quantization into an existing framework (#2423)
* Tutorial for integration te/jax quantization into an existing framework
Signed-off-by: Jeremy Berchtold <[email protected]>
* add todos
Signed-off-by: Jeremy Berchtold <[email protected]>
* support nvfp4 sr rng key, move wrapper module into TE itself, fix bfloat16 cast
Signed-off-by: Jeremy Berchtold <[email protected]>
* update docstrings
Signed-off-by: Jeremy Berchtold <[email protected]>
* Fix QKV proj and out proj in Flax example transformer layer
Signed-off-by: Jeremy Berchtold <[email protected]>
* Use fused attention in quickstart_jax example
Signed-off-by: Jeremy Berchtold <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remat policy
Signed-off-by: Jeremy Berchtold <[email protected]>
* add tutorial to docs
Signed-off-by: Jeremy Berchtold <[email protected]>
* update title
Signed-off-by: Jeremy Berchtold <[email protected]>
* remove unused dtype from TE DPA module
Signed-off-by: Jeremy Berchtold <[email protected]>
* Fix notebook title
Signed-off-by: Jeremy Berchtold <[email protected]>
* Fix lint
Signed-off-by: Jeremy Berchtold <[email protected]>
* Add explanation of flax module wrapper
Signed-off-by: Jeremy Berchtold <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Jeremy Berchtold <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 5c2f2ff commit 442513c
File tree
9 files changed
+688
-109
lines changed- docs
- examples
- transformer_engine/jax
- cpp_extensions
- flax
9 files changed
+688
-109
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
40 | 42 | | |
41 | | - | |
42 | | - | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
48 | | - | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
67 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
0 commit comments