Skip to content

[TextNet] Refactor output tracing using capture_outputs decorator#44074

Open
aman-coder03 wants to merge 27 commits intohuggingface:mainfrom
aman-coder03:refactor-textnet-output-capture
Open

[TextNet] Refactor output tracing using capture_outputs decorator#44074
aman-coder03 wants to merge 27 commits intohuggingface:mainfrom
aman-coder03:refactor-textnet-output-capture

Conversation

@aman-coder03
Copy link

What does this PR do?

This PR migrates TextNet to the new standardized output tracing system using the @capture_outputs and @can_return_tuple decorators.

It adds _can_record_outputs, applies @capture_outputs to TextNetModel.forward, and removes manual hidden state handling.

Why is this needed?

This aligns TextNet with the new output tracing framework introduced in #43979.

@aman-coder03 aman-coder03 force-pushed the refactor-textnet-output-capture branch from cd2071f to 16c8e13 Compare February 17, 2026 08:26
@aman-coder03 aman-coder03 force-pushed the refactor-textnet-output-capture branch from f926440 to 30915f9 Compare February 17, 2026 11:19
@github-actions
Copy link
Contributor

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

run-slow: textnet

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