Repository navigation
test(xla): validate a LLaVA reference architecture end to end - #897
Merged
Merged
Conversation
Add a pinned Hugging Face oracle, production-path diagnostic captures, and first-divergence comparison for LLaVA image prefills. Validate CLI and streaming server prompt parity, preserve typed media markers, and document CPU/CUDA execution baselines. Refs #862
be-free-snowboy
pushed a commit
to freestylejs/snowbrain-mlxcel
that referenced
this pull request
Oct 27, 2026
…#897) * feat(xla): add llava reference validation Add a pinned Hugging Face oracle, production-path diagnostic captures, and first-divergence comparison for LLaVA image prefills. Validate CLI and streaming server prompt parity, preserve typed media markers, and document CPU/CUDA execution baselines. Refs lablup#862 * fix(xla): harden LLaVA reference contract * fix(xla): close LLaVA reference validation gaps
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
tests/fixtures/test_image.pngat the oracle, diagnostic runner, validation script, and public-surface boundaries.image_urlparts render the same LLaVA prompt and unexpanded token IDs as the CLI.Validation
cargo fmt --all -- --checkcargo clippy --features xla-diagnostics --lib --bins --example xla_llava_reference_check -- -D warningscargo test --features xla-diagnostics --example xla_llava_reference_check: 4 passedpython -m unittest -v spike/openxla/test_llava_reference_oracle.py: 16 adversarial comparator/oracle tests passedMLXCEL_ORACLE_PYTHON=... scripts/xla/validate_llava_reference.sh --structural-only: oracle 16 passed, diagnostic seam 1 passed, chat-template 92 passed/1 ignoredcargo test -p mlxcel-xla --lib llava_diagnostics_share_the_production_embeddings_prefill: 1 passedcargo test --lib server::chat_template: 92 passed, 1 ignoredcargo test --lib -- --test-threads=1 --skip models::bitnet::tests::bitlinear_matmul_known_ternary_case: 4,482 passed, 113 ignored; the skipped test aborts only in the backend-less Linux buildcargo test --release --lib --features cuda -- --test-threads=1: 4,482 passed, 113 ignoredscripts/xla/validate_arch.sh --structural-only: 9 passedfirst_divergence = nullThe image displays a; exact 15 unexpanded prompt IDs, finish reason, usage 15/4/19, chunk order, effective prefill 743, and metrics passedbash -n, Python bytecode compilation,git diff --check, and explicit staged/untracked CSV checks passed; no CSV or generated capture is committedEnvironment notes
local-taskcould not create worker threads under the constrained host; the documentedlocal-syncCPU fallback passed with the CUDA host preprocessor.print_literalwarning inexamples/qmm_gemv_microbench.rs; all library, binary, and new LLaVA example targets pass with-D warnings.Closes #862