Repository navigation
Choose search's vector by experiment and add .latent format version 2 - #5
Merged
Merged
Conversation
…ory view Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
…tion An opt-in test embeds the 50 Kinetics-mini validation clips at frozen dataset and model revisions and compares four predeclared window vectors. It scores clip-level and window-level retrieval against colour-histogram baselines, a single-frame control and label permutations, and checks that search from inside a clip lands at the right moment of a composite video. The decision rule and bars come from the Weeks 3 and 4 plan. Fast tests cover the scoring helpers. Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
…rmat version 2 The .latent file gains timeline_pooled, the mean of each timeline tubelet's patches from the same float32 tokens as pooled, and a representation block that says how a window vector was made: the model, an identity of its weights' content, the preprocessing hash, the token layer, the pooling, the window settings and the output version, with a hash over them. The cache reuses a file only when its format, output version and representation match, and re-embeds it in place otherwise. save now always writes the current format version. OUTPUT_VERSION is unchanged because no existing tensor changes. Signed-off-by: RDCLder <raymondyang.dev@gmail.com>
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.
This is the first pull request of the Weeks 3 and 4 plan (
docs/plans/2026-11-06-weeks3-4-folder-search-trajectory.md), covering tasks T0 and T1. The plan itself, its review record and the decision about reviews are included.T0: which vector search should use, decided by an experiment
Before any file format or user interface is built, an opt-in test (
test_retrieval_candidatesintests/test_real_model.py, helpers intests/retrieval_eval.py) measured four predeclared ways of turning a 16-frame window into one vector. It used the 50 Kinetics-mini validation clips (five actions, ten clips each) at frozen dataset and model revisions. The candidates, metrics, controls, pass bars and decision rule were fixed in the plan before anything was measured.T1:
.latentformat version 2timeline_pooled([tubelets, D]float32), holds the mean of each timeline tubelet's patches from the same tokens aspooled. The trajectory view in Week 4 will plot it, and folders indexed from now on will already carry it.representation, says how a window vector was made: the model, an identity of its weights' content (Hugging Face blob hashes, or size and modification time for a local folder), the preprocessing hash, the token layer, the pooling, the window settings and the output version, with a hash over them. The folder index in later tasks will refuse to mix vectors whose hashes differ.savenow always writes the current format version.OUTPUT_VERSIONis unchanged, because no existing tensor changes. Version-1 files are refused with a message to re-embed.Checks
Reproduce T0