
    9i}                     >    S SK Jr  SSKJr  SSKJr   " S S\5      rg)	   UnsupportedAPIError   )BaseTrainer   )MODELSc                   6    \ rS rSrSr\rS rS rS\	4S jr
Srg)	WhisperTrainer   zInstance Whisper Model Trainerc                     [        S5      e)Nz(whisper model not support train for now.r   )selfconfigs     w/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddlex/modules/multilingual_speech_recognition/trainer.py__init__WhisperTrainer.__init__   s    !"LMM    c                     g)zupdate training configN )r   s    r   update_configWhisperTrainer.update_config   s    r   returnc                 `    U R                  5       U R                  R                  SS5      S.nU$ )zkget key-value arguments of model training function

Returns:
    dict: the arguments of training function.
ampOFF)devicer   )
get_devicetrain_configget)r   
train_argss     r   get_train_kwargsWhisperTrainer.get_train_kwargs    s3     oo'$$((6

 r   r   N)__name__
__module____qualname____firstlineno____doc__r   entitiesr   r   dictr    __static_attributes__r   r   r   r
   r
      s!    (HN%
$ 
r   r
   N)utils.errorsr   baser   
model_listr   r
   r   r   r   <module>r-      s    0  [ r   