# 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.

from dataclasses import dataclass

from torchtitan.experiments.torchft.diloco import fragment_llm
from torchtitan.models.llama3 import Llama3Model


class FaultTolerantLlama3Model(Llama3Model):
    @dataclass(kw_only=True, slots=True)
    class Config(Llama3Model.Config):
        pass

    _fragment = staticmethod(fragment_llm)
