Skip to content

[serge] Fix 12 integration tests for model edgetam failing with import_or_config (other (12))#47055

Open
sergereview[bot] wants to merge 1 commit into
mainfrom
serge/fix/itf-3beeaa3ab6cb-5b6f45e9
Open

[serge] Fix 12 integration tests for model edgetam failing with import_or_config (other (12))#47055
sergereview[bot] wants to merge 1 commit into
mainfrom
serge/fix/itf-3beeaa3ab6cb-5b6f45e9

Conversation

@sergereview

@sergereview sergereview Bot commented Jul 4, 2026

Copy link
Copy Markdown

CI

Original CI failure

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

Relates to #47053

The EdgeTAM integration tests fail because EdgeTamModel.forward passes original_sizes through **kwargs to EdgeTamVisionModel.forward, which forwards them to the timm FeatureListNet backbone. The backbone rejects the unknown original_sizes keyword argument.

Root cause: EdgeTamVisionModel.forward blindly passes all kwargs to self.backbone(pixel_values, **kwargs).

Fix: In modular_edgetam.py, remove original_sizes (and reshaped_input_sizes, which is also a processor-provided key not meant for the backbone) from kwargs before calling the backbone. This keeps the generated modeling_edgetam.py consistent after make fix-repo.


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 · 79 LLM turns · 80 tool calls · 108.8s · 1227169 in / 3141 out tokens

@sergereview sergereview Bot marked this pull request as ready for review July 4, 2026 07:43
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

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

run-slow: edgetam

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 28699481836
Result: success | Grafana metrics are not available yet.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant