GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Atlas step 1: atlas-embed embedder parity spike — Gate A (#5351) by dezren39 · Pull Request #5367 · developing-today/code Conversation
|
| probe | tokens | ids | single max Δ (bit diffs) | batch max Δ (bit diffs) |
|---|---|---|---|---|
| spike_fox | 15 | ok | 0.0 (0) | 0.0 (0) |
| spike_query_prefix | 12 | ok | 0.0 (0) | 0.0 (0) |
| spike_semantic | 31 | ok | 0.0 (0) | 0.0 (0) |
| spike_single_char | 3 | ok | 0.0 (0) | 0.0 (0) |
| spike_japanese | 41 | ok | 0.0 (0) | 0.0 (0) |
| spike_empty | 2 | ok | 0.0 (0) | 0.0 (0) |
| corpus_6359 | 57 | recorded | 0.0 (0) | 0.0 (0) |
| corpus_15202 | 303 | recorded | 0.0 (0) | 0.0 (0) |
| corpus_39430 | 1272 | recorded | 0.0 (0) | 0.0 (0) |
| corpus_long (chunk 2) | 711 | recorded | 0.0 (0) | 0.0 (0) |
| query_style | 13 | ok | 0.0 (0) | 0.0 (0) |
Unit tests pass; clippy clean (0 warnings); fmt clean. The gate test is #[ignore]d (it needs the model + runtime lib) with the exact invocation in its docs, so ordinary CI compiles everything and the gate runs as a laptop ceremony.
np.zeros), the fork's sidecar with id 1; the generator's diagnostic shows max delta 0.0 between them on every probe (the int8 graph was the padding-sensitive one). The crate replicates the corpus pipeline's 0.l2_normalize replicates NumPy's pairwise summation (the reference is vecs / np.linalg.norm(...)). It hit 0.0 with the faithful replica in place.ort rc.15 needs &mut self for Session::run — serve mode (step 4) must wrap the embedder in a mutex or use one session per worker; there is no shared-&self run in this version.libonnxruntime.so.1.31.1 dynamically loaded and an x86-64 libstdc++/libz on LD_LIBRARY_PATH — NOT the hermetic nix closure; that is step 5's (Atlas step 5: nix packaging (pkgs/atlas-search) + amd deploy #5355) gate.RUSTC_WRAPPER= under the pinned rustup 1.99.0 toolchain (PATH clippy-driver otherwise shadows from the nix profile).Snowflake/snowflake-arctic-embed-m-v2.0 @ HF rev 95c2741480856aa9666782eb4afe11959938017f (the laptop's existing snapshot; deploy-time provisioning is Q1/step 5)onnx/model.onnx sha256 c0c53d7f49a2db60761b92b7bbf5be87a7b3cf5d92dbbd7f1b5028bd5a40aa39tokenizer.json sha256 f1cc44ad7faaeec47241864835473fd5403f2da94673f3f764a77ebcb0a803ec
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Create the pkgs/atlas-search/ skeleton (workspace + rust-toolchain pin on the pkgs/id pattern) with the atlas-embed crate only: - Snowflake arctic-embed-m-v2.0 embedder: dynamically-loaded ONNX Runtime (ort load-dynamic, never downloaded at build/run time), the model's own tokenizer.json (SentencePiece Unigram, Metaspace) via the tokenizers crate with the shipped 512 truncation default explicitly disabled (model context 8192, loud error beyond), CLS pooling, full-768 f32 output, documents prompt-free. - Batching replicates the production corpus pipeline (~/atlas/v3/embed_onnx.py): right-pad with token id 0, attention mask 0. The fork sidecar's pad id 1 is bit-identical on this fp32 graph (fixture diagnostic, max delta 0.0 on every probe), so the corpus pipeline's semantics are the ones recorded. - The L2 norm replicates NumPy's pairwise summation order — the reference does vecs / np.linalg.norm(vecs, axis=1) and Gate A grants no tolerance for a differently-ordered accumulation. Gate A: fixtures/embed-probes.json records token ids + f32-bit vectors (single and one fixed mixed batch) from the Python pipeline for 11 probes — the five opencode#1554 spike texts, an empty string, the three Atlas gate chunks (6359/15202/39430, by corpus id; text not copied, it is personal corpus content), a 711-token corpus chunk (chunk 2, proves no silent truncation), and a query-shaped sentence in document mode. Generated by the recorded, rerunnable fixtures/gen_fixtures.py. Result (laptop, pinned 1.99.0 toolchain): token ids equal on every text probe; vectors bit-identical (max delta 0.0, 0 bit diffs) single and batched, debug and release. Model: HF rev 95c2741480856aa9666782eb4afe11959938017f, onnx/model.onnx sha256 c0c53d7f49a2db60761b92b7bbf5be87a7b3cf5d92dbbd7f1b5028bd5a40aa39, tokenizer.json sha256 f1cc44ad7faaeec47241864835473fd5403f2da94673f3f764a77ebcb0a803ec, against onnxruntime 1.31.1 (the venv's libonnxruntime, dynamically loaded — the spike environment; the hermetic nix closure is step 5's gate, #5355). Nix packaging (flake.nix/default.nix) intentionally lands in step 5; this step is the parity spike only.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.