o
    "ÕjÏ  ã                   @   sî  d dl mZ eeƒZdd„ Zdd„ Zdd„ Zdd	„ Zd
ZdZ	ee	ddƒ ee	ddƒ ee	ddƒ ee	ddƒ ee	ddƒ ee	ddƒ ee	ddƒ ee	ddƒ dZ
ee
ddƒ ee
dg ƒ ee
dg ƒ ee
dd ƒ ee
dg ƒ ee
ddƒ dZeeddƒ eed d!ƒ eed"d#ƒ eed$d%ƒ eed&d'ƒ eed(d)ƒ eed*d+ƒ eed,d-ƒ eed.dƒ eed/g ƒ eed0g ƒ eed1g ƒ eed2dƒ eed3dƒ d4Zeeddƒ eed5d6ƒ eed7d8ƒ eed9dƒ eed:d6ƒ eed;d6ƒ eed<d6ƒ eed=d6ƒ eed>dƒ eed?d@ƒ eeddƒ eedAg ƒ dBZeeddƒ eedCd6ƒ eedDdƒ dEZeeddƒ eedFdGƒ eedHd6ƒ eedId6ƒ eedJd6ƒ eedKdƒ eedLdMƒ eedNdMƒ dOZeeddƒ eedPdƒ eedQd8ƒ eedRd8ƒ eedSdTgƒ eedUdƒ eedVdƒ dWZeeddƒ eedXd6ƒ eedYd6ƒ eedZdƒ eed[dƒ d\Zeeddƒ eed]d6ƒ d^Zeeddƒ d_Zeeddƒ eed`g ƒ daZeeddƒ eedbdƒ eedcddƒ eededƒ dfZeedgdƒ dhZeeddƒ dS )ié    )Údefaultdictc                 C   s   t |  S ©N©Ú_g_default_config)Úcategory© r   úk/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddle/distributed/auto_parallel/constants.pyÚget_category_default_config   s   r	   c                 C   s   |t | < d S r   r   )r   Údefault_valuer   r   r   Úset_category_default_config   ó   r   c                 C   s   t |  | S r   r   )r   Úfieldr   r   r   Úget_field_default_config   r   r   c                 C   s   |t |  |< d S r   r   )r   r   r
   r   r   r   Úset_field_default_config!   s   r   Ú	not_foundÚbaseZ	auto_modeÚsemiZgradient_scaleTZ	use_cacheZreturn_numpyZ	all_ranksFZ
split_dataÚseedNZreinitZ	recomputeÚenableZcheckpointsZno_recompute_segmentsÚsrZrefined_ops_patternsZenable_tuningÚampZdtypeZfloat16ÚlevelZo1Zinit_loss_scalingg      à@Zincr_every_n_stepsiè  Zdecr_every_n_nan_or_infé   Z
incr_ratiog       @Z
decr_ratiogš™™™™™é?Zuse_dynamic_loss_scalingZcustom_white_listZcustom_black_listZcustom_black_varnamesZuse_fp16_guardZuse_bf16_guardZshardingZstageé   Zdegreeé   Zenable_overlapZparam_comm_stream_numZgrad_comm_stream_numZparam_bucket_size_numelZgrad_bucket_size_numelZenable_hierarchical_commZpartition_algorZgreedy_evenZtuning_rangeZgradient_mergeZk_stepsZavgZpipelineZschedule_modeZ1F1BZmicro_batch_sizeZaccumulate_stepsZgeneration_batch_sizeZenable_send_recv_overlapZjob_schedule_profiler_startéÿÿÿÿZjob_schedule_profiler_stopZqatZchannel_wise_abs_maxZweight_bitsZactivation_bitsZnot_quant_patternZ
skip_quantÚalgoZonnx_formatZtuningZprofile_start_stepZprofile_end_stepZrun_after_tuningÚdebugZdatasetZ
num_shardsZfused_linear_promotionZfused_passesZfused_passes_listZdp_optimizationZfuse_all_reduce_opsZfuse_grad_size_in_MBé    Zoverlap_comm_caclZmp_optimizationZ!allreduce_matmul_grad_overlappingZsp_optimization)Úcollectionsr   Údictr   r	   r   r   r   Ú	NOT_FOUNDZBASEZ	RECOMPUTEÚAMPZSHARDINGZGRADIENT_MERGEZPIPELINEZQATZTUNINGZDATASETZFUSEDLINEARPROMOTIONZFUSED_PASSESZDP_OPTIMIZATIONZMP_OPTIMIZATIONZSP_OPTIMIZATIONr   r   r   r   Ú<module>   sÂ   ÿ