mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-08 19:10:56 +00:00
registry refactor
This commit is contained in:
parent
78cb88c3c4
commit
18fe966e96
9 changed files with 60 additions and 106 deletions
|
|
@ -6,8 +6,13 @@
|
|||
|
||||
# TODO: make these import config based
|
||||
from llama_stack.apis.dataset import * # noqa: F403
|
||||
from ..registry import Registry
|
||||
from .dataset import CustomDataset, HuggingfaceDataset
|
||||
from .dataset_registry import DatasetRegistry
|
||||
|
||||
|
||||
class DatasetRegistry(Registry[BaseDataset]):
|
||||
_REGISTRY: Dict[str, BaseDataset] = {}
|
||||
|
||||
|
||||
DATASETS_REGISTRY = [
|
||||
CustomDataset(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue