-
Notifications
You must be signed in to change notification settings - Fork 633
More detailed documentation for recipes #2343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a28ec54
Code drop: Update recipes documentation and remove custom recipes fro…
pggPL 51f9327
Fix SVG css import path for diagrams
pggPL e145154
Refactor low_precision_training docs: remove optimizers, fix imports,…
pggPL 9152fc4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a299632
Fix JAX memory usage .out files with correct output
pggPL bc3f131
responded to comments
pggPL 1fc214c
Merge remote-tracking branch 'upstream/main' into docs_recipes
pggPL 80b2db5
applied suggestions form greptile
pggPL b7eb7e2
fix
pggPL 983c882
fix
pggPL 25bb9ee
fix
pggPL 0c0c7f5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f26d35e
fix
pggPL cfb4273
fix
pggPL cd33d56
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f473202
fix
pggPL 83a42cd
fix
pggPL 1321ecf
year change
pggPL ad43ae5
fix
pggPL cdc76e1
Merge branch 'main' into docs_recipes
pggPL 63e4b5c
jax compute capability fix
pggPL 8620c89
fix
pggPL e0e4af4
fix
pggPL 4a221f3
fixes
pggPL f46b59f
Merge branch 'main' into docs_recipes
pggPL 95d1585
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e6add76
fix
pggPL dab9ff9
Merge branch 'main' into docs_recipes
pggPL 7641377
fix
pggPL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| /* Diagram color definitions for Transformer Engine documentation */ | ||
|
|
||
| /* High precision (BF16/FP16) elements */ | ||
| .hp { | ||
| fill: #ede7f6; | ||
| stroke: #673ab7; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| /* FP8 precision elements */ | ||
| .fp8 { | ||
| fill: #fff8e1; | ||
| stroke: #ffa726; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| /* GEMM/computation operations */ | ||
| .gemm { | ||
| fill: #ffe0b2; | ||
| stroke: #fb8c00; | ||
| stroke-width: 2.5; | ||
| } | ||
|
|
||
| /* Quantization operations */ | ||
| .quantize { | ||
| fill: #e8f5e9; | ||
| stroke: #66bb6a; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| /* Amax computation operations */ | ||
| .amax { | ||
| fill: #e1f5fe; | ||
| stroke: #039be5; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| /* Text styles */ | ||
| .text { | ||
| font-family: 'Segoe UI', Arial, sans-serif; | ||
| font-size: 14px; | ||
| text-anchor: middle; | ||
| fill: #212121; | ||
| } | ||
|
|
||
| .small-text { | ||
| font-family: 'Segoe UI', Arial, sans-serif; | ||
| font-size: 14px; | ||
| text-anchor: middle; | ||
| fill: #757575; | ||
| } | ||
|
|
||
| .label { | ||
| font-family: 'Segoe UI', Arial, sans-serif; | ||
| font-size: 14px; | ||
| text-anchor: middle; | ||
| fill: #424242; | ||
| } | ||
|
|
||
| .title { | ||
| font-family: 'Segoe UI', Arial, sans-serif; | ||
| font-size: 18px; | ||
| font-weight: 600; | ||
| text-anchor: middle; | ||
| fill: #212121; | ||
| } | ||
|
|
||
| .section-title { | ||
| font-family: 'Segoe UI', Arial, sans-serif; | ||
| font-size: 15px; | ||
| font-weight: 600; | ||
| text-anchor: middle; | ||
| } | ||
|
|
||
| /* Arrows */ | ||
| /* Note: marker-end references #arrowhead marker which must be defined in each SVG's <defs> section */ | ||
| .arrow { | ||
| stroke: #616161; | ||
| stroke-width: 2; | ||
| fill: none; | ||
| marker-end: url(#arrowhead); | ||
| } | ||
|
|
||
| /* Additional box and element styles */ | ||
| .box-blue { | ||
| fill: #e3f2fd; | ||
| stroke: #1976d2; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| .box-orange { | ||
| fill: #fff3e0; | ||
| stroke: #f57c00; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| .box-green { | ||
| fill: #c8e6c9; | ||
| stroke: #388e3c; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| .box-dashed { | ||
| stroke-dasharray: 5,5; | ||
| } | ||
|
|
||
| /* LayerNorm specific */ | ||
| .layernorm { | ||
| fill: #b3e5fc; | ||
| stroke: #0277bd; | ||
| stroke-width: 2.5; | ||
| } | ||
|
|
||
| /* Fused layers */ | ||
| .fused { | ||
| fill: #b2dfdb; | ||
| stroke: #00695c; | ||
| stroke-width: 3; | ||
| } | ||
|
|
||
| /* Generic computation blocks */ | ||
| .computation { | ||
| fill: #f5f5f5; | ||
| stroke: #757575; | ||
| stroke-width: 2; | ||
| } | ||
|
|
||
| /* FP32 precision (alternative red) */ | ||
| .fp32 { | ||
| fill: #ffcdd2; | ||
| stroke: #d32f2f; | ||
| stroke-width: 2.5; | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| /* Custom styling for sphinx-tabs */ | ||
|
|
||
| .sphinx-tabs { | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .sphinx-tabs-tab { | ||
| background-color: #f4f4f4; | ||
| border: 1px solid #ccc; | ||
| border-bottom: none; | ||
| padding: 0.5rem 1rem; | ||
| margin-right: 0.5rem; | ||
| cursor: pointer; | ||
| font-weight: 500; | ||
| transition: background-color 0.2s; | ||
| } | ||
|
|
||
| .sphinx-tabs-tab:hover { | ||
| background-color: #e0e0e0; | ||
| } | ||
|
|
||
| .sphinx-tabs-tab[aria-selected="true"] { | ||
| background-color: #76b900; /* NVIDIA green */ | ||
| color: white; | ||
| border-color: #76b900; | ||
| margin-right: 0.5rem; | ||
| } | ||
|
|
||
| .sphinx-tabs-panel { | ||
| border: 1px solid #ccc; | ||
| padding: 1rem; | ||
| background-color: #f9f9f9; | ||
| } | ||
|
|
||
| /* Dark mode support for RTD theme */ | ||
| .rst-content .sphinx-tabs-tab { | ||
| color: #333; | ||
| } | ||
|
|
||
| .rst-content .sphinx-tabs-tab[aria-selected="true"] { | ||
| color: white; | ||
| } | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| /* Responsive styling for SVG images */ | ||
|
|
||
| /* Make all SVG images responsive */ | ||
| .document svg, | ||
| .document object[type="image/svg+xml"], | ||
| .rst-content svg { | ||
| max-width: 100%; | ||
| height: auto; | ||
| display: block; | ||
| margin: 1em auto; | ||
| } | ||
|
|
||
| /* For raw HTML embedded SVGs */ | ||
| .document .raw-html svg { | ||
| max-width: 100%; | ||
| height: auto; | ||
| width: 100%; | ||
| } | ||
|
|
||
| /* Ensure container doesn't overflow */ | ||
| .document .raw-html { | ||
| max-width: 100%; | ||
| overflow-x: auto; | ||
| } | ||
|
|
||
| /* Figure containers with captions */ | ||
| .svg-figure { | ||
| text-align: center; | ||
| margin: 20px auto; | ||
| } | ||
|
|
||
| .svg-figure img { | ||
| display: block; | ||
| margin: 0 auto; | ||
| height: auto; | ||
| } | ||
|
|
||
| /* Different width classes for figures */ | ||
| .svg-figure.width-70 img { | ||
| width: 70%; | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .svg-figure.width-80 img { | ||
| width: 80%; | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .svg-figure.width-90 img { | ||
| width: 90%; | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .svg-figure.width-100 img { | ||
| width: 100%; | ||
| } | ||
|
|
||
| /* Figure captions */ | ||
| .svg-caption { | ||
| font-style: italic; | ||
| margin-top: 10px; | ||
| color: #555; | ||
| font-size: 0.95em; | ||
| line-height: 1.4; | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.