Skip to main content

Rust + Python Inference

This package provides:

  • A Rust encoder core (tokenizers + safetensors) for static Model2Vec-style embeddings.
  • A Python wrapper API:
    • from static_model import get_embeddings

The default 10k/64d/int8 model files are baked into the package under static_model/model/.

Python Install

pip install .

Python Usage

from static_model import get_embeddings

embeddings = get_embeddings(["Hello", "World"])  # list[list[float]]
single_embedding = get_embeddings("Hello World")  # list[float]

Metadata

Release files for tokenlearn-static-model 0.1.1

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

Source distribution (sdist)

Source distribution for tokenlearn-static-model 0.1.1
File Size Uploaded Provenance
tokenlearn_static_model-0.1.1.tar.gz 12.6 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tokenlearn-static-model 0.1.1
File Interpreter ABI Platform
tokenlearn_static_model-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details

Total release size: 19.9 MB

Release files / tokenlearn_static_model-0.1.1.tar.gz

Download URL tokenlearn_static_model-0.1.1.tar.gz
Size 12.6 MB
Tags Source
SHA-256 checksum
How to use checksums
5bf5ce5782d776a20b5049f8804e86d6eb142f6634555768e60df42bed16f790
BLAKE2b-256 checksum
How to use checksums
70c5286fa6219a542995f72796d5ce8599fb4bd787e6652de989e3772dc9c99f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.11.5

Release files / tokenlearn_static_model-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tokenlearn_static_model-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 7.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
6ba4a2b1b4394023910f90bde6a408542e8c52b4aed00f2718685c217b2b2112
BLAKE2b-256 checksum
How to use checksums
06638f7b37c88349b0d4c56bbb4285091b914ecc9653889a52477e2cd4a9af1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.11.5

Security for tokenlearn-static-model 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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