nemo_automodel.recipes.llm.train_seq_cls
nemo_automodel.recipes.llm.train_seq_cls
Module Contents
Classes
Functions
Data
API
Bases: BaseRecipe
Recipe for fine-tuning a model for sequence classification.
Log metrics to wandb and other loggers.
Parameters:
MetricsSample object, containing: step: int, the current step. epoch: int, the current epoch. metrics: Dict[str, float], containing: “loss”: Training loss. “accuracy”: Training accuracy. “grad_norm”: Gradient norm from the training step. “lr”: Learning rate. “mem”: Memory allocated. “tps”: Tokens per second (throughput). “tps_per_gpu”: Tokens per second per GPU.
Log metrics to wandb and other loggers Args: log_data: MetricsSample object, containing: step: int, the current step. epoch: int, the current epoch. metrics: Dict[str, float], containing: “val_loss”: Validation loss. “lr”: Learning rate. “num_label_tokens”: Number of label tokens. “mem”: Memory allocated.
Run the sequence-classification fine-tuning recipe.