ngnn-encoder
ngnn-encoder provides the inference-only Python interface for
steffen-negabo/ngnn-general-encoder-v1. It includes the standalone inference
module, but does not include model weights, training code, cached results, or
credentials.
Install the wheel and load an immutable Hugging Face revision. The Hub
repository and commit are distribution coordinates assigned at publication;
they are separate from the scientific MODEL_REVISION exported by the
package:
from ngnn_encoder import NgnnGeneralEncoder
encoder = NgnnGeneralEncoder.from_pretrained(
repo_id,
revision=hub_commit,
)
vectors = encoder.encode(["Example text"])
The package requires Python 3.10 or newer and torch 2.11.0. Encoding nonblank
text calls OpenAI's text-embedding-3-large with the caller's API key and can
incur provider charges. Pass an OpenAI-compatible client for controlled or
offline use. Public Hub downloads explicitly disable authentication tokens and
verify the configuration and model artifact before creating a provider client.
For a local artifact, pass its path directly:
encoder = NgnnGeneralEncoder("model.npz", client=client)
Licensed under the MIT License.
Release files for ngnn-encoder 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 | |
|---|---|---|---|
| ngnn_encoder-0.1.0.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ngnn_encoder-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / ngnn_encoder-0.1.0.tar.gz
| Download URL | ngnn_encoder-0.1.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac4cc406a4499121baea1454346eef4b51b6866cd3a68ac162de12c7b50b84ff
|
|
BLAKE2b-256 checksum How to use checksums |
44238f858f417608e802dfbe0be663f9a9b8ed9bc1d220d04122c9843ed5773c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / ngnn_encoder-0.1.0-py3-none-any.whl
| Download URL | ngnn_encoder-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ea29b3717175aacc2b6f1465d456201446a2c4eec835428526807bd6c7833e3
|
|
BLAKE2b-256 checksum How to use checksums |
aa68fcc67671347451967cb74de3850f294b348a5cd6568dd0a72fd10004b175
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|