ML inference tools
Requirements
For model export onnx package is required.
Convert to ONNX
Below are some examples:
Convert t5-small:
PYTHONPATH=. python mlit to-onnx --model-type t5 --model-name t5-small --export-dir tmp
Check that it is working:
PYTHONPATH=. python mlit inference --model-name t5-small --base-dir tmp --model-input "translate English to French: How does this model work?" --model-type t5
Convert custom checkpoint:
PYTHONPATH=. python mlit to-onnx --model-type t5 --model-name "../my_custom_model" --export-dir tmp
Check that it is working:
PYTHONPATH=. python mlit inference --model-name my_custom_model --base-dir tmp --model-input "translate English to French: How does this model work?" --model-type t5 --tokenizer-name "t5-small"
Metadata
Release files for mlit 0.1.6
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 | Actions |
|---|---|---|---|---|
| mlit-0.1.6.tar.gz | 10.6 kB | Without provenance | Details for mlit-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlit-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for mlit-0.1.6-py3-none-any.whl |
Total release size: 24.6 kB
Release files / mlit-0.1.6.tar.gz
| Download URL | mlit-0.1.6.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c64e295b3c8cbce4559e9560c4b5398cb05ead74c6324ab50853a096bacd6551
|
|
BLAKE2b-256 checksum How to use checksums |
81d485a5cb80b7a4fd1e6ab5adfe7fda4d15f1e1cd1e0f1e03991c4bbb35e95f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.7
|
Release files / mlit-0.1.6-py3-none-any.whl
| Download URL | mlit-0.1.6-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2bc9aacf9f3dbc831fc68463c73374bedc1824b2520915c77411d36da8e4f9e
|
|
BLAKE2b-256 checksum How to use checksums |
49956ae00ed0a49d25932c37f79549cc6f7ec390db8e39875b8749201cd4a8c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.7
|
Security for mlit 0.1.6
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.