Update modeling_molmo.py

#18
Files changed (1) hide show
  1. modeling_molmo.py +0 -1
modeling_molmo.py CHANGED
@@ -2272,7 +2272,6 @@ class MolmoForCausalLM(PreTrainedModel):
2272
  del model_kwargs["images"]
2273
  del model_kwargs["image_masks"]
2274
  del model_kwargs["image_input_idx"]
2275
- cache_name, cache = super()._extract_past_from_model_output(outputs)
2276
  try:
2277
  cache_name, cache = super()._extract_past_from_model_output(outputs)
2278
  except AttributeError:
 
2272
  del model_kwargs["images"]
2273
  del model_kwargs["image_masks"]
2274
  del model_kwargs["image_input_idx"]
 
2275
  try:
2276
  cache_name, cache = super()._extract_past_from_model_output(outputs)
2277
  except AttributeError: