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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a8cefb7fc17630948dd1f3b315be4bb63c1e97f4998d523d1a90a2339195cf1
|
|
| MD5 |
15ee921acae8f48872e52f82fb83a4dc
|
|
| BLAKE2b-256 |
d823bfb175621927007a9ee088e44d140afc0b0de99405ac5e1752d9eb93bebe
|
Provenance
The following attestation bundles were made for kinfer-0.3.3.tar.gz:
Publisher:
publish.yml on kscalelabs/kinfer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3.tar.gz -
Subject digest:
8a8cefb7fc17630948dd1f3b315be4bb63c1e97f4998d523d1a90a2339195cf1 - Sigstore transparency entry: 159486012
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 252.9 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de36d11625ca50d7042c9c9da12b875c8120e7358c2154476de694ccc85d1d16
|
|
| MD5 |
3799a59b295e0ca368eae9268abef313
|
|
| BLAKE2b-256 |
91452a3d93e5baad5ff0bd7e535ec9b72851869cb8f7bf9927e3d6fc84d98dda
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
de36d11625ca50d7042c9c9da12b875c8120e7358c2154476de694ccc85d1d16 - Sigstore transparency entry: 159486021
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 253.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2d5f5bbb2b2c811d0a6aaf23c06b2c4d3ada42ba1c15b963f87221f0e5afc84
|
|
| MD5 |
465c7a43a56372010d54e20e503abeb6
|
|
| BLAKE2b-256 |
b305d884cf9dab935c5c27ab8768ff7e46be56cf6cffe6e98a4c0e82e489d1e5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
a2d5f5bbb2b2c811d0a6aaf23c06b2c4d3ada42ba1c15b963f87221f0e5afc84 - Sigstore transparency entry: 159486019
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 252.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00533405e142806c34977fbec563b076666496e6fbbe940efe4a7aae4eb42e23
|
|
| MD5 |
bad638e3e6051609b0f380f82abc1937
|
|
| BLAKE2b-256 |
d46cc9cc41c821bd6b049da975178516389503fba98cc36d68e8859b8df75e98
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
00533405e142806c34977fbec563b076666496e6fbbe940efe4a7aae4eb42e23 - Sigstore transparency entry: 159486015
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 221.8 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0e48a49d7ab3f30a6286d0c29aac877ad2915339bf0987fb3411ef1daa16784
|
|
| MD5 |
ea50758fa1cd29338a892b6fc3c0cef1
|
|
| BLAKE2b-256 |
e461aac4cf3c4b522d6c4ff873ac8d06b726d0c6624d124a4a16e280f6578c31
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
f0e48a49d7ab3f30a6286d0c29aac877ad2915339bf0987fb3411ef1daa16784 - Sigstore transparency entry: 159486017
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 254.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7fbae061af007c26ee78f729f7fdbf4b3efe662320711d02b22c82fad03e6ff
|
|
| MD5 |
17a39684cddf68aa0cc0dfcbeb2c01a3
|
|
| BLAKE2b-256 |
b434e802a8fb711da93cfe8a1a8cf177939cec042e1f4ab5380015225b3cbbe8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
a7fbae061af007c26ee78f729f7fdbf4b3efe662320711d02b22c82fad03e6ff - Sigstore transparency entry: 159486020
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 252.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c363cc71f4a1ad12cd49b1eb21e54f2d30d19daa2275a306e5f32971780350
|
|
| MD5 |
101b43dbdae294061c01078bd0e8b866
|
|
| BLAKE2b-256 |
659c30ef2866bfd70c40dc314972e944194cde06ee260dd6c79a19e6425c8ddb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl -
Subject digest:
a6c363cc71f4a1ad12cd49b1eb21e54f2d30d19daa2275a306e5f32971780350 - Sigstore transparency entry: 159486018
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 223.8 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f843449f14ea536201e1f8234df64cc183efa5f6b70147d7fc87e7bf5a7632af
|
|
| MD5 |
27eab6945f94d68493e56cb490091e1f
|
|
| BLAKE2b-256 |
abe2c586ccebde5e3358f1836eb880bafcc34ffeba6803f4c351af3f9cf887eb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kinfer-0.3.3-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
f843449f14ea536201e1f8234df64cc183efa5f6b70147d7fc87e7bf5a7632af - Sigstore transparency entry: 159486013
- Sigstore integration time:
-
Permalink:
kscalelabs/kinfer@4efc4f730acce68c180e2511488177ec91acb19b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/kscalelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4efc4f730acce68c180e2511488177ec91acb19b -
Trigger Event:
workflow_dispatch
-
Statement type: