↓ 13 callersMethodprepare_inputs_labels_for_multimodal(self, input_ids, position_ids, attention_mask, past_key_values, labels, images, modalities=["image"], image_s
llava/model/llava_arch.py:251
↓ 10 callersMethod__init__(self, dim, num_heads=8, qkv_bias=True, scaled_cosine=False, scale_heads=False, logit_scale_max=math.log(1.0 /
llava/model/multimodal_encoder/dev_eva_clip/eva_clip/transformer.py:156
↓ 8 callersFunctionload_pretrained_model(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", torch_dtype="float16
llava/model/builder.py:27
↓ 8 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
llava/model/language_model/modeling_llama.py:231