Skip to content

embedding: centralize capabilities and complete OpenAI compatibility - #32481

Merged
mickqian merged 6 commits into
mainfrom
codex/embedding-capability-foundation
Jul 30, 2026
Merged

mickqian merged 6 commits into
mainfrom
codex/embedding-capability-foundation

Conversation

@mickqian

@mickqian mickqian commented Jul 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • centralize embedding capabilities in EmbeddingModelSpec, with automatic embedding-mode activation for native pooling-only encoder architectures while decoder embedding checkpoints retain explicit --is-embedding intent
  • route EmbeddingGemma’s BCG-safe configuration through that contract; only its bidirectional full-encoder policy disables radix cache and chunked prefill
  • implement OpenAI/vLLM-compatible encoding_format="base64" responses (little-endian FP32) and reject unsupported formats
  • add vllm-embedding to sglang.bench_serving, including engine-specific post-warmup cache reset, so SGLang BCG and vLLM use identical workloads and reporting
  • update embedding and benchmark docs to use sglang serve, state model-specific default knobs accurately, and document the fair comparison procedure

Validation

  • PYTHONPATH=python python test/registered/unit/configs/test_embedding_model_spec.py
  • pre-commit run --files on all changed Python and documentation files

Benchmark follow-up

The paired H200 run is ready through sglang-embedding and vllm-embedding, but the registered H200 host is currently unreachable from this workstation (DNS/SSH). No unverified performance claim is made in this PR.


CI States

Latest PR Test (Base): ✅ Run #30413917389
Latest PR Test (Extra): ❌ Run #30413917249

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 27, 2026
@mintlify

mintlify Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lmsysorg 🟢 Ready View Preview Jul 27, 2026, 5:50 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mickqian
mickqian marked this pull request as ready for review July 27, 2026 05:52
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mickqian
mickqian force-pushed the codex/embedding-capability-foundation branch from 7d424dc to 3289535 Compare July 29, 2026 01:23
@mickqian
mickqian merged commit 22faf9f into main Jul 30, 2026
301 of 325 checks passed
@mickqian
mickqian deleted the codex/embedding-capability-foundation branch July 30, 2026 02:28

This branch was successfully deployed

1 active deployment
staging - docs_new — 32895357 Deployed Jul 29, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation Multi-modal multi-modal language model run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant