# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

"""Muse Glimmer GraphTrainer configurations used by tests."""

from torchtitan.experiments.graph_trainer.configs import (
    GraphTrainerCompileConfig,
    to_graph_trainer_config,
)

from torchtitan.experiments.graph_trainer.muse_glimmer.model import (
    GraphTrainerMuseGlimmerModel,
)
from torchtitan.experiments.graph_trainer.trainer import GraphTrainer

from torchtitan_recipes.tests.models.muse_glimmer import muse_glimmer_debugmodel


def graph_trainer_muse_glimmer_debugmodel() -> GraphTrainer.Config:
    config = to_graph_trainer_config(
        muse_glimmer_debugmodel(), GraphTrainerMuseGlimmerModel.Config
    )
    config.compile = GraphTrainerCompileConfig()
    return config
