Skip to main content

Agent inference package using ONNX models without Ray or PyTorch dependencies

Project description

Amesa Inference

A lightweight inference package for running Amesa agents using ONNX models without Ray or PyTorch dependencies.

Overview

composabl_inference provides a standalone inference engine for running trained Amesa agents. It uses ONNX Runtime for model inference, making it suitable for deployment scenarios where you want to avoid heavy dependencies like Ray and PyTorch.

Features

  • ONNX-based inference: Uses ONNX Runtime for efficient model inference
  • No Ray or PyTorch dependencies: Lightweight package suitable for production deployment
  • Network management: Supports both local and remote objects (skills, perceptors, controllers)
  • Compatible API: Similar interface to Trainer.package() for easy migration

Installation

pip install amesa-inference

Usage

Basic Inference

from composabl_inference import InferenceEngine
from composabl_core import Agent

# Create inference engine (only license needed for license validation)
engine = InferenceEngine(license="your-license-key")

# Load agent
agent = Agent.load("path/to/agent")
await engine.load_agent(agent)

# Package agent for inference (similar to Trainer.package())
await engine.package()

# Run inference
observation = {...}  # Your observation from the simulator
action = engine.execute(observation)

With Remote Objects

The inference engine supports remote skills, perceptors, and controllers, just like the Trainer:

from composabl_inference import InferenceEngine

# Optional: provide custom config for NetworkMgr (e.g., for remote targets)
config = {
    "target": {
        "local": {
            "address": "localhost:1337",
        },
    },
}

engine = InferenceEngine(license="your-license-key", config=config)
await engine.load_agent("path/to/agent")
await engine.package()

# The skill processor will automatically handle remote objects
action = engine.execute(observation)

Cleanup

# Clean up resources
await engine.close()

Architecture

Components

  1. InferenceEngine: Main entry point for inference operations
  2. NetworkMgr: Manages network connections (non-Ray version)
  3. ONNXInferenceEngine: Handles ONNX model loading and inference
  4. ONNXSkillProcessor: Processes skills using ONNX models instead of PyTorch

Differences from Trainer

  • Uses ONNX Runtime instead of PyTorch for model inference
  • NetworkMgr is not a Ray actor (runs in the same process)
  • No Ray initialization required
  • Lighter weight, suitable for production deployment

Requirements

  • Python >= 3.10
  • composabl-core
  • composabl-api
  • onnxruntime
  • numpy

License

Proprietary and confidential - Copyright (C) Amesa, Inc

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_11_0_arm64.whl (408.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_x86_64.whl (409.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_universal2.whl (815.7 kB view details)

Uploaded CPython 3.12macOS 10.9+ universal2 (ARM64, x86-64)

amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_x86_64.whl (413.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_universal2.whl (818.4 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_x86_64.whl (416.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_universal2.whl (824.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5057f2722bdb6806b9b448afdcfd370dac7594432f4f7c1ceebbb6d8461ba583
MD5 97f2bdb3abc0c2caa09a4641ce8cb76f
BLAKE2b-256 3a39b4bd66190a793cbde8360661369ac27f745463e386a64c67fa28cface562

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 da316a16937dcfdd5bffbfa57e28ee6d4344900a4b9811efbb819d5c8c7314ad
MD5 c74513c6c8f95881b973ab038167a0bf
BLAKE2b-256 6ef9f2209cbde1fb9a04cd3155444adfcc933edcee715a55db626e620ed038d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 255ba1aa73861eaf7aec5c007ff01dc467b334f78d0ffb00848c154662adbcdf
MD5 4ac741a8088647479ec359f6525befa5
BLAKE2b-256 9bc02a169879356947f9657e05c1b9b47811e68f942114f533d560e951afd4fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eddb12ad10c19738fc3ac3aabe3a61fb8bd0ac10c815dc9067017c4e43eda1cd
MD5 8cd90c326931b1dc498415f5ee784013
BLAKE2b-256 a8c0f426e4bd14543abe5631c2c1b36df2cbef40ffba52dc67ec459a7c729a10

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3b4e9f4a627ed174cb47dce67ec7820f6d69ee949e2d200a0a3d6e1d9a9d2e85
MD5 bd803be299b6ad2af49076b00d7a230d
BLAKE2b-256 14aac8a8c118ffe45dedef3f2836229f4ca2a272584091f5e3a9a935ab1594f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp312-cp312-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca7ff9537d1bf2b6ba4bfd74466fc90035ff51342d024e21fa3c233c679a6aa6
MD5 9cca87a7a25a05ca38ed26610e96e182
BLAKE2b-256 1689e5770c194bb163d2d0e54583a562f73425795512e7ca52529c14f912f84e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2a7a09d6323fd3498363a7678f3023c7cc44721c0b8c758c8adf0b1e4272fb4f
MD5 735553d798d2b2e15caa6a209df0ecf1
BLAKE2b-256 b93f01f54667846e7391294b928c76e9fedd0186111718facb28c7f4cb1ebabc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0ed5f04d93e435af941e30ff1838af712686e58e7b53643c4c31f174edc7a66
MD5 d111661f6ccb09abdfc42dfffd2231d3
BLAKE2b-256 b8fdc4e50cc1094616e65543be37a6740e567452f479ac20f5709c05ccb39c4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b2c3c4c853750e87ce524df0146c147cb8cb8f9534f2503dabadf7442e852bda
MD5 7dc8088413dd2371d8412a55cf7502a3
BLAKE2b-256 2750a1f9c249bcf822df0382dc635e054bb5fdc284e22fd10fca19d6fbe29bd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 02c870d71d74b1a4d06734d3548abbca1d6de46e2316839f9782f3d50843e7a1
MD5 c7ba48d6e3afa493442fa410b0b6a236
BLAKE2b-256 0bdacc0b87c85a5d341e50bb2e51d8ef60ae091d8e7d5068918ad915c32e9a81

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d783736ac33bd23fc2a9c57bf7f28fc89190b6ea45d9bdfca6639bfc1906bc4f
MD5 84371078d386303749e05d2f9cbe651a
BLAKE2b-256 4e5982eb144a8913ce2f0535633c80683542e85f9fb08c8dece950424006af49

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ec31e584330553b9564ab882df979dc88494fe2fe4f18bb065e7211a288f2042
MD5 fd7224571f895bac8af6d424cfe73f02
BLAKE2b-256 4fff1dc150860ac2d20a6831793310569a7d346cf4ad9c9e56855d0accb31f17

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d34ede1a29fe056991555d8b87de3c399c29472c2903b98f215ccbe5a22d716
MD5 1767efc0a811fb129e8420a3c2dde1e6
BLAKE2b-256 856db9b42d0675a2d5736eb9a60b7854fa06defc608e097b63064856d910a33b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ff7c0335ea28d06eaf3ed9f09f8d6af2a9e4ecf0dd0d832c60a8836e35d41992
MD5 8b7054198ac76ec68a3afe576fc3ea7b
BLAKE2b-256 b41a61364cdef5c2a0ae67fb7811ebdff8dd0499b9ed81a7a450e78a6c3cec9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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

File details

Details for the file amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6a153887d96fa4f41a3d3fa3987fb76639b3648796b3615bfe487f61d97f58c5
MD5 9339cd58db524984a112a0e8306da9dc
BLAKE2b-256 a3b17985eb949a82fc19c6f900cdb3823a26a0776273d7c4c79a2a4fed21dd43

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.1.dev4-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.yaml on Composabl/sdk.composabl.ai

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