Skip to content

Trainer

TrainerError

Bases: FedRAGError

Base errors for all rag trainer relevant exceptions.

Source code in src/fed_rag/exceptions/trainer.py
4
5
6
7
class TrainerError(FedRAGError):
    """Base errors for all rag trainer relevant exceptions."""

    pass

InconsistentDatasetError

Bases: TrainerError

Raised if underlying datasets between dataloaders are inconsistent.

Source code in src/fed_rag/exceptions/trainer.py
class InconsistentDatasetError(TrainerError):
    """Raised if underlying datasets between dataloaders are inconsistent."""

    pass

InvalidLossError

Bases: TrainerError

Raised if an unexpected loss is attached to a trainer object.

Source code in src/fed_rag/exceptions/trainer.py
class InvalidLossError(TrainerError):
    """Raised if an unexpected loss is attached to a trainer object."""

    pass

InvalidDataCollatorError

Bases: TrainerError

Raised if an invalid data collator is attached to a trainer object.

Source code in src/fed_rag/exceptions/trainer.py
class InvalidDataCollatorError(TrainerError):
    """Raised if an invalid data collator is attached to a trainer object."""

    pass

MissingInputTensor

Bases: TrainerError

Raised if a required tensor has not been supplied in the inputs.

Source code in src/fed_rag/exceptions/trainer.py
class MissingInputTensor(TrainerError):
    """Raised if a required tensor has not been supplied in the inputs."""

    pass