feat: support CPU thread count in C, Python, and Swift EmbeddingEngine - #3550
Open
copybara-service[bot] wants to merge 1 commit into
Open
feat: support CPU thread count in C, Python, and Swift EmbeddingEngine#3550copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
litert_lm_pr_979300636
branch
from
September 10, 2026 21:53
d9a7e30 to
b3aee04
Compare
copybara-service
Bot
force-pushed
the
litert_lm_pr_979300636
branch
from
September 10, 2026 21:56
b3aee04 to
0ea6e2a
Compare
- Expose `litert_lm_embedding_engine_settings_set_num_threads` in the C API. - Forward `backend=interfaces.CPU(thread_count=N)` in Python EmbeddingEngine. - Pass `backend = .cpu(threadCount: N)` in Swift EmbeddingEngine. LiteRT-LM-PiperOrigin-RevId: 979300636
copybara-service
Bot
force-pushed
the
litert_lm_pr_979300636
branch
from
September 11, 2026 20:19
0ea6e2a to
069bcdb
Compare
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.
feat: support CPU thread count in C, Python, and Swift EmbeddingEngine
litert_lm_embedding_engine_settings_set_num_threadsin the C API.backend=interfaces.CPU(thread_count=N)in Python EmbeddingEngine.backend = .cpu(threadCount: N)in Swift EmbeddingEngine.