Method__init__(self, txt_dim, heads, head_dim, qk_bias, qk_norm_eps, rope_dim)
cola_dlm/modeling_cola_dit.py:389
Method__init__(self, txt_dim, emb_dim, heads, head_dim, expand_ratio, norm_eps, qk_bias, rope_dim, block_size)
cola_dlm/modeling_cola_dit.py:512
Methodforward(
self,
q: torch.Tensor, # (1, h, L_q, c)
k: torch.Tensor, # (1, h, L_k, c)
cola_dlm/modeling_cola_vae.py:194
Methodforward(
self,
x: torch.Tensor, # (1, L_q_total, d)
txt_shape: torch.LongTensor, # (B, 1) K
cola_dlm/modeling_cola_vae.py:387
Methodforward(self, hid, emb, layer, mode, hid_shape=None, norm_layer=None, residual=None, **kwargs)
cola_dlm/modeling_cola_dit.py:347
Methodforward(
self,
txt: torch.Tensor,
*,
txt_shape: torch.LongTensor, # (B, 1) K length
cola_dlm/modeling_cola_dit.py:427
Methodforward(
self,
txt,
*,
txt_shape,
txt_q_shape,
emb,
update_kv
cola_dlm/modeling_cola_dit.py:527