Skip to content

feat(fingerprint): VectorWidth config + dequantize_i8_to_f32#107

Merged
AdaWorldAPI merged 3 commits into
masterfrom
claude/teleport-session-setup-wMZfb
Apr 18, 2026
Merged

feat(fingerprint): VectorWidth config + dequantize_i8_to_f32#107
AdaWorldAPI merged 3 commits into
masterfrom
claude/teleport-session-setup-wMZfb

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Summary

  • VectorWidth configvector_config() LazyLock singleton (like simd_caps()). Three widths: W4K (CAM command space), W8K (deprecated), W16K (production default). Override via NDARRAY_VECTOR_WIDTH env var.
  • dequantize_i8_to_f32 — missing inverse of quantize_f32_to_i8

Test plan

  • Compiles clean
  • Doctest for vector_config passes
  • Used downstream in bgz-tensor had_cascade + adaptive_codec

https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh

claude added 3 commits April 18, 2026 11:25
…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
@AdaWorldAPI AdaWorldAPI merged commit 6d67de2 into master Apr 18, 2026
6 of 15 checks passed
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.

2 participants