





'''simple docstring'''






import argparse
import os

import torch

from transformers.utils import WEIGHTS_NAME


lowerCAmelCase       		=      ["""small""", """medium""", """large"""]

lowerCAmelCase       		=      """lm_head.decoder.weight"""
lowerCAmelCase       		=      """lm_head.weight"""






def      __A						(							a_						:  str      ,a_						:  str	):
		lowerCAmelCase     :    List[Any]						=   torch.load(a_	)
		lowerCAmelCase     :    Optional[Any]						=   d.pop(a_	)
		os.makedirs(a_      ,exist_ok=a_	)
		torch.save(a_      ,os.path.join(a_      ,a_	)	)


if __name__ == "__main__":
					lowerCAmelCase       		=      argparse.ArgumentParser()
					parser.add_argument("""--dialogpt_path""", default=""".""", type=str)
					lowerCAmelCase       		=      parser.parse_args()
					for MODEL in DIALOGPT_MODELS:
										lowerCAmelCase       		=      os.path.join(args.dialogpt_path, F'''{MODEL}_ft.pkl''')
										lowerCAmelCase       		=      F'''./DialoGPT-{MODEL}'''
										convert_dialogpt_checkpoint(
										    checkpoint_path,
										    pytorch_dump_folder_path,
										)










'''simple docstring'''






import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


lowerCAmelCase       		=      logging.get_logger(__name__)
class 		lowerCamelCase  (      _A       ):



	def __init__(   self		,      *a_		,      **a_	):
			warnings.warn(
			    "The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
			    " Please use ChineseCLIPImageProcessor instead."		,      a_		,      )
			super().__init__(*a_		,      **a_	)



