Skip to content

fix: make simd module public (was pub(crate)) Consumers (bgz-tensor, thinking-engine) need ndarray::simd::bf16_to_f32_batch and other polyfill exports. Was incorrectly restricted to pub(crate). https://claude.ai/code/session_01ChLvBfpJS8dQhHxRD4pYNp#82

Merged
AdaWorldAPI merged 3 commits into
masterfrom
claude/setup-embedding-pipeline-Fa65C
Apr 3, 2026

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

No description provided.

claude added 3 commits April 3, 2026 22:33
1. Intrinsics nightly-only → asm!() works on stable
2. Tile config must be 64-byte aligned → #[repr(C, align(64))]
3. rbx is LLVM-reserved → use __cpuid_count()
4. OS must enable via XSETBV → check XCR0 bits 17+18
5. TILEZERO/TILERELEASE need raw bytes → encodings documented
6. Tile config field layout → byte offsets documented
7. Wrong config = SEGFAULT → start minimal, expand
8. is_x86_feature_detected nightly → use __cpuid_count

https://claude.ai/code/session_01ChLvBfpJS8dQhHxRD4pYNp
…osine table

Complete pipeline for ThinkingEngine brain construction:
  1. Normalize f32 centroids to unit vectors
  2. Quantize [-1,1] → u8 [0,255]
  3. Tiered VNNI/AMX dot product (build_distance_table_vnni)
  4. Map i32 dots → u8 cosine [0=opposite, 128=orthogonal, 255=identical]

Separated: build_cosine_table() for the ThinkingEngine (takes f32, returns u8)
           build_distance_table_vnni() for raw u8 dot products (existing)

https://claude.ai/code/session_01ChLvBfpJS8dQhHxRD4pYNp
Consumers (bgz-tensor, thinking-engine) need ndarray::simd::bf16_to_f32_batch
and other polyfill exports. Was incorrectly restricted to pub(crate).

https://claude.ai/code/session_01ChLvBfpJS8dQhHxRD4pYNp
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@AdaWorldAPI AdaWorldAPI merged commit 09815cb into master Apr 3, 2026
4 of 10 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