ML inference tools
Project description
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"
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
mlit-0.1.3.tar.gz
(10.2 kB
view details)
Built Distribution
mlit-0.1.3-py3-none-any.whl
(12.8 kB
view details)
File details
Details for the file mlit-0.1.3.tar.gz
.
File metadata
- Download URL: mlit-0.1.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0448498f9ede465a443f32b1857e55ac2dc7c99c9ea45a21291345d5aee40b11 |
|
MD5 | 3fb4bdbc43a34a1ae6f17ae70015f66f |
|
BLAKE2b-256 | c68ba6d986771cc696f4596a61b759660640c97ab3d6ccd176026e79d75efc26 |
File details
Details for the file mlit-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: mlit-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e6a49455ca79651ba2b1137ca31a63867fe5ae1a8f1b3343aea7b44e87ecc43 |
|
MD5 | 9bb615efd082e69d79a9c41aafe9e037 |
|
BLAKE2b-256 | e939b0750453d497b943114aded880c402a2895cef60276c1f2531f1d623d349 |