Skip to content

Commit 56af36c

Browse files
authored
Neuron SDK Release 2.25.0
Neuron SDK Release 2.25.0
1 parent 4548de3 commit 56af36c

File tree

170 files changed

+9058
-2880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+9058
-2880
lines changed

.github/pull_request_template.md

Lines changed: 50 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,73 @@
1-
*Description:*
1+
**IMPORTANT!** _If this is a documentation PR for a specific release, this PR must go the corresponding release branch_ (`release-X.XX.X`). _If it is an "out-of-band" doc update, the PR must go to the_ `master` _branch_.
22

3-
**MANDATORY: PR needs test run output**
43

5-
**Test Run Output:**
6-
Please specify the release version, instance size and type, OS type and test output.
4+
## Required PR information
75

8-
Training tutorial:
9-
Convergence graph for training tutorials
10-
Performance metrics average_throughput, latency_p50, latency_p99 and MFU% if available
6+
To expedite approvals and merges for releases, provide the following information (select the `...` button to the right at the top of your PR message to edit it):
117

8+
> **AWS email alias**: {_your-name_}@amazon.com
129
13-
Please make sure this PR contains correct classification terms (Alpha, Beta, and Stable).
10+
>**Description**: {_What this documentation change is and why you made it. If you have a corresponding Jira ticket or content plan, link it here. The more details you provide around any decisions you made when preparing the docs, the less annoying comments you'll get preparing to release it._}
1411
15-
If possible, provide your results or a link to them for the reviewer to check your work.
12+
> **Date this must be published by**: {_If empty, we will assume the release date for the branch you're merging into._}
1613
14+
> **Link to ReadTheDocs staging for this branch's doc changes**: https://awsdocs-neuron-staging.readthedocs-hosted.com/en/{YOUR_BRANCH_NAME_HERE}/
1715
18-
*Issue #, sim, or t.corp if available:*
16+
> **Set the `docs-review-needed` label on the PR for tracking.**
1917
18+
## Before you request approvals
2019

21-
*Link to RTD for my changes:*
22-
https://awsdocs-neuron-staging.readthedocs-hosted.com/en/YOUR_BRANCH_NAME/
20+
> Run a spelling and grammar check over your prose and make the changes it suggests. VSCode has a number of extensions (cSpell, LTeX) that you can use. You can also provide the rendered HTML for (or a cut-and-paste of) your pages to an AI and have it correct your spelling, grammar, and formatting issues. If you need an advanced prompt, contact @erickson-doug.
2321
22+
## Approvers
2423

25-
*Additional context:*
24+
We require 3-4 approvers to merge for non-trivial content changes (where a "trivial" change is a typo/grammar fix or a minor update to the format syntax):
2625

26+
1. A senior+ engineer who will review your documentation for technical accuracy and clarity in communicating the technical concepts in your work
27+
2. A product manager for your Neuron component area who will review it for customer relevance and product/component/feature messaging
28+
3. The lead tech writer (@erickson-doug) who will review your work for overall doc design and quality, and perform the merge when all approvals are met
29+
4. (For PRs with code/notebook submissions) A QA/test engineer who can run your code and confirm the results.
2730

31+
Make sure you get a commitment from these reviewers in advance! It's hard to get good quality doc reviews in order in the 11th hour of a release.
2832

33+
**Note**: For trivial changes, you only need @erickson-doug's approval. He will merge your content once he's confirmed the fixes on staging.
2934

35+
## Doc review checklist
3036

31-
## PR Checklist
32-
- [ ] I've completely filled out the form above!
33-
- [ ] (If applicable) I've automated a test to safegaurd my changes from regression.
34-
- [ ] (If applicable) I've posted test collateral to prove my change was effective and not harmful.
35-
- [ ] (If applicable) I've added someone from QA to the list of reviewers. Do this if you didn't make an automated test or feel it's appropriate for another reason.
36-
- [ ] (If applicable) I've reviewed the licenses of updated and new binaries and their dependencies to make sure all licenses are on the pre-approved Amazon license list. See https://inside.amazon.com/en/services/legal/us/OpenSource/Pages/BlessedOpenSourceLicenses.aspx.
37+
### Engineering reviewer checklist
38+
39+
- [ ] I've confirmed that the contributions in this PR meet the current [AWS Neuron writing guidelines](https://quip-amazon.com/m97CAO0kQFEU/Writing-for-AWS-Neuron).
40+
- [ ] I've confirmed that the documentation submitted is technically correct to the best of my knowledge.
41+
- [ ] I've confirmed that the documentation submitted has no spelling or grammar errors or use of internal jargon/terminology.
42+
- [ ] I've verified the changes render correctly on RTD (link above).
43+
- [ ] (If code is included) I've run tests to verify the contents of the change.
44+
45+
---
46+
47+
## For PRs that include code or notebook examples
48+
49+
**MANDATORY: PR must include test run output**
3750

51+
Provide this information for the QA reviewer in order to expedite their review.
3852

39-
## Pytest Marker Checklist
40-
(Coming soon...)
53+
**Test run output:**
54+
Specify the release version, instance size and type, OS type and test output.
4155

56+
**For Training tutorials:**
4257

43-
## Reviewer Checklist
44-
* For reviewer, before merging, please cross-check:
45-
- [ ] I've verified the changes render correctly on RTD (link above)
46-
- [ ] I've ensured the submitter completed the form
47-
- [ ] (If appropriate) I've run tests to verify the contents of the change
58+
{Convergence graph for training tutorials}
4859

60+
{Performance metrics `average_throughput`, `latency_p50`, `latency_p99` and MFU% if available}
61+
62+
Make sure this PR contains correct classification terms (Alpha, Beta, and Stable).
63+
64+
If possible, provide your results or a link to them for the reviewer to check your work.
65+
66+
## Code example/notebook content PR checklist
67+
68+
- [ ] (If applicable) I've automated a test to safeguard my changes from regression.
69+
- [ ] (If applicable) I've posted test collateral to prove my change was effective and not harmful.
70+
- [ ] (If applicable) I've added someone from QA to the list of reviewers. Do this if you didn't make an automated test or feel it's appropriate for another reason.
71+
- [ ] (If applicable) I've reviewed the licenses of updated and new binaries and their dependencies to make sure all licenses are on the pre-approved Amazon license list. See https://inside.amazon.com/en/services/legal/us/OpenSource/Pages/BlessedOpenSourceLicenses.aspx.
4972

50-
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
73+
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ src/examples/pytorch/libtorch_demo.tar.gz
1010
*-checkpoint.ipynb
1111
.idea/
1212
.vscode/
13-
*/nki/*/generated/
13+
*/nki/*/generated/
14+
uncommitted/

CONTRIBUTING.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ reported the issue. Please try to include as much information as you can. Detail
1919
* Any modifications you've made relevant to the bug
2020
* Anything unusual about your environment or deployment
2121

22-
2322
## Contributing Workflow (via Pull Requests)
2423
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
2524

@@ -29,28 +28,44 @@ Contributions via pull requests are much appreciated. Before sending us a pull r
2928

3029
To send us a pull request, please:
3130

32-
1. Fork the repository (See: [fork guide](https://help.github.com/articles/fork-a-repo/))
3331
2. Clone the repository locally:
32+
3433
```bash
35-
git clone [email protected]:YOUR-USERNAME/aws-neuron-sdk.git
34+
git clone [email protected]:YOUR-USERNAME/private-aws-neuron-sdk-staging.git
3635
```
36+
3737
3. Install the build dependencies. This requires a Python 3 installation:
38+
3839
```bash
39-
cd aws-neuron-sdk/
40+
cd .. # The root folder where you have your cloned Git repos
41+
python3 -m venv venv && . venv/bin/activate
42+
pip install -U pip
43+
cd private-aws-neuron-sdk-staging
4044
pip install -r requirements.txt
4145
```
46+
4247
4. Build the documentation into HTML. This command will allow you to view the
4348
rendered documentation by opening the generated `_build/html/index.html`.
49+
50+
Run:
51+
52+
```bash
53+
sphinx-build -b html . _build/html
54+
```
55+
56+
If this doesn't work, try this command:
57+
4458
```bash
45-
make html
59+
sphinx-build -C -b html . _build/html
4660
```
61+
4762
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
48-
3. Rebuild the documentation (`make html`). Always ensure that this builds
49-
correctly and that your contribution is rendered as expected.
50-
4. Commit to your fork using clear commit messages.
51-
5. Send us a pull request (See: [pull request guide](https://help.github.com/articles/creating-a-pull-request/)), answering any default questions in the pull request interface.
63+
3. Rebuild the documentation (`sphinx-build -b html . _build/html`). Always ensure that the docs build without errors and that your changes look correct before pushing your changes to remote.
64+
4. Commit your changes to your branch with a clear commit messages.
65+
5. Push your changes to remote (`git push origin`) and create a PR from your branch into `master`. (See: [pull request guide](https://help.github.com/articles/creating-a-pull-request/)). Answer any default questions in the pull request interface.
5266
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
5367
68+
Updated process documentation can be found here: [Neuron Sphinx/Readthedocs FAQ](https://quip-amazon.com/ebN0AYH7lAKW/Neuron-SphinxReadthedocs-FAQ).
5469
5570
## Finding contributions to work on
5671
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ BUILDDIR = _build
1212
help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

15-
.PHONY: help Makefile
15+
.PHONY: help Makefile clean
1616

1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
2020
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21+
22+
clean:
23+
-rm -rf $(BUILDDIR)/*
24+

_templates/search-field-google.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

_templates/search-field-rtd.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

_templates/search-results.html renamed to _templates/search-google.html

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,29 @@ <h1>{{ _("Search") }}</h1>
1010
functionality.{% endtrans %}</p>
1111
</div>
1212
</noscript>
13-
{% block search_form %}
14-
{% include "search-field-google.html" %}
15-
{% endblock %}
1613

1714
<h2>{{ _('Search Results') }}</h2>
15+
1816
<script async src="https://cse.google.com/cse.js?cx=657ffaecc36684ee1">
1917
</script>
2018
<div class="gcse-searchresults-only"></div>
21-
19+
<div id="search-results"></div>
2220
</div>
23-
<script>
24-
// Activate the search field on page load
25-
let searchInput = document.querySelector("form.bd-search input");
26-
if (searchInput) {
27-
searchInput.focus();
28-
searchInput.select();
29-
console.log("[PST]: Set focus on search field.");
30-
}
31-
</script>
21+
<script>
22+
23+
// Activate the search field on page load
24+
let searchForm2 = document.getElementById('search-form');
25+
let searchFormInput2 = searchForm2.querySelector('input[type="search"]');
26+
27+
if (searchFormInput2) {
28+
searchFormInput2.focus();
29+
searchFormInput2.select();
30+
console.log("[PST]: Set focus on search field.");
31+
searchFormInput2.value = localStorage.getItem('lastSearchQuery');
32+
}
33+
34+
</script>
35+
3236
{% endblock docs_body %}
3337
{# Below sections just re-create the behavior of Sphinx default search #}
3438
{# Page metadata #}
@@ -38,7 +42,4 @@ <h2>{{ _('Search Results') }}</h2>
3842
{# Manually include the search JS that Sphinx includes #}
3943
{% block scripts -%}
4044
{{ super() }}
41-
<script src="{{ pathto('_static/searchtools.js', 1) }}"></script>
42-
<script src="{{ pathto('_static/language_data.js', 1) }}"></script>
43-
<script src="{{ pathto('searchindex.js', 1) }}"></script>
4445
{%- endblock scripts %}

_templates/search.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{%- extends "page.html" %}
2+
{# Over-ride the body to be custom search structure we want #}
3+
{% block docs_body %}
4+
<div class="bd-search-container">
5+
<h1>{{ _("Search") }}</h1>
6+
<noscript>
7+
<div class="admonition error">
8+
<p class="admonition-title">{% trans %}Error{% endtrans %}</p>
9+
<p>{% trans %}Please activate JavaScript to enable the search functionality.{% endtrans %}</p>
10+
</div>
11+
</noscript>
12+
<div id="search-results"></div>
13+
</div>
14+
<script>
15+
// Activate the search field on page load
16+
let searchForm3 = document.getElementById('search-form');
17+
let searchFormInput3 = searchForm3.querySelector('input[type="search"]');
18+
19+
20+
if (searchFormInput3) {
21+
searchFormInput3.focus();
22+
searchFormInput3.select();
23+
console.log("[PST]: Set focus on search field3.");
24+
searchFormInput3.value = localStorage.getItem('lastSearchQuery');
25+
}
26+
</script>
27+
{% endblock docs_body %}
28+
{# Below sections just re-create the behavior of Sphinx default search #}
29+
{# Page metadata #}
30+
{%- block htmltitle -%}
31+
<title>{{ _("Search") }} - {{ title or docstitle }}</title>
32+
{%- endblock htmltitle -%}
33+
{# Manually include the search JS that Sphinx includes #}
34+
{% block scripts -%}
35+
{{ super() }}
36+
<script src="{{ pathto('_static/searchtools.js', 1) }}"></script>
37+
<script src="{{ pathto('_static/language_data.js', 1) }}"></script>
38+
<script src="{{ pathto('searchindex.js', 1) }}"></script>
39+
{%- endblock scripts %}

archive/index.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.. meta::
2+
:description: Archived AWS Neuron SDK documentation
3+
:keywords: AWS Neuron SDK, archived tutorials, legacy documentation
4+
5+
=====================================
6+
Archived AWS Neuron SDK documentation
7+
=====================================
8+
9+
.. note::
10+
11+
This page contains archived tutorials and other documentation for older versions of the AWS Neuron SDK.
12+
These pages are no longer actively maintained and may reference deprecated features or APIs. They are provided as-is and may not reflect the current state of the AWS Neuron SDK.
13+
14+
Overview
15+
--------
16+
17+
The following content has been archived for reference purposes. For the latest documentation and guides, visit the `AWS Neuron SDK documentation <https://awsdocs-neuron.readthedocs-hosted.com/en/latest/>`_.
18+
19+
Archived Content
20+
----------------
21+
22+
.. list-table::
23+
:header-rows: 1
24+
25+
* - Tutorial
26+
- Last release supported
27+
- Date archived
28+
* - `Fine-tune T5 model on Trn1 <tutorials/finetune_t5>`_
29+
- Neuron 2.24.0
30+
- Archived on: 7/31/2025
31+
* - `Running SSD300 with AWS Neuron <tutorials/ssd300_demo/ssd300_demo>`_
32+
- Neuron 2.24.0
33+
- Archived on: 7/31/2025
34+
* - `Megatron GPT Pretraining <tutorials/megatron_gpt_pretraining>`_
35+
- Neuron 2.25.0
36+
- Archived on: 7/31/2025
37+
38+
.. toctree::
39+
:maxdepth: 1
40+
:hidden:
41+
42+
tutorials/finetune_t5
43+
tutorials/ssd300_demo/ssd300_demo
44+
tutorials/megatron_gpt_pretraining
45+
46+
Accessing Archived Content
47+
--------------------------
48+
49+
Each tutorial listed above corresponds to a specific version or feature set of the Neuron SDK that has since been superseded. Use these resources for historical context or migration guidance.
50+
51+
.. warning::
52+
53+
Archived tutorials may not be compatible with current Neuron SDK releases. Exercise caution when following instructions from these documents.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
.. _torch-hf-t5-finetune:
22

3+
.. meta::
4+
:noindex:
5+
:nofollow:
6+
:description: The tutorial for the AWS Neuron SDK is currently deprecated and not maintained. It is provided for reference only.
7+
38
Fine-tune T5 model on Trn1
49
================================
510

611
.. note::
7-
Update 01/03/24: This tutorial is currently broken and the AWS Neuron team is working on the fix.
12+
This page was archived on 7/31/2025.
813

914

1015
In this tutorial, we show how to fine-tune a Hugging Face (HF) T5 model

0 commit comments

Comments
 (0)