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.2.tar.gz (34.1 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.2-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.2-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.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (221.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kinfer-0.3.2-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.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (252.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

kinfer-0.3.2-cp311-cp311-macosx_11_0_arm64.whl (223.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: kinfer-0.3.2.tar.gz
  • Upload date:
  • Size: 34.1 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.2.tar.gz
Algorithm Hash digest
SHA256 74ba8a9d0520fd6c00a3e605d3604a20112f4db6e5669f4b321f45f5f42448ea
MD5 4c035b48a01549c6f3257bd1a5fb5cd9
BLAKE2b-256 5acb1f5285f5f35407ff4de490e8ac7b1cee0fa841ee89ce41cbeab9f2e07660

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kinfer-0.3.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4792b3b2984756cc5d4aab08b5d102c4c5a6f7f414adfb12da2dd22c5bce5295
MD5 a791c1785b6e47bf80d5d11aeb86d6c5
BLAKE2b-256 a2222630744ccf3308a608eaea2f54e611f1bf1f1c2c9bd9e6075dd031dbc5a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kinfer-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d2d6aaee3b929f8643354a32115e32fc2897fe692e91493c4a2919f1b072eed
MD5 2743f702dec8d5d923a198aa2a10192b
BLAKE2b-256 c25783a7450fea13225a1900d9e88607d26d9a2519db9354b09ab6dc1875f97d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kinfer-0.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6408f58e7a5d2ac1210191c7e8bbf8ab6b5ea29afcdee5779deac302e9e68210
MD5 46a558e7eb69f51ee1d3a266cd48ddca
BLAKE2b-256 3b313bd8c08925f53221175069caf72a30d539d3cd01b74d5a93d670a045f8cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kinfer-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfaea10cced4cd1b1aaa0fc5602b730c2986fe03cde7c0223341ec8da5eb624a
MD5 9f14a335e3c38f05fcb8a1f3df5cbb80
BLAKE2b-256 db1b2f1c5d7d6f0f81d9ae0026ad760c3a1ed1d25e0125282bbe10b5d7f4d857

See more details on using hashes here.

Provenance

The following attestation bundles were made for kinfer-0.3.2-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.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kinfer-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e11110a8a715236f28cc5bfe88c7045fbedce56877ba536fbaff1646fc56bf5d
MD5 4873db6fd9eb63c497508b2e3b2a30ab
BLAKE2b-256 c0de7080b27a286bbae3c57749f28b915f004c28eea1053504e3f0f89a22b040

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kinfer-0.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ab34f8788118c2462cf31cea0e50e8169d9ff1c011a931201b72d15423c7480d
MD5 77dc8be2c4ae1c82da9833d6473dc0fb
BLAKE2b-256 f220145647c4683c63acb54479ab98fed9d5cefba4c0829bbd42820037c75f35

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kinfer-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 957cc18c501422232017fa76d15a9a585de0a061fb3fb34782e7f969556d03d0
MD5 24bc6d0972ad91bc0249e05abb95b378
BLAKE2b-256 ff1eb35637694cd2b0f9dffec2fd3ce1e97ab13cafd54a4a1096febacf998907

See more details on using hashes here.

Provenance

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