Repository navigation
fix(ci): restore the env-var-docs and used-by contract gates - #3618
Merged
Merged
Conversation
main is red on two cheap consistency gates. #3603 added MLXCEL_ENGRAM_OFFLOAD without documenting or allowlisting it, and #3610 added a caller of create_causal_mask_with_window_full without naming it in the function's Used by roster. Both are documentation-side omissions, so the fixes are too: document the engram offload switch beside the other external-n-gram-table variables, and name the LFM3-Audio encoder in the roster. verify-env-var-docs and verify-used-by both pass again.
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.
Problem
mainatb468c9628fails two of the cheap consistency gates that every PR runs:make verify-env-var-docs:MLXCEL_ENGRAM_OFFLOAD, read insrc/models/deepseek_v41.rs:137, is neither documented ondocs/environment-variables.mdnor allowlisted. Introduced by feat(models): add DeepSeek-V4.1 text decoder (deepseek_v41) #3603.make verify-used-by:create_causal_mask_with_window_full(src/lib/mlxcel-core/src/utils.rs) has an unaccounted caller,src/audio/lfm3_audio/encoder.rs. Introduced by feat(models): add LFM3-Audio (lfm3_audio) speech in and speech out #3610.Both are documentation-side omissions; the code is correct. Either one alone would fail the contract gate of any PR that runs them, so every in-flight PR inherits a red gate it did not cause.
Change
MLXCEL_ENGRAM_OFFLOADnext toMLXCEL_PLE_IOandMLXCEL_PLE_CACHE_BYTES, the existing entries for external n-gram table handling. It is an operator-facing load switch, not an internal diagnostic, so documenting it is the right fix rather than allowlisting it.Used by:roster ofcreate_causal_mask_with_window_full.Verification
Both were confirmed failing on a pristine
origin/mainworktree before the change, and pass after it. No Rust behavior changes.