ColBERT Export
A CLI tool to export HuggingFace ColBERT models to ONNX format for fast Rust inference.
Installation
pip install "colbert-export @ git+https://github.com/lightonai/next-plaid.git#subdirectory=onnx/python"
Usage
Export a Model
# Export a ColBERT model to ONNX format
colbert-export lightonai/GTE-ModernColBERT-v1
# Export with INT8 quantization for 2x speedup
colbert-export lightonai/GTE-ModernColBERT-v1 --quantize
# Export to a custom directory
colbert-export lightonai/GTE-ModernColBERT-v1 -o ./my-models
Quantize an Existing Model
colbert-quantize ./models/GTE-ModernColBERT-v1
Output
The tool creates a directory with the following files:
models/<model-name>/
├── model.onnx # FP32 ONNX model
├── model_int8.onnx # INT8 quantized (if --quantize)
├── tokenizer.json # Tokenizer configuration
└── config_sentence_transformers.json # Model metadata
Supported Models
lightonai/GTE-ModernColBERT-v1(128-dim, ModernBERT-based)- Any PyLate-compatible ColBERT model from HuggingFace
Python API
from colbert_export import export_model, quantize_model
# Export a model
output_dir = export_model(
model_name="lightonai/GTE-ModernColBERT-v1",
output_dir="./models",
quantize=True,
)
# Or quantize an existing model
quantize_model("./models/GTE-ModernColBERT-v1")
License
Apache-2.0
Metadata
Release files for colbert-export 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colbert_export-0.1.0.tar.gz | 10.9 kB | Without provenance | Details for colbert_export-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colbert_export-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for colbert_export-0.1.0-py3-none-any.whl |
Total release size: 20.7 kB
Release files / colbert_export-0.1.0.tar.gz
| Download URL | colbert_export-0.1.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc8d0ab549a29c293930f6c29b9d1b6eec351c30db6d1cbcc6c82aa9038e4529
|
|
BLAKE2b-256 checksum How to use checksums |
e93bb3c188eceec1153fd7fd2ad7e58483ff2c3d4cb0a3da3801cdbfa322939a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / colbert_export-0.1.0-py3-none-any.whl
| Download URL | colbert_export-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
123c6639697ce023a04bb80863c5ec4d8834650dab9db40a764cd0583c30e33c
|
|
BLAKE2b-256 checksum How to use checksums |
d5cbddbe4c44ffb6a101f5860a42bd656da9ecd9a4284283e9951070d5cd2842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for colbert-export 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.