mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-13 21:12:36 +00:00
address comments
This commit is contained in:
parent
95aef814af
commit
bd39b22717
7 changed files with 25 additions and 45 deletions
|
|
@ -4,6 +4,8 @@
|
|||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
from abc import ABC, abstractmethod
|
||||
from dataclasses import dataclass
|
||||
from llama_stack.apis.datasetio import * # noqa: F403
|
||||
|
||||
|
||||
class BaseDataset(ABC):
|
||||
|
|
@ -21,3 +23,9 @@ class BaseDataset(ABC):
|
|||
@abstractmethod
|
||||
def load(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
@dataclass
|
||||
class DatasetInfo:
|
||||
dataset_def: DatasetDef
|
||||
dataset_impl: BaseDataset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue