o
    `۷i                     @   s   d dl mZ d dlmZmZmZ d dl	m
Z
mZ d dlmZmZ eeeG dd deZeeeG dd deZeeeG d	d
 d
eZdS )    )	dataclass)CheckpointConfigFailureConfig	RunConfig)V2_MIGRATION_GUIDE_MESSAGE_v2_migration_warnings_enabled)	_copy_doc_log_deprecation_warningc                   @      e Zd ZdS )r   N__name__
__module____qualname__ r   r   J/home/ubuntu/vllm_env/lib/python3.10/site-packages/ray/tune/impl/config.pyr          r   c                   @   r
   )r   Nr   r   r   r   r   r      r   r   c                       s   e Zd Z fddZ  ZS )r   c                    sr   | j pt | _ | jpt | _t   t| j ts#t r#tdt	  t| jts5t r7tdt	  d S d S d S )NzyThe `CheckpointConfig` class should be imported from `ray.tune` when passing it to the Tuner. Please update your imports.zvThe `FailureConfig` class should be imported from `ray.tune` when passing it to the Tuner. Please update your imports.)
checkpoint_configr   failure_configr   super__post_init__
isinstancer   r	   r   )self	__class__r   r   r   !   s&   
zRunConfig.__post_init__)r   r   r   r   __classcell__r   r   r   r   r      s    r   N)dataclassesr   ray.air.configr   _CheckpointConfigr   _FailureConfigr   
_RunConfigray.train.constantsr   r   ray.train.utilsr   r	   r   r   r   r   <module>   s    