Skip to content

Remove the legacy loader axes: QuantPolicy, StagingPolicy, WeightOrientation - #1162

Merged
michalharakal merged 1 commit into
developfrom
feature/1159-remove-legacy-axes
Aug 26, 2026
Merged

michalharakal merged 1 commit into
developfrom
feature/1159-remove-legacy-axes

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Closes #1159 (parent #932). First slice of façade removal.

With the resolver arc landed, WeightForm (plus per-tensor weightFormFor) is the loader's whole configuration surface — the three deprecated axes were pure duplication held together by a precedence rule.

  • QuantPolicy, StagingPolicy, WeightOrientation deleted from skainet-io-core (all carried deprecation notices since Declared in-memory weight form, resolved from the target and the file (repack and dequant as stated intent) #1109/The GGUF loader takes a WeightForm; the three policy enums become views of it #1115 naming their WeightForm counterparts).
  • StreamingGgufParametersLoader loses the three parameters and the legacy→form synthesis; default WeightForm.AS_STORED_ON_HEAP preserves the historical behaviour byte-for-byte. The RAW_BYTES eager rejection goes with the enum that carried it.
  • AndroidGguf.loader takes a WeightForm (default mapped residency — the Android behaviour).
  • The flags-vs-form parity matrix retires with the flags; its behavioural coverage (mapped ≡ heap values, streaming-dequant parity, shape orientation) is re-expressed directly in WeightForm terms.
  • KDoc sweep: remaining references name WeightResidency/EncodingRequest/WeightShapeOrientation; the historical "why one type, not three flags" note in WeightForm stays as history.

grep -r 'QuantPolicy|StagingPolicy|WeightOrientation' now hits only that historical note. Full pr-gate green (rebased on current develop).

🤖 Generated with Claude Code

…icy, WeightOrientation

With the resolver arc landed, WeightForm (plus per-tensor weightFormFor)
is the loader's whole configuration surface; the three deprecated axes
were pure duplication held together by a precedence rule. All three had
carried deprecation notices since #1109/#1115 naming their WeightForm
counterparts.

StreamingGgufParametersLoader loses the three parameters and the
legacy→form synthesis; the default is WeightForm.AS_STORED_ON_HEAP, the
loader's historical behaviour, so a caller who passed nothing sees no
change. AndroidGguf.loader takes a WeightForm (default mapped residency,
the Android behaviour). The RAW_BYTES eager rejection goes with the enum
that carried it.

The flags-vs-form parity matrix retires with the flags; the behavioural
coverage it carried — mapped ≡ heap values, streaming-dequant parity,
shape orientation — is re-expressed directly in WeightForm terms.
Remaining prose references now name WeightResidency/EncodingRequest/
WeightShapeOrientation; the historical 'why one type, not three flags'
note in WeightForm's KDoc stays as history.

Closes #1159.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-1162 artifact to view the complete documentation locally.

This comment will be updated automatically when the PR is updated.

@michalharakal
michalharakal merged commit b670b5e into develop Aug 26, 2026
20 checks passed
@michalharakal
michalharakal deleted the feature/1159-remove-legacy-axes branch August 26, 2026 10: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.

Remove the legacy loader axes: QuantPolicy, StagingPolicy, WeightOrientation

1 participant