Skip to content

Copy of #2505#2513

Closed
shaahji wants to merge 3 commits into
mainfrom
dev/qti-kromero/qairt-genai-custom-cl-list
Closed

Copy of #2505#2513
shaahji wants to merge 3 commits into
mainfrom
dev/qti-kromero/qairt-genai-custom-cl-list

Conversation

@shaahji

@shaahji shaahji commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Introduces a context_lengths parameter that allows users to specify an explicit list of context lengths (CLs) to compile, bypassing the fixed CL set produced by multi_graph. The two options are mutually exclusive. Like multi_graph, context_lengths is HTP-only.

Sets arn_cl_options.context_length directly on the builder when provided, falling through to the existing multi_graph path otherwise.

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

Introduces a context_lengths parameter that allows users to specify an
explicit list of context lengths (CLs) to compile, bypassing the fixed
CL set produced by multi_graph. The two options are mutually exclusive.
Like multi_graph, context_lengths is HTP-only.

Sets arn_cl_options.context_length directly on the builder when provided,
falling through to the existing multi_graph path otherwise.
Attribute assignment on MagicMock does not appear in mock_calls, so the
previous string-matching assertion was vacuously passing. Replace with
PropertyMock + patch.object so the setter is actually tracked.
patch.object requires the attribute to already exist on the class;
plain MagicMock has no multi_graph attribute. Create a unique subclass
per test so type(mock_builder) is isolated, then attach PropertyMock
directly to track setter calls correctly.
@shaahji

shaahji commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #2505

@shaahji shaahji closed this Jun 11, 2026
@shaahji shaahji deleted the dev/qti-kromero/qairt-genai-custom-cl-list branch June 11, 2026 18:59
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