-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from tiran/public-api
Export public APIs in top-level package
- Loading branch information
Showing
11 changed files
with
67 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# NOTE: This package imports Torch and other heavy packages. | ||
__all__ = ( | ||
"Block", | ||
"CombineColumnsBlock", | ||
"ConditionalLLMBlock", | ||
"EmptyDatasetError", | ||
"FilterByValueBlock", | ||
"FilterByValueBlockError", | ||
"GenerateException", | ||
"ImportBlock", | ||
"LLMBlock", | ||
"Pipeline", | ||
"PipelineConfigParserError", | ||
"PipelineContext", | ||
"SamplePopulatorBlock", | ||
"SelectorBlock", | ||
"SDG", | ||
"SIMPLE_PIPELINES_PACKAGE", | ||
"FULL_PIPELINES_PACKAGE", | ||
"generate_data", | ||
) | ||
|
||
# Local | ||
from .block import Block | ||
from .filterblock import FilterByValueBlock, FilterByValueBlockError | ||
from .generate_data import generate_data | ||
from .importblock import ImportBlock | ||
from .llmblock import ConditionalLLMBlock, LLMBlock | ||
from .pipeline import ( | ||
FULL_PIPELINES_PACKAGE, | ||
SIMPLE_PIPELINES_PACKAGE, | ||
EmptyDatasetError, | ||
Pipeline, | ||
PipelineConfigParserError, | ||
PipelineContext, | ||
) | ||
from .sdg import SDG | ||
from .utilblocks import CombineColumnsBlock, SamplePopulatorBlock, SelectorBlock | ||
from .utils import GenerateException | ||
from .utils.taxonomy import TaxonomyReadingException |
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# This is part of the public API, and used by instructlab | ||
# This is part of the public API, and used by instructlab. | ||
class GenerateException(Exception): | ||
"""An exception raised during generate step.""" |
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