Skip to main content

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.6.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

mlit-0.1.6-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file mlit-0.1.6.tar.gz.

File metadata

  • Download URL: mlit-0.1.6.tar.gz
  • Upload date:
  • Size: 10.6 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

Hashes for mlit-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c64e295b3c8cbce4559e9560c4b5398cb05ead74c6324ab50853a096bacd6551
MD5 9ae94dcf2aa241b564f4e3db45ec7cb2
BLAKE2b-256 81d485a5cb80b7a4fd1e6ab5adfe7fda4d15f1e1cd1e0f1e03991c4bbb35e95f

See more details on using hashes here.

File details

Details for the file mlit-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: mlit-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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

Hashes for mlit-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a2bc9aacf9f3dbc831fc68463c73374bedc1824b2520915c77411d36da8e4f9e
MD5 f40743b3f5af98b680eab591febf90d9
BLAKE2b-256 49956ae00ed0a49d25932c37f79549cc6f7ec390db8e39875b8749201cd4a8c6

See more details on using hashes here.

Supported by

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