Open rasbt opened 3 months ago
If a user doesn't set --data.val_split_fraction in
--data.val_split_fraction
litgpt finetune lora \ --data JSON \ --data.json_path ....json \ --checkpoint_dir checkpoints/$REPO_NAME
It raises an error
train_data, test_data = self.get_splits() File "/teamspace/studios/this_studio/litgpt/litgpt/data/json_data.py", line 112, in get_splits [1.0 - self.val_split_fraction, self.val_split_fraction], TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Should we use a meaningful default instead? E.g., 5% or 10% of the training data?
@awaelchli Improved the error in #1241. Still, we could set a default fraction
If a user doesn't set
--data.val_split_fraction
inIt raises an error
Should we use a meaningful default instead? E.g., 5% or 10% of the training data?