Skip to content

Document output_type="pt" in the agent docs and drop per-file comments - #14660

Open
webzuweb wants to merge 1 commit into
huggingface:mainfrom
webzuweb:docs/output-type-pt-agent-docs
Open

webzuweb wants to merge 1 commit into
huggingface:mainfrom
webzuweb:docs/output-type-pt-agent-docs

Conversation

@webzuweb

Copy link
Copy Markdown

Summary

Closes #14616.

The output_type="pt" guidance is already documented centrally in .ai/references/testing.md (in the get_dummy_inputs() bullet). This PR:

  1. Extends that note to also cover the "np" layout contrast ((batch, height, width, channels) vs "pt" (batch, channels, height, width)) and the video shape (batch, num_frames, channels, height, width).
  2. Removes the redundant inline comments ("Request torch outputs so tests compare torch tensors directly ..." and "Note \"pt\" images are ...") that were repeated across ~87 pipeline test files, since the guidance now lives in one place.

No functional changes — comments/docs only.

Centralize the guidance for `output_type="pt"` in
`.ai/references/testing.md` and remove the redundant inline comments that
were repeated across pipeline test files ("Request torch outputs ..." and
"Note `"pt"` images are ..."). The docs note now also covers the `"np"`
layout contrast and video shape.

Closes huggingface#14616.
@github-actions github-actions Bot added fixes-issue tests size/M PR with diff < 200 LOC and removed fixes-issue labels Aug 31, 2026

This branch has not been deployed

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

Labels

size/M PR with diff < 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

document output_type="pt" in the agent docs

1 participant