[Auto] Refactor output tracing decorators (cluster-43979-11): merged 6 of 10 PRs#33
Open
[Auto] Refactor output tracing decorators (cluster-43979-11): merged 6 of 10 PRs#33
Conversation
Migrate GPT-J from manual boilerplate output collection to the new decorator-based output tracing system: - Add _can_record_outputs to GPTJPreTrainedModel - Add @capture_outputs and @merge_with_config_defaults to GPTJModel.forward - Add @can_return_tuple to GPTJForCausalLM, GPTJForSequenceClassification, and GPTJForQuestionAnswering forwards - Simplify GPTJBlock.forward to return hidden_states directly - Remove output_attentions, output_hidden_states, return_dict params from signatures (now handled by decorators) - Propagate changes to CodeGen via Copied from annotation Net reduction of ~70 lines of boilerplate code.
…eturn_tuple decorators
Owner
Author
|
Trace for this mergeability run: https://huggingface.co/datasets/evalstate/transformers-merge-experiments/blob/main/2604241421-7A02qd__dev__codex.jsonl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cluster: cluster-43979-11
Base: origin/main
Merged PRs:
Skipped PRs:
Failed PRs:
Notes:
Next steps: