Skip to main content

Tool to make it easier to run a model on a real robot

Project description

kinfer

This package is designed to support exporting and running inference on PyTorch models.

Installation

pip install kinfer

ONNX Runtime

You can install the latest version of ONNX Runtime on Mac with:

brew install onnxruntime

You may need to add the binary to your DYLD_LIBRARY_PATH:

$ brew ls onnxruntime
/opt/homebrew/Cellar/onnxruntime/1.20.1/include/onnxruntime/ (11 files)
/opt/homebrew/Cellar/onnxruntime/1.20.1/lib/libonnxruntime.1.20.1.dylib  # <-- This is the binary
/opt/homebrew/Cellar/onnxruntime/1.20.1/lib/cmake/ (4 files)
/opt/homebrew/Cellar/onnxruntime/1.20.1/lib/pkgconfig/libonnxruntime.pc
/opt/homebrew/Cellar/onnxruntime/1.20.1/lib/libonnxruntime.dylib
/opt/homebrew/Cellar/onnxruntime/1.20.1/sbom.spdx.json
$ export DYLD_LIBRARY_PATH=/opt/homebrew/Cellar/onnxruntime/1.20.1/lib:$DYLD_LIBRARY_PATH

Considerations for Exporting PyTorch Models

Don't use common names for the inputs to your forward pass. E.g. input, output, state, state_tensor, buffer, etc.

This is because ONNX has internal names for the model and if there's a conflict, the inputs will have a .1, .2, etc. suffix which makes it really hard to figure out what value_name to pass into your kinfer io values.

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

kinfer-0.3.1.tar.gz (33.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

kinfer-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

kinfer-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

kinfer-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (251.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

kinfer-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (253.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

kinfer-0.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (289.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ s390x

kinfer-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (252.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

File details

Details for the file kinfer-0.3.1.tar.gz.

File metadata

  • Download URL: kinfer-0.3.1.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for kinfer-0.3.1.tar.gz
Algorithm Hash digest
SHA256 95c812333cf6e2c4b0ceac0937c7da6b5fb3b605bdd87cbf0bd588ce364b8f54
MD5 0bf665e7182854322bcc5070f2c3a397
BLAKE2b-256 8b1e0f8e978cdbf52fdc53e347fc9c8f4c676b3443e8a4ec66eb72418988d78e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1.tar.gz:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinfer-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c46a11b36a963276cb90e82948167f4a4b8dd1ce4ff69251643614b6eec0cd0
MD5 0b79387d6d8ef8e0b2ae25d888e4d882
BLAKE2b-256 aa7556cf349cb084cd2c55eddbbe8827d2e14ee4dc844e2fcbb15788101d435b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinfer-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b96c149f241dbfc34887dae21383488429200cdc5ff236d46179fc07e827a6fc
MD5 b53933ca0b63b3afe0b8c86fbfe5f655
BLAKE2b-256 3f67e8058638b21d268574596ec2360e0dae47b62492b8fa2e83ef6cdc685d04

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinfer-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 80ca471159606229fffe67a71847c441cae1e7dd720cf9afb8c2ff258e50db8d
MD5 72aa200bff3d7d1cae9d59963d7f1b74
BLAKE2b-256 a3df51560d5f062f1f2c7fd6c507fd0d77bdee9b9a4402c55ba04fce8d2a62b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinfer-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6eb5ab1fc633dc257530590d6d82da3fe68fb61268ad7dd68ed7b5e67de29cc7
MD5 740d7bd37e105ba0e18a8c6efd646dfa
BLAKE2b-256 06eb00158dd12c9d6da07099028560cc3c26254dee0d683638460a9c5c250894

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinfer-0.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for kinfer-0.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 e1581d1fd97978f4eaa75ddd9360f892b396d4137b3c64cdaa82a20ee93ef812
MD5 0e5a8a30c72b6177001a6bf6d9327e9e
BLAKE2b-256 71ed97cd1948292ce5d5cc0de38eafeddebfcbe92b43bf43e94018f3a8f07626

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kinfer-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1a57f156d65c8c633f8ffe08561a538e2392881166b9939be3d191725eebfbad
MD5 81abecdaa967227aa74d80ca1c96c869
BLAKE2b-256 5683fcd9508b2d1733f03df4156f8898a61b95deed7812d67fde8ed23fa5927a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish.yml on kscalelabs/kinfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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