Add pinned KRONOS2 native multiplex embeddings - #19
Draft
CraigMyles wants to merge 1 commit into
Draft
Conversation
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.
Summary
kronos2as a native multiplex patch encoder using the immutable MahmoodLab/KRONOS2 Hugging Face revision and SHA-verified weights and marker metadatagrid_hash, or ordinary brightfield executionModel loading and execution
raw2features-managed cache; reject unexpected files before executing the model's
custom code
Python import path added by the upstream loader
are temporarily padded by repeating their last patch, with the extra outputs
discarded
torch.compilebecause compiled execution has not been validated against thereference implementation
text model is downloaded only when a user explicitly registers novel markers
marker-specific normalization; excluded nuclear channels remain available for
segmentation, while explicit novel-marker registration is supported
single command; compatible runs can still add their outputs to the same store
Validation
git diff --check,uv lock --check, wheel/sdist builds, and Twine metadata checks passedraw2features-managed cache contained only its seven required model entries plus
Hugging Face's cache metadata, and xFormers was active
(9, 768)fp32 embeddings and matched the upstream forward bit-for-bit for the first full batch(2, 768)fp32 embeddings(768,)KRONOS2 embeddings with the expected marker-sensitive fingerprint