limbed
ColBERT embedding and MaxSim scoring without PyTorch. Uses a native C++ extension (ONNX Runtime + tokenizers-cpp) so you don't need to pull in 2 GB of deep learning dependencies just to encode some text.
Install
pip install limbed-py
Only runtime deps are numpy and huggingface-hub.
Usage
from limbed import LateEmbedder, compute_maxsim
model = LateEmbedder() # downloads thlurte/mxbai-edge-colbert-v0-17m-onnx
q = model.encode_queries("What is late interaction?")
d = model.encode_docs("ColBERT computes token-level similarity.")
score = compute_maxsim(q[0], d[0])
print(score)
You can also point it at a local directory with model.onnx and tokenizer.json:
model = LateEmbedder("./my-model/")
Models
| Alias | Repo | Size | Dim | Notes |
|---|---|---|---|---|
mxbai-edge-colbert-v0-17m |
thlurte/mxbai-edge-colbert-v0-17m-onnx |
66 MB | 48 | Default |
mxbai-edge-colbert-v0-32m |
thlurte/mxbai-edge-colbert-v0-32m-onnx |
124 MB | 64 | |
colbertv2.0 |
thlurte/colbertv2.0-onnx |
438 MB | 128 | Standard ColBERTv2.0 BERT-based model |
answerai-colbert-small-v1 |
thlurte/answerai-colbert-small-v1-onnx |
135 MB | 96 | Lightweight, high-performance model |
jina-colbert-v2 |
thlurte/jina-colbert-v2-onnx |
2.23 GB | 128 | XLM-RoBERTa multilingual model |
lateon |
thlurte/lateon-onnx |
580 MB | 128 | Case-sensitive: use do_lower_case=False |
Any ColBERT ONNX model should work if you put model.onnx and tokenizer.json in a folder and pass the path.
Benchmarks
The following benchmark was run on CPU using 20 queries (max length 32) and 20 documents (max length 256), comparing limbed against fastembed execution:
Performance (Throughput & Speedup)
| Model | Operation | limbed Throughput |
fastembed Throughput |
Speedup (Wall-clock) |
|---|---|---|---|---|
| ColBERTv2.0 | Queries | 71.3 QPS | 31.6 QPS | 2.25x |
| ColBERTv2.0 | Documents | 93.8 DPS | 66.1 DPS | 1.42x |
| Jina ColBERT v2 | Queries | 6.2 QPS | 5.0 QPS | 1.25x |
| Jina ColBERT v2 | Documents | 10.1 DPS | 5.2 DPS | 1.94x |
How it works
- Tokenization and inference run in C++ via a nanobind extension
- GIL is released during encode and MaxSim calls, so you can run multiple threads
- Punctuation tokens are masked out of document embeddings (standard ColBERT behavior)
- Embeddings are L2-normalized by default
- CPU only for now
Docker & Alpine Linux Compatibility
Because the underlying precompiled ONNX Runtime library is linked against glibc, this package will not run out-of-the-box on Alpine Linux images (e.g., python:3.10-alpine).
If deploying via Docker, it is highly recommended to use a Debian-based slim image:
FROM python:3.10-slim
If you must use Alpine, you will need to install the compatibility layer: apk add --no-cache gcompat.
Supported Platforms & Architectures
Precompiled wheels are published to PyPI for the following environments:
| Operating System | Architecture | Python Versions | Notes |
|---|---|---|---|
| Linux | x86_64, aarch64 |
3.10, 3.11, 3.12, 3.13, 3.14 | Built on manylinux_2_28 (glibc-based) |
| macOS | arm64 (Apple Silicon) |
3.10, 3.11, 3.12, 3.13, 3.14 | SDK/deployment target macOS 13.3+ |
| Windows | AMD64 (x86_64) |
3.10, 3.11, 3.12, 3.13, 3.14 |
[!NOTE] Other platforms (such as Intel-based macOS or ARM-based Windows) will fall back to compilation from the source distribution (
sdist). This requires a local C++ compiler (supporting C++17) and CMake.
License
MIT. See LICENSE.
Release files for limbed-py 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| limbed_py-0.1.6.tar.gz | 21.2 kB | Details |
Built distributions (wheels)
Total release size: 253.6 MB
Release files / limbed_py-0.1.6.tar.gz
| Download URL | limbed_py-0.1.6.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf17f2448b56a4f3e21a97d19f485a7e9b69ddf912f5977e13d095a3cd7414d0
|
|
BLAKE2b-256 checksum How to use checksums |
27752ee64c6ab12b7c79b46d73ca8a936193b5eeb5b0a39e95bec07913a4dcbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp313-cp313-win_amd64.whl
| Download URL | limbed_py-0.1.6-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
20d69209a7b2332d8da7066109f43e1e934bc4700ba7d40186032e035634b721
|
|
BLAKE2b-256 checksum How to use checksums |
d60f5a32607e63f4775b96840f449769e34cc2efd1d6800c4b96a7f084a2dfbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | limbed_py-0.1.6-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.4 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c6ff7d00b0c2f74906d99c9902799bdd230bb80adb1aa01a7084082c38d9131a
|
|
BLAKE2b-256 checksum How to use checksums |
d79f20007b9ed949a7f3400e2a28e9bade47fd743de5d54145f2d53c150eadaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp313-cp313-manylinux_2_28_aarch64.whl
| Download URL | limbed_py-0.1.6-cp313-cp313-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.8 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
527dd9268aea592f6f223683c5be60fc4b47ecea0d023b070851b01c542e279c
|
|
BLAKE2b-256 checksum How to use checksums |
ee103d3791c8da0362063408413b144a8932e75339c99a5db1e5aa80223241c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp313-cp313-macosx_13_0_arm64.whl
| Download URL | limbed_py-0.1.6-cp313-cp313-macosx_13_0_arm64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | CPython 3.13 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
73673c8c31117c8d2ab49c92639ccc3f43eb2444f0c07fcb4bdc936afa529048
|
|
BLAKE2b-256 checksum How to use checksums |
226fdde3aba92a4ef912e5295b58ac65473968bc919bba8143f7fc914788b6c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp312-cp312-win_amd64.whl
| Download URL | limbed_py-0.1.6-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
08fab3f55314bf1de771dc42549c5cdfdb6ed30dcde0e6e3095b7ebd3f50d582
|
|
BLAKE2b-256 checksum How to use checksums |
876e6762334ab55a86d731c60ba3af655c420dc0a3262c002e8b3ed2a57e2ec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | limbed_py-0.1.6-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.4 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3a81f5cae57d91abbeaaf4d881f90948bde15cd4d66e48db5d6b9fa9ac1a6030
|
|
BLAKE2b-256 checksum How to use checksums |
27647d9a7a19f856e0a833eb98fe95d18afabce55e35d6e3e734fd334769008f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | limbed_py-0.1.6-cp312-cp312-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.8 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
076324787473829a92d2a47f6ade25611a2864ab7303592986c15403b759484d
|
|
BLAKE2b-256 checksum How to use checksums |
245f82f06d59bcce42b0146bdf17d1b1fc0af2af45cd348c3370a64f2e048655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp312-cp312-macosx_13_0_arm64.whl
| Download URL | limbed_py-0.1.6-cp312-cp312-macosx_13_0_arm64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | CPython 3.12 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
45e7355a9454693bb098d587889d740973bcdef9b0ef545b485bfaecd49fe131
|
|
BLAKE2b-256 checksum How to use checksums |
c095fecf9c2d3d2e096c39762705c6cec9e13af50a3f102f95dbfd4ee379a080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp311-cp311-win_amd64.whl
| Download URL | limbed_py-0.1.6-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
21802f699caca34a22142d5ea8a0e7c4045781f984dc4286564bc31b05a6c95b
|
|
BLAKE2b-256 checksum How to use checksums |
7c14c14a181471b797141cc652a3a8cf95077797673f79166291aa5941310aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | limbed_py-0.1.6-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.4 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6d26d56c28820ad9c37d28ea997b03544c2643b9ee0e61ba5690b644dd2921e5
|
|
BLAKE2b-256 checksum How to use checksums |
65a0f663559626ba24ab14f6815310fb1e5dec90337f95bbfebe78b7fa0343cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp311-cp311-manylinux_2_28_aarch64.whl
| Download URL | limbed_py-0.1.6-cp311-cp311-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.8 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
f7474fc5563213db79330a21eb444d81ff3e415fb62c59698f122a047912437c
|
|
BLAKE2b-256 checksum How to use checksums |
19ab6fb721b0c766c961500e18403c69097b49c7c93f0b66b3228a7cdfbed595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp311-cp311-macosx_13_0_arm64.whl
| Download URL | limbed_py-0.1.6-cp311-cp311-macosx_13_0_arm64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | CPython 3.11 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8b4a65c83aaa01730e15a4c92c8b6f62379f9fdb81713997ff50908c83e7c3fb
|
|
BLAKE2b-256 checksum How to use checksums |
1d0178946e58cddd2a93c60792f507ac277dca8f6db35726b9ade80adedde395
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp310-cp310-win_amd64.whl
| Download URL | limbed_py-0.1.6-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
17bd98c6450039bbcae816f72d9753dcc663dfd407a19a4bba2b69eeed179324
|
|
BLAKE2b-256 checksum How to use checksums |
471f15291d1b5233226306626387f9843db66fa810a09894144b5ddeb6fb6246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | limbed_py-0.1.6-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 21.4 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
04c1c94456737dbd0a42f49740e6a35375f5b0feb764df41d02f4bcc1ebfaef0
|
|
BLAKE2b-256 checksum How to use checksums |
c6a552bf05d06ea2a8a73a4e402fdbe2946ce2b4f488a0157e0f534c895fa0a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp310-cp310-manylinux_2_28_aarch64.whl
| Download URL | limbed_py-0.1.6-cp310-cp310-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.8 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
81bfce8c9de13aa4032c3c70ac9c504ae434f5ae2629d7390c34cbd9527fba62
|
|
BLAKE2b-256 checksum How to use checksums |
99e530c153d39e671972c2f624f1b84c00e8ac023e67f9cd801a1d389b87d4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / limbed_py-0.1.6-cp310-cp310-macosx_13_0_arm64.whl
| Download URL | limbed_py-0.1.6-cp310-cp310-macosx_13_0_arm64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | CPython 3.10 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c49905d0b7d4028b67cb72490257bd3639974f5654375f9ffe0196b88c53d69d
|
|
BLAKE2b-256 checksum How to use checksums |
e0ab1119a572c28048a4fe9fb7a47351e24eb7394c2ba4e6702af12e9d792448
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency log