Spaces:
Running
Running
Update cumo/model/llava_arch.py
Browse files- cumo/model/llava_arch.py +1 -1
cumo/model/llava_arch.py
CHANGED
@@ -160,7 +160,7 @@ class LlavaMetaForCausalLM(ABC):
|
|
160 |
mlp_router_z_loss = None
|
161 |
vision_tower = self.get_vision_tower()
|
162 |
if vision_tower is None or images is None or input_ids.shape[1] == 1:
|
163 |
-
return input_ids, position_ids, attention_mask, past_key_values,
|
164 |
|
165 |
if type(images) is list or images.ndim == 5:
|
166 |
if type(images) is list:
|
|
|
160 |
mlp_router_z_loss = None
|
161 |
vision_tower = self.get_vision_tower()
|
162 |
if vision_tower is None or images is None or input_ids.shape[1] == 1:
|
163 |
+
return input_ids, position_ids, attention_mask, past_key_values, new_input_embeds, new_labels
|
164 |
|
165 |
if type(images) is list or images.ndim == 5:
|
166 |
if type(images) is list:
|