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.3.tar.gz (34.5 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.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

kinfer-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (253.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

kinfer-0.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (252.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

kinfer-0.3.3-cp312-cp312-macosx_11_0_arm64.whl (221.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kinfer-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

kinfer-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (252.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.whl (223.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kinfer-0.3.3.tar.gz
  • Upload date:
  • Size: 34.5 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.3.tar.gz
Algorithm Hash digest
SHA256 8a8cefb7fc17630948dd1f3b315be4bb63c1e97f4998d523d1a90a2339195cf1
MD5 15ee921acae8f48872e52f82fb83a4dc
BLAKE2b-256 d823bfb175621927007a9ee088e44d140afc0b0de99405ac5e1752d9eb93bebe

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3.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.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de36d11625ca50d7042c9c9da12b875c8120e7358c2154476de694ccc85d1d16
MD5 3799a59b295e0ca368eae9268abef313
BLAKE2b-256 91452a3d93e5baad5ff0bd7e535ec9b72851869cb8f7bf9927e3d6fc84d98dda

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-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.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2d5f5bbb2b2c811d0a6aaf23c06b2c4d3ada42ba1c15b963f87221f0e5afc84
MD5 465c7a43a56372010d54e20e503abeb6
BLAKE2b-256 b305d884cf9dab935c5c27ab8768ff7e46be56cf6cffe6e98a4c0e82e489d1e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-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.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 00533405e142806c34977fbec563b076666496e6fbbe940efe4a7aae4eb42e23
MD5 bad638e3e6051609b0f380f82abc1937
BLAKE2b-256 d46cc9cc41c821bd6b049da975178516389503fba98cc36d68e8859b8df75e98

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-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.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0e48a49d7ab3f30a6286d0c29aac877ad2915339bf0987fb3411ef1daa16784
MD5 ea50758fa1cd29338a892b6fc3c0cef1
BLAKE2b-256 e461aac4cf3c4b522d6c4ff873ac8d06b726d0c6624d124a4a16e280f6578c31

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-cp312-cp312-macosx_11_0_arm64.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.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7fbae061af007c26ee78f729f7fdbf4b3efe662320711d02b22c82fad03e6ff
MD5 17a39684cddf68aa0cc0dfcbeb2c01a3
BLAKE2b-256 b434e802a8fb711da93cfe8a1a8cf177939cec042e1f4ab5380015225b3cbbe8

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-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.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a6c363cc71f4a1ad12cd49b1eb21e54f2d30d19daa2275a306e5f32971780350
MD5 101b43dbdae294061c01078bd0e8b866
BLAKE2b-256 659c30ef2866bfd70c40dc314972e944194cde06ee260dd6c79a19e6425c8ddb

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-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.

File details

Details for the file kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f843449f14ea536201e1f8234df64cc183efa5f6b70147d7fc87e7bf5a7632af
MD5 27eab6945f94d68493e56cb490091e1f
BLAKE2b-256 abe2c586ccebde5e3358f1836eb880bafcc34ffeba6803f4c351af3f9cf887eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.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