lance-format / lance-format/lance

Train PQ without coping data to build sub-vectors arrays.

Open
#989 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-index benchmark
Dominant language
Rust
Stars
7.1k
Forks
852
Avg merge
3d 18h
Merged PRs (30d)
272

Description

Problem Statement

For PQ training, right now we copy data to build sub-vectors continuously. flamegraph shows that it contributed more than half of time.

We should figure out a way to read sub-vectors without data copying, for example, make MatrixView accepts strides.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PQ training path and the MatrixView type mentioned in the issue, using the referenced flamegraph to identify where sub-vector arrays are copied. The work is done when PQ training can read sub-vectors without repeatedly copying the data and the profiling result shows the copying cost has been removed or substantially reduced.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
machine-learning, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.