Spaces:
Runtime error
Runtime error
File size: 645 Bytes
a22e84b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
from zenml import pipeline
from steps import training as training_steps
@pipeline
def training(
finetuning_type: str = "sft",
num_train_epochs: int = 3,
per_device_train_batch_size: int = 2,
learning_rate: float = 3e-4,
dataset_huggingface_workspace: str = "mlabonne",
is_dummy: bool = False,
) -> None:
training_steps.train(
finetuning_type=finetuning_type,
num_train_epochs=num_train_epochs,
per_device_train_batch_size=per_device_train_batch_size,
learning_rate=learning_rate,
dataset_huggingface_workspace=dataset_huggingface_workspace,
is_dummy=is_dummy,
)
|