Skip to content

feat(embeddings): add parallel processing and thread count control#169

Open
donhardman wants to merge 2 commits into
masterfrom
feature/embeddings-threads
Open

feat(embeddings): add parallel processing and thread count control#169
donhardman wants to merge 2 commits into
masterfrom
feature/embeddings-threads

Conversation

@donhardman
Copy link
Copy Markdown
Member

  • Add rayon dependency for parallel execution support
  • Update TextModel and model traits to include threads parameter
  • Implement scoped rayon thread pools for candle-based models
  • Update ONNX pipelined inference to respect worker limits
  • Modify FFI interface and C++ wrapper to accept thread count
  • Increment library version to 4 for breaking FFI changes
  • Propagate thread settings through KNN and text-to-vector pipelines
  • Update Jina, local models, and test suites for new signatures
  • Allow zero threads to signify use of all available CPUs

BREAKING CHANGE: TextModel::predict and MakeVectEmbeddingsFn signatures changed to include thread count parameter.

- Add rayon dependency for parallel execution support
- Update TextModel and model traits to include threads parameter
- Implement scoped rayon thread pools for candle-based models
- Update ONNX pipelined inference to respect worker limits
- Modify FFI interface and C++ wrapper to accept thread count
- Increment library version to 4 for breaking FFI changes
- Propagate thread settings through KNN and text-to-vector pipelines
- Update Jina, local models, and test suites for new signatures
- Allow zero threads to signify use of all available CPUs

BREAKING CHANGE: TextModel::predict and MakeVectEmbeddingsFn signatures
changed to include thread count parameter.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

Windows test results

  5 files    5 suites   19m 20s ⏱️
501 tests 489 ✅ 12 💤 0 ❌
509 runs  497 ✅ 12 💤 0 ❌

Results for commit 236abfa.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

Linux debug test results

  8 files    8 suites   15m 8s ⏱️
523 tests 511 ✅ 12 💤 0 ❌
537 runs  525 ✅ 12 💤 0 ❌

Results for commit 236abfa.

@github-actions
Copy link
Copy Markdown

Linux release test results

  8 files    8 suites   8m 0s ⏱️
523 tests 511 ✅ 12 💤 0 ❌
537 runs  525 ✅ 12 💤 0 ❌

Results for commit 236abfa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant