Skip to content

training_memory_cost

mlte/qa_category/costs/training_memory_cost.py

TrainingMemoryCost QACategory definition.

TrainingMemoryCost

Bases: QACategory

The TrainingMemoryCost QACategory reflects the cost of model training associated with memory resources.

Source code in mlte/qa_category/costs/training_memory_cost.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class TrainingMemoryCost(QACategory):
    """
    The TrainingMemoryCost QACategory reflects the cost
    of model training associated with memory resources.
    """

    def __init__(self, rationale: str):
        """
        Initialize a TrainingMemoryCost instance.
        """
        super().__init__(
            instance=self,
            description="""
                The TrainingMemoryCost QACategory assesses the
                memory requirements of model training. This might
                be measured by the memory requirements of training
                processes that run locally, or the cost of memory
                resources required for training processes that run
                on on-demand cloud infrastructure.
                """,
            rationale=rationale,
        )

__init__(rationale)

Initialize a TrainingMemoryCost instance.

Source code in mlte/qa_category/costs/training_memory_cost.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
def __init__(self, rationale: str):
    """
    Initialize a TrainingMemoryCost instance.
    """
    super().__init__(
        instance=self,
        description="""
            The TrainingMemoryCost QACategory assesses the
            memory requirements of model training. This might
            be measured by the memory requirements of training
            processes that run locally, or the cost of memory
            resources required for training processes that run
            on on-demand cloud infrastructure.
            """,
        rationale=rationale,
    )