feat(fingerprint): VectorWidth config + dequantize_i8_to_f32#107
Merged
Conversation
…hable Adds VectorConfig + vector_config() frozen singleton (like simd_caps()). Three widths: W4K (64 words): CAM command address space — one item per slot W8K (128 words): deprecated legacy W16K (256 words): production default Default: 16K. Override: NDARRAY_VECTOR_WIDTH=8192 env var before first access. After first call, width is frozen for the process lifetime. https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
…or width 4096 = 0xFFF address space for CAM commands/verbs (one item per slot). Not a holographic memory width. Only W8K (deprecated) and W16K (production). https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
…, not, permute, random, from_content, density Adds all methods needed by ladybug-rs cognitive modules: - Bit manipulation: get_bit, set_bit, toggle_bit - VSA ops: bind (XOR), and, not, permute (circular shift) - Construction: random (xorshift128+), from_content (hash expansion) - Query: density (set bits / total), hamming alias, as_raw These enable lance-graph-cognitive grammar+world modules to compile clean against ndarray Fingerprint<256> without ladybug-rs core types. https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
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
vector_config()LazyLock singleton (likesimd_caps()). Three widths: W4K (CAM command space), W8K (deprecated), W16K (production default). Override viaNDARRAY_VECTOR_WIDTHenv var.Test plan
https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh