↓ 2 callersFunction_broadcast_attn_maskReshape attn_mask to (B, 1, Lq_or_1, Ls) for SDPA broadcasting. 2D (B, L) -> (B, 1, 1, L); 3D (B, L, L) -> (B, 1, L, L).
pytorch_lightning/modules/layers.py:96
↓ 2 callersFunction_forward_sample(
model, z: torch.Tensor, t_batch: torch.Tensor, x_pred_prev: Optional[torch.Tensor],
config, cfg_scal
pytorch_lightning/utils/sampling_utils.py:134
↓ 2 callersFunction_forward_sample_self_cond(
model, z: torch.Tensor, t_batch: torch.Tensor, x_pred_prev: Optional[torch.Tensor],
config, self_con
pytorch_lightning/utils/sampling_utils.py:95
↓ 2 callersFunctionode_step(model, z, t, t_next, x_pred_prev, config,
cfg_scale, self_cond_cfg_scale, cond_seq, cond_seq_mas
pytorch_lightning/utils/sampling_utils.py:161
↓ 1 callersFunctionmake_dataloader(
dataset, *, batch_size: int, shuffle: bool = True, max_seq_length: int = 512,
pad_token_id: int = 0,
pytorch_lightning/utils/data_utils.py:66
↓ 1 callersFunctionsde_step(model, z, t, t_next, x_pred_prev, config,
cfg_scale, self_cond_cfg_scale, cond_seq, cond_seq_mas
pytorch_lightning/utils/sampling_utils.py:172
Method__init__(self, dim: int, num_heads: int = 8, qkv_bias: bool = True,
qk_norm: bool = True, attn_drop:
pytorch_lightning/modules/layers.py:169
Method__init__(self, hidden_size: int, num_heads: int, mlp_ratio: float = 4.0,
attn_drop: float = 0.0, proj
pytorch_lightning/modules/model.py:21
Method__init__(self, params, lr: float = 0.02, momentum: float = 0.95,
nesterov: bool = True, ns_steps: int
pytorch_lightning/utils/muon.py:40
Method__init__(self, *, tokenizer, output_dir: str,
num_samples: int, num_sampling_steps: int,
pytorch_lightning/callbacks/gen_eval.py:29
Methodforward(self, x, t, attention_mask=None,
self_cond_cfg_scale=None, decoder_step_active: bool = False
pytorch_lightning/modules/model.py:133