-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introducing the
experimental
package and refactoring test str…
…ucture (#433) Signed-off-by: Terry Kong <[email protected]> Signed-off-by: NeMo-Aligner CI <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5f4f6d6
commit 502ebde
Showing
20 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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,5 @@ | ||
# Experimental Docs | ||
|
||
This directory contains documentation for features that are still experimental or under development and not yet ready for general use. | ||
|
||
More context can be found in the [experimental/README.md](../../nemo_aligner/experimental/README.md) file. |
Empty file.
File renamed without changes.
File renamed without changes.
This file contains 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,50 @@ | ||
# Experimental Package | ||
|
||
The `experimental` sub-package contains projects that are under active development and may not be fully stable. | ||
|
||
## Experimental Project Directory Structure: | ||
|
||
``` | ||
NeMo-Aligner/ | ||
├── docs/ | ||
│ ├── user-guide/ | ||
│ │ └── ppo.html | ||
│ └── user-guide-experimental/ <----- experimental docs | ||
│ └── new-thing.html | ||
├── nemo_aligner/ | ||
│ ├── algorithms/ | ||
│ ├── data/ | ||
│ │ ├── datasets.py | ||
│ │ └── tests/ | ||
│ │ └── datasets_test.py | ||
│ └── experimental/ <----- experimental sub-package | ||
│ ├── <proj-name>/ | ||
│ ├── dataset.py <----- experimental dataset | ||
│ ├── new_algo.py <----- experimental algo | ||
│ ├── model.py <----- experimental model | ||
│ └── tests/ | ||
│ └── model_test.py <----- experimental model test | ||
└── tests/ | ||
└── functional/ | ||
└── dpo.sh | ||
└── test_cases/ | ||
└── dpo-llama3 | ||
└── functional_experimental/ <----- experimental functional tests (mirrors functional/ structure) | ||
├── new_algo.sh | ||
└── test_cases/ | ||
└── new_algo-llama3 | ||
``` | ||
|
||
The directories below exist to organize experimental projects (source code), tests, and documentation. | ||
|
||
- [nemo_aligner/experimental/](../../nemo_aligner/experimental/): Main experimental sub-package containing projects under development | ||
- [tests/functional_experimental/](../../tests/functional_experimental/): Functional tests for experimental projects | ||
- [docs/user-guide-experimental/](../../docs/user-guide-experimental/): Documentation directory for experimental features and algorithms | ||
|
||
The `experimental` sub-package follows a modular structure where each project has its own directory (sub-package) containing implementation and tests. | ||
|
||
## Guidelines for "experimental/" Projects | ||
|
||
- **Scope**: Projects can include new model definitions, training loops, utilities, or unit tests. | ||
- **Independence**: Projects should ideally be independent. Dependence on other projects signals it might benefit from being added to core with tests (and documentation if applicable). | ||
- **Testing**: Must include at least one functional test [example](../../tests/functional/test_cases/dpo-llama3). |
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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,3 @@ | ||
# Experimental Functional Tests | ||
|
||
More context can be found in the [experimental/README.md](../../nemo_aligner/experimental/README.md) file. |
Empty file.
Empty file.
This file contains 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 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