Skip to main content

paperus-ml

Machine learning service of paperus: text embeddings for search by meaning, reranking of search hits, and OCR of scanned pages, with ONNX Runtime on the CPU or an NVIDIA GPU. Models are downloaded from Hugging Face on first use and unloaded when idle.

pip install paperus-ml
PAPERUS_ML_TOKEN=… paperus-ml --host 0.0.0.0   # port 3003

Settings are environment variables:

Variable Default Meaning
PAPERUS_ML_TOKEN none Shared secret; requests need Authorization: Bearer <token>
PAPERUS_ML_CACHE_PATH ~/.cache/paperus-ml Downloaded models
PAPERUS_ML_PRELOAD [] Models to load at start and keep, e.g. ["arctic-embed-m-v2"] (paperus then sends the one in use)
PAPERUS_ML_MODEL_TTL 300 Unload other models after this many idle seconds (0: never)
PAPERUS_ML_INTRA_OP_THREADS 0 CPU cores per model at start (0: all it sees); paperus' administration sets it afterwards
PAPERUS_ML_MAX_BATCH_TEXTS / _TOKENS 32 / 16384 Batch size (memory grows with both)

paperus sends its settings with PUT /config (cores, models to keep loaded). One batch runs at a time per model, using all its cores; simultaneous requests take turns batch by batch.

Most installations use the paperus-ml container image instead. Status: early version (0.0.x); expect breaking changes.

Metadata

Release files for paperus-ml 0.0.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperus-ml 0.0.23
File Size Uploaded Provenance Actions
paperus_ml-0.0.23.tar.gz 24.0 kB With provenance Details for paperus_ml-0.0.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paperus-ml 0.0.23
File Interpreter ABI Platform Actions
paperus_ml-0.0.23-py3-none-any.whl Python 3 none any Details for paperus_ml-0.0.23-py3-none-any.whl

Total release size: 52.6 kB

Release files / paperus_ml-0.0.23.tar.gz

Download URL paperus_ml-0.0.23.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9a5d55dcb9ed8e2ef462eedba9970f058b26375aabab61fca03b3ab0f2cccc08
BLAKE2b-256 checksum
How to use checksums
f83c2e01ecea015affba36cc79464d0130ff31d02e144cb7d50907cf3c4b3bf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Release files / paperus_ml-0.0.23-py3-none-any.whl

Download URL paperus_ml-0.0.23-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83aeca6f9e9e54604eea0189aae5b199fad2e5d4c7f7b2b206be747acac4d8f7
BLAKE2b-256 checksum
How to use checksums
12b5ad41773675e9e81be3243d02b9d2f8b29e440176a79642d6842f233e6045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Security for paperus-ml 0.0.23

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for paperus_ml-0.0.23.tar.gz

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 Nov 11, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page