Repository navigation
test(embeddings): restore skip_for_runtime("sglang") on correctness test - #1330
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA pytest marker is added to conditionally skip embedding correctness tests for the sglang runtime due to output divergence from HuggingFace reference results. No test logic, comparisons, or tolerance values are modified. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
PR #1326 removed `@pytest.mark.skip_for_runtime("sglang", reason="sglang embedding output diverges from HF reference")` on the hypothesis that H100 hardware would close the sglang vs HuggingFace reference gap for `intfloat/e5-mistral-7b-instruct`. Empirically that is not the case: PR #1329 CI (sglang 0.5.10 and 0.5.10.post1 on H100 arc-runner-1-gpu-h100-gwjtg-*): FAILED test_semantic_similarity[grpc] AssertionError: Set 1, text 1: similarity 0.3342 not close to 1.0 FAILED test_relevance_scores[grpc,http] AssertionError: Scores differ beyond tolerance 0.3342 vs 1.0 is structural (pooling / normalization / instruction prefix), not hardware — H100 alone does not close the gap. Keep the H100 runner change from #1326 (embeddings lane still runs on 1-gpu-h100) so that when the underlying sglang divergence is fixed, re-enabling this test is a one-line revert of this commit. Restore only the skip decorator to unblock the sglang-embeddings CI lane in the meantime. Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
a1147a0 to
443d8fb
Compare
Summary
Reverts #1326 to restore the
@pytest.mark.skip_for_runtime("sglang", reason="sglang embedding output diverges from HF reference")decorator ontest_correctness.pyand put the embeddings matrix back on the1-gpurunner pool.Why
#1326 removed the skip on the hypothesis that switching to H100 hardware (also introduced in #1326) would close the sglang vs HuggingFace reference gap for
intfloat/e5-mistral-7b-instruct. Empirically it does not:e39ede16, sglang0.5.10.post1, H100arc-runner-1-gpu-h100-gwjtg-*):FAILED test_semantic_similarity[grpc]—AssertionError: Set 1, text 1: similarity 0.3342 not close to 1.0FAILED test_relevance_scores[grpc]—AssertionError: Scores differ beyond toleranceFAILED test_relevance_scores[http]— same0.5.10and0.5.10.post1produce identical divergence. The patch release does not touch the embedding path for this model family.e2e-1gpu-embeddings (vllm) / runSUCCESS).0.3342is an order of magnitude off1.0, well beyond numerical-noise territory. Likely structural root cause (out of scope for this revert, to be investigated separately):"Instruct: ...\nQuery: ") applied asymmetrically.Since H100 alone does not fix this, the skip should be restored to unblock the sglang embeddings lane while the divergence is diagnosed by someone with context on sglang's embedding endpoint.
Changes
.github/workflows/pr-test-rust.yml:runner: 1-gpu-h100→runner: 1-gpue2e_test/embeddings/test_correctness.py: re-add theskip_for_runtime("sglang", ...)decoratorTest plan
cargo/pythontest suites untouched.test_correctness.pyon sglang and passingtest_basic.pyas before.Follow-up
Worth opening a separate issue for the underlying sglang E5-Mistral embedding divergence so someone with sglang embedding-endpoint context can investigate pooling / normalization / prompt-formatting parity with the HF reference.
Summary by CodeRabbit