applied-ai-018's picture
Add files using upload-large-folder tool
4573dea verified
raw
history blame contribute delete
592 Bytes
# Copyright (C) 2024 Habana Labs, Ltd. an Intel Company.
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
from deepspeed.accelerator.real_accelerator import get_accelerator
if get_accelerator().device_name() in ['cuda', 'hpu']:
from .fused_layer_norm import MixedFusedLayerNorm as LayerNorm
else:
from torch.nn import LayerNorm
from .distributed import DistributedDataParallel
from .bert_model import BertModel
from .gpt_model import GPTModel, GPTModelPipe
from .t5_model import T5Model
from .language_model import get_language_model
from .module import Float16Module