Skip to main content

Rust-accelerated static embedding model with baked-in 10k/64d/int8 weights.

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tokenlearn_static_model-0.1.1.tar.gz (12.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tokenlearn_static_model-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

File details

Details for the file tokenlearn_static_model-0.1.1.tar.gz.

File metadata

File hashes

Hashes for tokenlearn_static_model-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5bf5ce5782d776a20b5049f8804e86d6eb142f6634555768e60df42bed16f790
MD5 7017a7964f8ee0b9de371a9bb0a9bfe2
BLAKE2b-256 70c5286fa6219a542995f72796d5ce8599fb4bd787e6652de989e3772dc9c99f

See more details on using hashes here.

File details

Details for the file tokenlearn_static_model-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tokenlearn_static_model-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ba4a2b1b4394023910f90bde6a408542e8c52b4aed00f2718685c217b2b2112
MD5 d60ae03c1c9b5a163bfc0e0db8733809
BLAKE2b-256 06638f7b37c88349b0d4c56bbb4285091b914ecc9653889a52477e2cd4a9af1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page