-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hovhannes Tamoyan
committed
Jun 27, 2024
1 parent
628f917
commit d85c7af
Showing
7 changed files
with
92 additions
and
73 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,4 @@ | ||
urartu | ||
jsonlines | ||
tiktoken | ||
langchain | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from typing import Any, Dict, List | ||
|
||
from urartu.common.dataset import Dataset | ||
from datasets import Dataset as HFDataset | ||
|
||
|
||
class HFDatasets(Dataset): | ||
def __init__(self, cfg: List[Dict[str, Any]]) -> None: | ||
super().__init__(cfg) | ||
|
||
def _get_dataset(self): | ||
self.dataset = HFDataset.from_dict(dict(self.cfg.data)) |
Oops, something went wrong.