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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amesa_inference_dev-0.20.5.dev13.tar.gz (855.9 kB view details)

Uploaded Source

Built Distributions

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

amesa_inference_dev-0.20.5.dev13-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.5.dev13-cp312-cp312-macosx_11_0_arm64.whl (394.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.20.5.dev13-cp312-cp312-macosx_10_9_x86_64.whl (397.0 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.20.5.dev13-cp312-cp312-macosx_10_9_universal2.whl (788.5 kB view details)

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

amesa_inference_dev-0.20.5.dev13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.20.5.dev13-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_15_0_arm64.whl (396.0 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_11_0_arm64.whl (395.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_10_9_x86_64.whl (401.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_10_9_universal2.whl (793.4 kB view details)

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

amesa_inference_dev-0.20.5.dev13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.20.5.dev13-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.5.dev13-cp310-cp310-macosx_11_0_arm64.whl (398.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.20.5.dev13-cp310-cp310-macosx_10_9_x86_64.whl (404.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.20.5.dev13-cp310-cp310-macosx_10_9_universal2.whl (799.1 kB view details)

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

File details

Details for the file amesa_inference_dev-0.20.5.dev13.tar.gz.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13.tar.gz
Algorithm Hash digest
SHA256 750adf65f71e29983df515f0b82d8ed2c20bedf8c261338918edcaeeda3fc468
MD5 59497299c8bf8a49f0a84edd87bf5229
BLAKE2b-256 ee52e570eb538765cfaafcbdc3acaf072680e36b522fe9fa269b4407d79a7959

See more details on using hashes here.

File details

Details for the file amesa_inference_dev-0.20.5.dev13-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 acf65df4647bc83ed93a84a678e807100da007d896fdd649152c71b0dff01ea2
MD5 dc95c8b96e8c88a2480dfca78bf2b092
BLAKE2b-256 e57608a63dbdb6ab912a93932fc541da6762a680fd790011971d399f31105369

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1188c12a7be416c61fd4cba32c3ec81fb3f1789dcb56f5f98b36ad10e6189143
MD5 6cd06f0540e792251ff37f7226807236
BLAKE2b-256 685ffecb34ff2ca04d5b6f3b805dcc0c49ce7ecb75cea1ae5fcd773c6ba60274

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6b0dfbae0b49845aee39db60c7aca9888c66a67afbe4c06a24447b5e9b78b380
MD5 c6aa1ba091785607e46a12eff1fa570e
BLAKE2b-256 494047acf20d852c9f0d6123ac2bb365f8b28743e2f1f8974e39e51838f78b3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 33046b20e11296592cfd98433f595ecff00535ef695b825618c472d95593f9cf
MD5 df33a707b2ac3bf9d13e9e98acf4ade9
BLAKE2b-256 4efd786196e6fbe3e790e06dbf1c510ca461626c2981ddf9ae05db62a7ece7ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 722b027c3011a1c8d6e2a5185e639434e652ac978631d57aa1999c692f54fdf1
MD5 1efe66a74b47c07ca1b9dadfed0429eb
BLAKE2b-256 d6b15d63eaba4c3c90ecdf53f31b1aec0c0d5c53ff9ed8cfcc20e11fee5e1d8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 82f303bf8f733e93e9e213456939733641bd23de06667c99ee944eb1dbda35a4
MD5 f9fee7f0e93a3dfd23647d36bb6a5afd
BLAKE2b-256 4730bf8ceffe7327a6fc68f110e2cb339b77bd81fcf71139a91eb72a38cd93a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9165578db3b8f83c99ee65773368bfeecdd2e7d0bf26333b0e23c23632e22700
MD5 9a477ceb4f79d11faa8bbdbb0cd7e835
BLAKE2b-256 503e32367c5bf47aa086a70868062698012031226cd8afc58bfdace4f06210ca

See more details on using hashes here.

File details

Details for the file amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f6f2eb0fdb4494ea90cd930229158034696b002552ebb03f184d2272c097bcb
MD5 3f2baac293bd91cf59e6c699b31131df
BLAKE2b-256 3cecef8f05db5766ca2269efb5ab722956d564c71581cf3b808f591b5385cbbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 909e705cc4285b91a7d8c77974eab61f17535ae3e2b69fa95c16c4aced500c82
MD5 91bf6a3eb95e0cd42b35be1509a99c7e
BLAKE2b-256 0fbf0412c10883f29d42ee7e2b21cf0f3ea484f440d7333fe556c13cff069c6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 846c4f38ebc19868e45dfe0523d2ef275d6c5c7fc82544ca3ae912fdf34b7177
MD5 78b122a5299da0efd3b335fc752bad17
BLAKE2b-256 062546049239521fbc603c260ad4fed82cc2d34539bc1c8b4eea507f0b6515e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7a8be3894b633ca3df4c831a149f55e5e06697fb272a29680559fc4c088d76e
MD5 68dafbd9554d6799fb3f5e30227a9b7a
BLAKE2b-256 a3e918e204cf2c2cd73edf7c0d7546e7ed5b49bb4b6b14aefab73260c8b87857

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 840acdfba4c85b456c3c0fb85a70f15547e4de53dd5b81528cf5be4bd77e45af
MD5 c6aae2b780e7cf83efe6a74ae35c2754
BLAKE2b-256 9f947ccd0d267efe72ae5fb91107ab07c2a7245f59a18948ac7d2d804cfdeaa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11db5d84ef3566625b009b1af77b4ec57cae3303dd3025a113ecafca452bda87
MD5 537449fa45a9504bf4ad3ea49d4e7ced
BLAKE2b-256 264ebe90b799d45b4805987ff54d79f9d88f0009fa824fb21bde066c7133d9fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9d568c35176b285c64d10b10339cf54a3159a81b252e8679fe9a5edb8e2f2da2
MD5 349ea508a8421fc8fd9ccbb42db42028
BLAKE2b-256 b43812338f44981e3b2fd5d84a5adc6ddd38f9b2c4413ab45e40dd6e71593260

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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.20.5.dev13-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.5.dev13-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a57e997c68f7dbbc2673f4fb8a1859a54b2c87031586887938f4fb3162eb012f
MD5 0a23291b08b93dd40aadd131636a1ada
BLAKE2b-256 7b4873b26beeb0d8c52e72ef51bee2f33500372a0297fcfe0947a4f84073411c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.20.5.dev13-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