[serge] Fix 12 integration tests for model `edgetam` failing with `import_or_config` (other (12))
Author: sergereview[bot]
Pull request: yes

<!-- ci-dashboard-badge:start -->
[![CI](https://transformers-ci.lor-e.huggingface.cool/badge/pr?pr=47122)](https://transformers-ci.lor-e.huggingface.cool/d/pytest-observability-by-pr/pytest-observability-branch?var-pr=47122)
<!-- ci-dashboard-badge:end -->

## Original CI failure

- Failure group: `1/1: 12 integration tests for model `edgetam` failing with `import_or_config` (other (12))`
- `tests/models/edgetam/test_modeling_edgetam.py::EdgeTamModelIntegrationTest::test_inference_batched_images_batched_boxes` [multi-gpu] (import_or_config, seen 6/7)

<!-- serge-task:integration-failure-triage:sha256:3beeaa3ab6cb0209eaf7432cb053eb2541379e9789f8ce6fbdc1727ea8ab0a3d -->
Relates to #47120

The EdgeTAM integration tests fail because `original_sizes` is passed through `**kwargs` to the TimmWrapper backbone, whose `FeatureListNet.forward` does not accept it.

Root cause: `EdgeTamVisionModel.forward` forwards all `kwargs` to `self.backbone(pixel_values, **kwargs)`. The processor returns `original_sizes`, which is meant for post-processing, not the vision backbone. The `merge_with_config_defaults` decorator does not remove it.

Fix: pop `original_sizes` from `kwargs` in `EdgeTamVisionModel.forward` before calling the backbone. Since `edgetam` uses a `modular_<name>.py` file, the change is applied to `modular_edgetam.py` so `make fix-repo` will propagate it to the generated `modeling_edgetam.py`.

---
_This change was produced automatically by serge from a CI failure report. The patch was generated by an LLM and applied by serge; review before merging._

_serge `v0.1.0` · model: `moonshotai/Kimi-K2.7-Code` · 58 LLM turns · 62 tool calls · 171.8s · 2091354 in / 3012 out tokens_

Comments:
**[For maintainers]** Suggested jobs to run (before merge)

run-slow: edgetam

<!-- ci-dashboard-recap:start -->

---

### CI recap

**Dashboard:** [View test results in Grafana](https://transformers-ci.lor-e.huggingface.cool/d/pytest-observability-by-pr/pytest-observability-branch?var-pr=47122)
**Latest run:** [28846326712](https://github.com/huggingface/transformers/actions/runs/28846326712)
**Result:** `success` | Grafana metrics are not available yet.

<!-- ci-dashboard-recap:end -->

The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_47122). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

run-slow: edgetam

[Workflow Run ⚙️](https://github.com/huggingface/transformers/actions/runs/29017744447)

This comment contains `run-slow`, running the specified jobs: 

models: ["models/edgetam"]
quantizations: []

## CI Results
[Workflow Run ⚙️](https://github.com/huggingface/transformers/actions/runs/29017744447)

### Commit Info
| Context | Commit | Description |
|---------|--------|-------------|
| RUN | [de807ae2](https://github.com/huggingface/transformers/commit/de807ae2c2123dbc9d77abedb5ca5d701c42127d) | workflow commit (merge commit) |
| PR | [212de2ad](https://github.com/huggingface/transformers/commit/212de2ad8d2c6e98bafaff8868844061ca931f98) | branch commit (from PR) |
| main | [4d828999](https://github.com/huggingface/transformers/commit/4d828999d2eb3920d1e43dc258e6af7e72a9a081) | base commit (on `main`) |

✅ No failing test specific to this PR 🎉 👏 !