Skip to content

COPY OF 2526#2547

Draft
xiaoyu-work wants to merge 4 commits into
mainfrom
dev/qti-kromero/qairt-pipeline-context-lengths
Draft

COPY OF 2526#2547
xiaoyu-work wants to merge 4 commits into
mainfrom
dev/qti-kromero/qairt-pipeline-context-lengths

Conversation

@xiaoyu-work

Copy link
Copy Markdown
Collaborator

Describe your changes

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

…tion

QairtEncapsulation uses sequence_lengths from model_attributes to compute
max_length in genai_config.json. QairtGenAIBuilder populates this via its
own config, but QairtPipelinePass had no equivalent path. Extract the arn
list from the genai_builder.transform_options in the YAML recipe and pass
it through model_attributes so QairtEncapsulation can pick it up.
Covers the case where arn is present in genai_builder.transform_options
and forwarded as sequence_lengths in model_attributes, and the case where
arn is absent and sequence_lengths is not set.
…psulation

QairtEncapsulation calls min(sequence_lengths) on the forwarded value, so a
malformed YAML arn (string, bare int, empty list, mixed types) would fail with
an opaque error. Raise a clear ValueError at the pipeline pass boundary instead.
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.

2 participants