mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 06:22:46 +08:00
Default for hf_datasets configuration
This commit is contained in:
parent
5ce58e4b6a
commit
f989401881
@ -61,6 +61,7 @@ CONFIG_DEFAULTS = {
|
||||
"config": None,
|
||||
"grad_checkpoint": False,
|
||||
"lr_schedule": None,
|
||||
"hf_datasets": None,
|
||||
"lora_parameters": {"rank": 8, "alpha": 16, "dropout": 0.0, "scale": 10.0},
|
||||
}
|
||||
|
||||
|
@ -84,9 +84,6 @@ class CompletionsDataset:
|
||||
def __len__(self):
|
||||
return len(self._data)
|
||||
|
||||
def get_prompt_and_completion(self, idx: int):
|
||||
return self._data[idx][self._prompt_key], self._data[idx][self._completion_key]
|
||||
|
||||
|
||||
class CompletionsDatasetCollection:
|
||||
def __init__(self, data: List[Union[ChatDataset, CompletionsDataset]]):
|
||||
|
Loading…
Reference in New Issue
Block a user