interscript-ml (Python runtime)
The reference Python runtime for IMF v1 model zips — the phonological layer of Interscript. The Ruby (secryst gem) and TypeScript (@interscript/ml) runtimes are diffed against this one on shared golden sets.
from interscript_ml import Model
model = Model.load("khm-latn-1.0") # id: index resolve -> download
# -> sha256-verify -> cache -> load
model.translate("ភាសា") # -> "pheasaea"
model.id # "khm-latn-1.0"
model = Model.load("khm-latn-1.0.zip") # or: a local zip path directly
- Byte-level only: the canonical ByT5 table (byte
b→ idb+3, trailing EOS) — no vocab files, no per-model tokenization code. - Greedy KV-cache decode when the zip ships
decoder-kv.onnx(default), plain full-recompute fallback otherwise. - Every
.onnxmember is sha256-verified againstmetadata.yamlbefore the session is created; corrupt downloads fail loudly. - Dynamic fetch per the
models.yamlcontract (shared with the Ruby and TypeScript runtimes): resolve id -> channel URL, download to temp, verify whole-file sha256 against the index, atomically install into~/.cache/interscript/models/<id>/. Overrides:SECRYST_INDEX(URL or path),SECRYST_CACHE.
Install: pip install ./runtime (from the interscript-ml checkout) or
pip install -e "./runtime[dev]" for development.
Tests: python -m pytest runtime/tests — tiny-graph zips, no torch
needed. The end-to-end golden test runs when SECRYST_E2E_ZIP
points at a real zip (e.g. models/khm-latn/khm-latn-1.0-fp32.zip)
and asserts byte-identical outputs against golden/khm-latn-100.jsonl.
License: BSD-3-Clause.
Metadata
Release files for interscript-ml 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 | |
|---|---|---|---|---|
| interscript_ml-0.1.0.tar.gz | 11.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| interscript_ml-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / interscript_ml-0.1.0.tar.gz
| Download URL | interscript_ml-0.1.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8d73f738ca2e95cc4bbd6d93d5e41442107186ce207a629b1252f7353b1d2a1
|
|
BLAKE2b-256 checksum How to use checksums |
cb83d57a0324643b19bf7510f05e606892a38f581a87b5f0658ddbf764d4cc9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.5
|
Release files / interscript_ml-0.1.0-py3-none-any.whl
| Download URL | interscript_ml-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0a68aa5d7ee247290a41c9827bcc15178703a42e9f1d81a215b641f0c9c1ab3
|
|
BLAKE2b-256 checksum How to use checksums |
59f59d6f840799d4a2d1b5b9dafd10c17c76b8794790305efe0f73b2ff9977cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.5
|
Security for interscript-ml 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.