o
    پi                     @   sL   d dl mZmZ d dlmZmZ eG dd deZeG dd deZdS )    )	dataclassfield)DiTArchConfig	DiTConfigc                       s   e Zd ZU dZeed< dZeed< dZedB ed< dZeed< d	Z	eed
< dZ
eed< dZeed< dZeed< dZeed< dZeed< eedZeeeeef  ed< edd dZeed<  fddZ  ZS )GlmImageArchConfig   
patch_size   in_channelsNout_channels   
num_layers   attention_head_dim    num_attention_heads   condition_dimi @   prior_vq_quantizer_codebook_sizei  text_embed_dimi   time_embed_dimdefault_factorystacked_params_mappingc                   C   s   ddiS )Nz9^(transformer_blocks\.\d+\.attn\..*\.lora_[AB])\.default$z\1 r   r   r   f/home/ubuntu/.local/lib/python3.10/site-packages/sglang/multimodal_gen/configs/models/dits/glmimage.py<lambda>   s   zGlmImageArchConfig.<lambda>param_names_mappingc                    s2   t    | jp
| j| _| j| j | _| j| _d S )N)super__post_init__r   r
   r   r   hidden_sizenum_channels_latents)self	__class__r   r   r      s   
z GlmImageArchConfig.__post_init__)__name__
__module____qualname__r   int__annotations__r
   r   r   r   r   r   r   r   r   r   listr   tuplestrr   dictr   __classcell__r   r   r#   r   r      s    
  r   c                   @   s,   e Zd ZU eedZeed< dZe	ed< dS )GlmImageDitConfigr   arch_configglmimageprefixN)
r%   r&   r'   r   r   r0   r   r)   r2   r,   r   r   r   r   r/   #   s   
 r/   N)dataclassesr   r   .sglang.multimodal_gen.configs.models.dits.baser   r   r   r/   r   r   r   r   <module>   s    