2020 the huggingface team licensed under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache orglicenseslicense2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license integration with deepspeed kept for backward compatiblity if you plan to make any edit make sure to modify the file in integrationsdeepspeed instead check https github comhuggingfacetransformerspull25599 backward compatibility imports to make sure all those objects can be found in integrationsdeepspeed 2020 the huggingface team licensed under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache org licenses license 2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license integration with deepspeed kept for backward compatiblity if you plan to make any edit make sure to modify the file in integrations deepspeed instead check https github com huggingface transformers pull 25599 backward compatibility imports to make sure all those objects can be found in integrations deepspeed noqa
import warnings


warnings.warn(
    "transformers.deepspeed module is deprecated and will be removed in a future version. Please import deepspeed modules directly from transformers.integrations",
    FutureWarning,
)


from .integrations.deepspeed import (  
    HfDeepSpeedConfig,
    HfTrainerDeepSpeedConfig,
    deepspeed_config,
    deepspeed_init,
    deepspeed_load_checkpoint,
    deepspeed_optim_sched,
    is_deepspeed_available,
    is_deepspeed_zero3_enabled,
    set_hf_deepspeed_config,
    unset_hf_deepspeed_config,
)