↓ 14 callersFunctioncreate_attention_mask_predict_next(sequence, pad_id=128256, soi_id=128257, eoi_id=128258, rm_pad_in_image=False,
training/prompting_utils.py:466
↓ 9 callersFunctionprepare_gen_input(prompts, text_tokenizer, num_image_tokens, bos_id, eos_id, boi_id, eoi_id, pad_id, img_pad_id,
show-o2/models/misc.py:24
↓ 6 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
show-o2/models/qwen2.py:233
↓ 5 callersMethodcreate_block_mask(self, sequence, pad_begin_ends=[(0, 80), (0, 100), (0, 110), (0, 0)], type="t2i")
training/omni_attention.py:98
↓ 4 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
show-o2/models/modules.py:342
↓ 3 callersFunctionto_tensor_and_normalize(image, mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
show-o2/datasets/utils.py:30