Skip to content

Commit

Permalink
more pydantic fixes (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Feb 27, 2024
1 parent 1e3d530 commit 3f69571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/axolotl/utils/config/models/input/v0_4_1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SFTDataset(BaseModel):
type: Optional[Union[str, UserDefinedPrompterType]] = None
shards: Optional[int] = None
conversation: Optional[str] = None
data_files: Optional[List[str]] = None
data_files: Optional[Union[str, List[str]]] = None
name: Optional[str] = None
ds_type: Optional[str] = None
train_on_split: Optional[str] = None
Expand Down Expand Up @@ -454,9 +454,9 @@ class AxolotlInputConfig(
max_steps: Optional[int] = None
warmup_steps: Optional[int] = None
warmup_ratio: Optional[float] = None
eval_steps: Optional[int] = None
eval_steps: Optional[Union[int, float]] = None
evaluation_strategy: Optional[str] = None
save_steps: Optional[int] = None
save_steps: Optional[Union[int, float]] = None
saves_per_epoch: Optional[int] = None
save_strategy: Optional[str] = None
save_total_limit: Optional[int] = None
Expand Down

0 comments on commit 3f69571

Please sign in to comment.