oops (fixed proms being erased from a config oversight)

This commit is contained in:
mrq 2024-07-25 12:39:57 -05:00
parent 1acb0e9c84
commit 682e4387dc
2 changed files with 4 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class Dataset:
random_utterance: float = 1.0
max_prompts: int = 3
prompt_duration: float = 0.0 # legacy
prompt_duration: float | None = None # legacy
max_resps: int = 1
p_resp_append: float = 1.0
@ -839,7 +839,8 @@ class Config(BaseConfig):
if self.hyperparameters.scheduler == "":
self.hyperparameters.torch_scheduler = True
self.dataset.prompt_duration_range = [self.dataset.prompt_duration, self.dataset.prompt_duration]
if self.dataset.prompt_duration is not None:
self.dataset.prompt_duration_range = [self.dataset.prompt_duration, self.dataset.prompt_duration]
if self.trainer.backend == "local" and self.distributed:
self.trainer.ddp = True

View File

@ -434,7 +434,7 @@ class Dataset(_Dataset):
self.training = training
self.dataset_type = "training" if self.training else "validation"
self.dataset = cfg.dataset.training if self.training else cfg.dataset.validation
self.sampler_type = cfg.dataset.sample_type # if self.dataset_type == "training" else "group"
self.sampler_type = cfg.dataset.sample_type if self.dataset_type == "training" else "path"
self.sampler_order = cfg.dataset.sample_order
self.sampler_shuffle = cfg.dataset.sample_shuffle